aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ngScenario/e2e/widgets.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/ngScenario/e2e/widgets.html b/test/ngScenario/e2e/widgets.html
index f986144e..6fa9276e 100644
--- a/test/ngScenario/e2e/widgets.html
+++ b/test/ngScenario/e2e/widgets.html
@@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns:ng="http://angularjs.org">
- <head ng-app>
+<html xmlns:ng="http://angularjs.org" ng-app>
+ <head>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type="text/javascript" src="../../../src/angular-bootstrap.js"></script>
</head>
@@ -26,22 +26,22 @@
</tr>
<tr>
<td>hidden</td>
- <td><input type="hidden" ng-model="text.hidden" value="hiddenValue" /></td>
+ <td><input type="hidden" ng-model="text.hidden" ng-init="text.hidden='hiddenValue'" /></td>
<td>text.hidden={{text.hidden}}</td>
</tr>
<tr><th colspan="3">Input selection field</th></tr>
- <tr id="gender-box">
+ <tr id="gender-box" ng-init="gender='male'">
<td>radio</td>
<td>
<input type="radio" ng-model="gender" value="female"/> Female <br/>
- <input type="radio" ng-model="gender" value="male" checked="checked"/> Male
+ <input type="radio" ng-model="gender" value="male"/> Male
</td>
<td>gender={{gender}}</td>
</tr>
<tr>
<td>checkbox</td>
- <td>
- <input type="checkbox" ng-model="checkbox.tea" checked value="on"/> Tea<br/>
+ <td ng-init="checkbox={'tea': true, 'coffee': false}">
+ <input type="checkbox" ng-model="checkbox.tea" value="on"/> Tea<br/>
<input type="checkbox" ng-model="checkbox.coffee" value="on"/> Coffe
</td>
<td>
@@ -75,10 +75,10 @@
<td>ng-change<br/>ng-click</td>
<td ng-init="button.count = 0; form.count = 0;">
<form ng-submit="form.count = form.count + 1">
- <input type="button" value="button" ng-change="button.count = button.count + 1"/> <br/>
- <input type="submit" value="submit input" ng-change="button.count = button.count + 1"/><br/>
+ <input type="button" value="button" ng-click="button.count = button.count + 1"/> <br/>
+ <input type="submit" value="submit input" ng-click="button.count = button.count + 1"/><br/>
<button type="submit">submit button</button>
- <input type="image" src="" ng-change="button.count = button.count + 1"/><br/>
+ <input type="image" src="" ng-click="button.count = button.count + 1"/><br/>
<a href="" ng-click="button.count = button.count + 1">action</a>
</form>
</td>