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/ScenarioSpec.js | |
| parent | 9f919c42f0885e39870195fab8ce2a22621119b7 (diff) | |
| download | angular.js-251fab40291183c8e50ea0fabd23c30341cc72d3.tar.bz2 | |
updateView is now called on binder instead of scope
Diffstat (limited to 'test/ScenarioSpec.js')
| -rw-r--r-- | test/ScenarioSpec.js | 2 | 
1 files changed, 2 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');    }); | 
