mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<!--
|
||||
|
||||
/*
|
||||
-->
|
||||
<!doctype html>
|
||||
<title>navigating</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
var date;
|
||||
var newDate;
|
||||
</script>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
var t = async_test();
|
||||
var iframe = document.querySelector('iframe');
|
||||
onload = t.step_func(function() {
|
||||
iframe.src = "001-1.html?" + Math.random();
|
||||
});
|
||||
var start_test = t.step_func(function() {
|
||||
window[0].document.links[0].click();
|
||||
});
|
||||
var after_load = t.step_func(function() {
|
||||
history.back();
|
||||
newDate = new Date();
|
||||
setTimeout(this.step_func(function() {
|
||||
assert_greater_than(Number(date), Number(newDate));
|
||||
assert_equals(window[0].document.title, '001-1');
|
||||
this.done();
|
||||
}), 500);
|
||||
});
|
||||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
||||
|
||||
Reference in New Issue
Block a user