diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ScenarioSpec.js | 2 | ||||
| -rw-r--r-- | test/testabilityPatch.js | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/ScenarioSpec.js b/test/ScenarioSpec.js index 2ca1de2f..690ce464 100644 --- a/test/ScenarioSpec.js +++ b/test/ScenarioSpec.js @@ -21,10 +21,12 @@ describe("ScenarioSpec: Compilation", function(){ describe("ScenarioSpec: Scope", function(){ it("should have set, get, eval, init, updateView methods", function(){ var scope = angular.compile('<div>{{a}}</div>').init(); + scope.eval("$invalidWidgets.push({})"); expect(scope.set("a", 2)).toEqual(2); expect(scope.get("a")).toEqual(2); expect(scope.eval("a=3")).toEqual(3); scope.updateView(); + expect(scope.eval("$invalidWidgets")).toEqual([]); expect($(scope.element).text()).toEqual('3'); }); diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index cb1432f7..293553da 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -135,3 +135,6 @@ function assertThrows(error, fn){ } assertEquals(error, exception); } + +log = noop; +error = noop;
\ No newline at end of file |
