From 251fab40291183c8e50ea0fabd23c30341cc72d3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 4 Feb 2010 15:04:28 -0800 Subject: updateView is now called on binder instead of scope --- test/ScenarioSpec.js | 2 ++ test/testabilityPatch.js | 3 +++ 2 files changed, 5 insertions(+) (limited to 'test') 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('
{{a}}
').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 -- cgit v1.2.3