Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96b659 commit 3ec4af9Copy full SHA for 3ec4af9
test/ng/parseSpec.js
@@ -761,6 +761,10 @@ describe('parser', function() {
761
}));
762
763
764
+ it('should NOT allow access to the Window or DOM returned from a function', inject(function($window, $document) {
765
+ scope.getWin = valueFn($window);
766
+ scope.getDoc = valueFn($document);
767
+
768
expect(function() {
769
scope.$eval('getWin()', scope);
770
}).toThrowMinErr(
0 commit comments