diff options
| author | Misko Hevery | 2010-02-04 15:04:28 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-04 15:04:28 -0800 |
| commit | 251fab40291183c8e50ea0fabd23c30341cc72d3 (patch) | |
| tree | 672e7496d5c6ba71dba8ab9d7c176bf534451e40 /test | |
| parent | 9f919c42f0885e39870195fab8ce2a22621119b7 (diff) | |
| download | angular.js-251fab40291183c8e50ea0fabd23c30341cc72d3.tar.bz2 | |
updateView is now called on binder instead of scope
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 |
