mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 7f2f85a88f434798e9d643427b34b05fab8278c6
This commit is contained in:
parent
6b1a08c051
commit
73bc5cf1b8
180 changed files with 5807 additions and 169 deletions
|
@ -83,9 +83,22 @@
|
|||
|
||||
checkbox5.onclick = t5.step_func(function(e) {
|
||||
e.preventDefault();
|
||||
assert_false(checkbox5.checked);
|
||||
/*
|
||||
The prevention of the click doesn't have an effect until after all the
|
||||
click event handlers have been run.
|
||||
*/
|
||||
assert_true(checkbox5.checked);
|
||||
assert_false(checkbox5.indeterminate);
|
||||
t5.done();
|
||||
window.setTimeout(t5.step_func(function(e) {
|
||||
/*
|
||||
The click event has finished being dispatched, so the checkedness and
|
||||
determinateness have been toggled back by now because the event
|
||||
was preventDefault-ed.
|
||||
*/
|
||||
assert_false(checkbox5.checked);
|
||||
assert_false(checkbox5.indeterminate);
|
||||
t5.done();
|
||||
}), 0);
|
||||
});
|
||||
|
||||
t5.step(function(){
|
||||
|
@ -97,9 +110,22 @@
|
|||
checkbox6.onclick = t6.step_func(function(e) {
|
||||
checkbox6.indeterminate = true;
|
||||
e.preventDefault();
|
||||
assert_false(checkbox6.checked);
|
||||
assert_false(checkbox6.indeterminate);
|
||||
t6.done();
|
||||
/*
|
||||
The prevention of the click doesn't have an effect until after all the
|
||||
click event handlers have been run.
|
||||
*/
|
||||
assert_true(checkbox6.checked);
|
||||
assert_true(checkbox6.indeterminate);
|
||||
window.setTimeout(t6.step_func(function(e) {
|
||||
/*
|
||||
The click event has finished being dispatched, so the checkedness and
|
||||
determinateness have been toggled back by now because the event
|
||||
was preventDefault-ed.
|
||||
*/
|
||||
assert_false(checkbox6.checked);
|
||||
assert_false(checkbox6.indeterminate);
|
||||
t6.done();
|
||||
}), 0);
|
||||
});
|
||||
|
||||
t6.step(function(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue