mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-28 12:55:48 +08:00
few fixes to make tests pass with jquery
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<script type="text/javascript" src="../src/angular-bootstrap.js"></script>
|
||||
<script type="text/javascript">
|
||||
function asyncValidate(value, callback){
|
||||
var x = value.length % 2 ? null: "even";
|
||||
//callback(x);
|
||||
_(callback).delay(1000, x);
|
||||
}
|
||||
</script>
|
||||
<link rel="StyleSheet" type="text/css" href="../css/angular.css"/>
|
||||
</head>
|
||||
<body onload="angular.compile(document).$init()">
|
||||
|
||||
<input type="checkbox" name="form.checked" ng-format="boolean" value="true" checked="checked" />
|
||||
<input ng-show="form.checked" name="form.required" ng-required/>
|
||||
<hr/>
|
||||
<input name="form.list" ng-format="list" ng-required/>
|
||||
<input name="form.list" ng-format="list" />
|
||||
<hr/>
|
||||
<input type="checkbox" name="form.boolean" ng-format="boolean" value="true" checked="checked" />
|
||||
<input type="checkbox" name="form.boolean" ng-format="boolean" value="true" />
|
||||
<hr/>
|
||||
<select name="select">
|
||||
<option>A</option>
|
||||
<option selected>B</option>
|
||||
</select>
|
||||
<pre>
|
||||
form={{form}}
|
||||
$invalidWidgets.length={{$invalidWidgets.length}}
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user