diff options
| author | Misko Hevery | 2010-04-08 13:43:40 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-04-08 13:43:40 -0700 | 
| commit | c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd (patch) | |
| tree | 3fc1943a4599a764aef9a41d995246bb0e48f463 /test/servicesSpec.js | |
| parent | e0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4 (diff) | |
| download | angular.js-c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd.tar.bz2 | |
tests failing jstd to show cory
Diffstat (limited to 'test/servicesSpec.js')
| -rw-r--r-- | test/servicesSpec.js | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/test/servicesSpec.js b/test/servicesSpec.js index b7dfe4c8..a3841c2f 100644 --- a/test/servicesSpec.js +++ b/test/servicesSpec.js @@ -66,7 +66,9 @@ describe("service $invalidWidgets", function(){    });    it("should count number of invalid widgets", function(){ -    var scope = compile('<input name="price" ng-required></input>').$init(); +    var doc = jqLite(window.document.body); +    doc.append('<input name="price" ng-required></input>'); +    var scope = compile(doc).$init();      expect(scope.$invalidWidgets.length).toEqual(1);      scope.price = 123;      scope.$eval();  | 
