Skip to content

Commit 59ae8ad

Browse files
mkotsurmhevery
authored andcommitted
fix(scenario): dev secenario tests
closes angular#843 Fixed failed e2e test
1 parent c0b7847 commit 59ae8ad

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/ngScenario/e2e/widgets.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2-
<html xmlns:ng="http://angularjs.org">
3-
<head ng-app>
2+
<html xmlns:ng="http://angularjs.org" ng-app>
3+
<head>
44
<link rel="stylesheet" type="text/css" href="style.css"/>
55
<script type="text/javascript" src="../../../src/angular-bootstrap.js"></script>
66
</head>
@@ -26,22 +26,22 @@
2626
</tr>
2727
<tr>
2828
<td>hidden</td>
29-
<td><input type="hidden" ng-model="text.hidden" value="hiddenValue" /></td>
29+
<td><input type="hidden" ng-model="text.hidden" ng-init="text.hidden='hiddenValue'" /></td>
3030
<td>text.hidden={{text.hidden}}</td>
3131
</tr>
3232
<tr><th colspan="3">Input selection field</th></tr>
33-
<tr id="gender-box">
33+
<tr id="gender-box" ng-init="gender='male'">
3434
<td>radio</td>
3535
<td>
3636
<input type="radio" ng-model="gender" value="female"/> Female <br/>
37-
<input type="radio" ng-model="gender" value="male" checked="checked"/> Male
37+
<input type="radio" ng-model="gender" value="male"/> Male
3838
</td>
3939
<td>gender={{gender}}</td>
4040
</tr>
4141
<tr>
4242
<td>checkbox</td>
43-
<td>
44-
<input type="checkbox" ng-model="checkbox.tea" checked value="on"/> Tea<br/>
43+
<td ng-init="checkbox={'tea': true, 'coffee': false}">
44+
<input type="checkbox" ng-model="checkbox.tea" value="on"/> Tea<br/>
4545
<input type="checkbox" ng-model="checkbox.coffee" value="on"/> Coffe
4646
</td>
4747
<td>
@@ -75,10 +75,10 @@
7575
<td>ng-change<br/>ng-click</td>
7676
<td ng-init="button.count = 0; form.count = 0;">
7777
<form ng-submit="form.count = form.count + 1">
78-
<input type="button" value="button" ng-change="button.count = button.count + 1"/> <br/>
79-
<input type="submit" value="submit input" ng-change="button.count = button.count + 1"/><br/>
78+
<input type="button" value="button" ng-click="button.count = button.count + 1"/> <br/>
79+
<input type="submit" value="submit input" ng-click="button.count = button.count + 1"/><br/>
8080
<button type="submit">submit button</button>
81-
<input type="image" src="" ng-change="button.count = button.count + 1"/><br/>
81+
<input type="image" src="" ng-click="button.count = button.count + 1"/><br/>
8282
<a href="" ng-click="button.count = button.count + 1">action</a>
8383
</form>
8484
</td>

0 commit comments

Comments
 (0)