event-valuechange-test.js revision 4e02c20a9efcb64aa464bc612385f3d9246a6483
// -- Lifecycle ----------------------------------------------------------------
name: 'Everything',
_should: {
ignore: {
// IE doesn't simulate blur events properly, so this test fails.
// Have to rely on manual testing.
}
},
setUp: function () {
},
tearDown: function () {
delete this.textArea;
delete this.textInput;
},
'valueChange event should start polling on mousedown and fire an event when the value changes': function () {
var fired;
fired = true;
});
this.wait(function () {
}, 60);
},
'valueChange should support textareas as well': function () {
var fired;
fired = true;
});
this.wait(function () {
}, 60);
},
'valueChange should start polling on keydown': function () {
var fired;
fired = true;
});
this.wait(function () {
}, 60);
},
'valueChange should stop polling on blur': function () {
var fired;
fired = true;
});
this.wait(function () {
fired = false;
this.wait(function () {
}, 60);
}, 60);
},
'valueChange should start polling on keyup for IME keystrokes': function () {
var fired = false;
fired = true;
});
this.wait(function () {
this.wait(function () {
fired = false;
this.wait(function () {
}, 60);
}, 60);
}, 60);
},
'valueChange should stop polling after timeout': function () {
fired = true;
});
this.wait(function () {
fired = false;
this.wait(function () {
this.wait(function () {
}, 60);
}, 71);
}, 60);
}
}));