From 3ec4af941390800bd317579bd0ae34d3fc309569 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 23 May 2014 15:07:25 -0700 Subject: [PATCH] chore(parseSpec): fix bad merge --- test/ng/parseSpec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ng/parseSpec.js b/test/ng/parseSpec.js index b1c8b5a1..77abbd2d 100644 --- a/test/ng/parseSpec.js +++ b/test/ng/parseSpec.js @@ -761,6 +761,10 @@ describe('parser', function() { })); + it('should NOT allow access to the Window or DOM returned from a function', inject(function($window, $document) { + scope.getWin = valueFn($window); + scope.getDoc = valueFn($document); + expect(function() { scope.$eval('getWin()', scope); }).toThrowMinErr(