mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision 4b25d322ac6ed466f992669e5408b15d37d56436
This commit is contained in:
parent
6a4ad433a2
commit
92e90e6633
32 changed files with 277 additions and 150 deletions
|
@ -7,23 +7,24 @@
|
|||
var t = async_test();
|
||||
started = false;
|
||||
pages = []
|
||||
timer = null;
|
||||
start_test_wait = t.step_func(
|
||||
function() {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(t.step_func(
|
||||
check_result = t.step_func(
|
||||
function() {
|
||||
try {
|
||||
//The pass condition here is based on the idea that the spec is wrong and browsers are right
|
||||
assert_array_equals(pages, [2, 3, 2, 3], "Pages opened durning history navigation");
|
||||
t.done();
|
||||
} finally {
|
||||
// win.close();
|
||||
if (pages.length < 4) {
|
||||
setTimeout(check_result, 500);
|
||||
return
|
||||
}
|
||||
//The pass condition here is based on the idea that the spec is wrong and browsers are right
|
||||
assert_array_equals(pages, [2, 3, 2, 3], "Pages opened during history navigation");
|
||||
t.done();
|
||||
}
|
||||
), 500);
|
||||
)
|
||||
setTimeout(check_result, 500);
|
||||
}
|
||||
);
|
||||
t.step(function() {win = window.open("history_entry.html?urls=traverse_the_history_write_after_load_1-1.html");
|
||||
t.step(function() {
|
||||
win = window.open("history_entry.html?urls=traverse_the_history_write_after_load_1-1.html");
|
||||
t.add_cleanup(function() {win.close()});
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -7,23 +7,22 @@
|
|||
var t = async_test();
|
||||
started = false;
|
||||
pages = []
|
||||
timer = null;
|
||||
start_test_wait = t.step_func(
|
||||
function() {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(t.step_func(
|
||||
function() {
|
||||
try {
|
||||
//The pass condition here is based on the idea that the spec is wrong and browsers are right
|
||||
assert_array_equals(pages, [3, 4, 2, 3, 4], "Pages opened durning history navigation");
|
||||
t.done();
|
||||
} finally {
|
||||
win.close();
|
||||
}
|
||||
}
|
||||
), 500);
|
||||
var check_result = t.step_func(function() {
|
||||
if (pages.length < 5) {
|
||||
setTimeout(check_result, 500);
|
||||
return
|
||||
}
|
||||
//The pass condition here is based on the idea that the spec is wrong and browsers are right
|
||||
assert_array_equals(pages, [3, 4, 2, 3, 4], "Pages opened during history navigation");
|
||||
t.done();
|
||||
});
|
||||
setTimeout(check_result, 500);
|
||||
}
|
||||
);
|
||||
t.step(function() {win = window.open("history_entry.html?urls=history_forward-1.html,traverse_the_history_write_onload_2-1.html");
|
||||
});
|
||||
t.step(function() {
|
||||
win = window.open("history_entry.html?urls=history_forward-1.html,traverse_the_history_write_onload_2-1.html");
|
||||
t.add_cleanup(function() {win.close()});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue