@@ -1160,12 +1160,13 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
1160
1160
</label><br />
1161
1161
</form>
1162
1162
<pre>user.name = <span ng-bind="user.name"></span></pre>
1163
+ <pre>user.data = <span ng-bind="user.data"></span></pre>
1163
1164
</div>
1164
1165
</file>
1165
1166
<file name="app.js">
1166
1167
angular.module('optionsExample', [])
1167
1168
.controller('ExampleController', ['$scope', function($scope) {
1168
- $scope.user = { name: 'say ', data: '' };
1169
+ $scope.user = { name: 'John ', data: '' };
1169
1170
1170
1171
$scope.cancel = function(e) {
1171
1172
if (e.keyCode == 27) {
@@ -1180,20 +1181,20 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
1180
1181
var other = element(by.model('user.data'));
1181
1182
1182
1183
it('should allow custom events', function() {
1183
- input.sendKeys(' hello ');
1184
+ input.sendKeys(' Doe ');
1184
1185
input.click();
1185
- expect(model.getText()).toEqual('say ');
1186
+ expect(model.getText()).toEqual('John ');
1186
1187
other.click();
1187
- expect(model.getText()).toEqual('say hello ');
1188
+ expect(model.getText()).toEqual('John Doe ');
1188
1189
});
1189
1190
1190
1191
it('should $rollbackViewValue when model changes', function() {
1191
- input.sendKeys(' hello ');
1192
- expect(input.getAttribute('value')).toEqual('say hello ');
1192
+ input.sendKeys(' Doe ');
1193
+ expect(input.getAttribute('value')).toEqual('John Doe ');
1193
1194
input.sendKeys(protractor.Key.ESCAPE);
1194
- expect(input.getAttribute('value')).toEqual('say ');
1195
+ expect(input.getAttribute('value')).toEqual('John ');
1195
1196
other.click();
1196
- expect(model.getText()).toEqual('say ');
1197
+ expect(model.getText()).toEqual('John ');
1197
1198
});
1198
1199
</file>
1199
1200
</example>
@@ -1219,7 +1220,7 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
1219
1220
<file name="app.js">
1220
1221
angular.module('optionsExample', [])
1221
1222
.controller('ExampleController', ['$scope', function($scope) {
1222
- $scope.user = { name: 'say ' };
1223
+ $scope.user = { name: 'Igor ' };
1223
1224
}]);
1224
1225
</file>
1225
1226
</example>
0 commit comments