event-valuechange-test.js revision c9f4840766a5e345b5737becd20947717820cfef
// -- Lifecycle ----------------------------------------------------------------
name: 'Everything',
_should: {
ignore: {
// fail. Have to rely on manual testing.
'valuechange should stop polling on blur': ignoreFocus,
'valuechange should start polling on focus': ignoreFocus,
'valuechange should not report stale changes that occurred while a node was not focused': ignoreFocus
}
},
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 focus': function () {
var fired;
fired = true;
});
this.wait(function () {
}, 60);
},
'valuechange should not report stale changes that occurred while a node was not focused': function () {
var fired = false;
fired = true;
});
this.wait(function () {
}, 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 () {
}, 100);
}, 100);
}, 100);
},
'valuechange should stop polling after timeout': function () {
fired = true;
});
this.wait(function () {
fired = false;
this.wait(function () {
this.wait(function () {
}, 60);
}, 71);
}, 60);
},
'valueChange should be an alias for valuechange for backcompat': function () {
var fired;
fired = true;
});
this.wait(function () {
}, 60);
}
}));