mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-07 08:57:54 +08:00
tests failing jstd to show cory
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user