mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +02:00
37 lines
699 B
HTML
37 lines
699 B
HTML
<!--
|
|
|
|
/*
|
|
-->
|
|
<!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 iframe = document.querySelector('iframe');
|
|
onload = function() {
|
|
iframe.src = "001-1.html?" + Math.random();
|
|
};
|
|
var start_test = function() {
|
|
window[0].document.links[0].click();
|
|
};
|
|
var after_load = function() {
|
|
history.back();
|
|
newDate = new Date();
|
|
setTimeout(function() {
|
|
assert_greater_than(Number(date), Number(newDate));
|
|
assert_equals(window[0].document.title, '001-1');
|
|
done();
|
|
}, 2000);
|
|
};
|
|
</script>
|
|
<!--
|
|
*/
|
|
//-->
|
|
|