mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 44702f2bc8ea98bc32b5b244f2fe63c6ce66d49d
This commit is contained in:
parent
85fa6409bb
commit
c227604a2c
997 changed files with 45660 additions and 14650 deletions
|
@ -39,13 +39,11 @@
|
|||
}
|
||||
var t = async_test("Date returned by lastModified is current after timeout.");
|
||||
|
||||
setTimeout(function() {
|
||||
t.step(function() {
|
||||
var new_modified = Date.parse(document.lastModified) / 1000;
|
||||
var new_expected = Math.round(new Date() / 1000);
|
||||
assert_approx_equals(new_modified, new_expected, 2.5,
|
||||
"(initial value was " + initial_modified + ")");
|
||||
t.done();
|
||||
});
|
||||
t.step_timeout(function() {
|
||||
var new_modified = Date.parse(document.lastModified) / 1000;
|
||||
var new_expected = Math.round(new Date() / 1000);
|
||||
assert_approx_equals(new_modified, new_expected, 2.5,
|
||||
"(initial value was " + initial_modified + ")");
|
||||
t.done();
|
||||
}, 4000);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue