fune/layout/base/tests/file_bug842853.html
Hiroyuki Ikezoe 12bf7decdb Bug 1678089 - Trigger the test function after the child document received the load event. r=dholbert
Though the test funtion is called twice since the parent document reloads the
iframe document, but the test will not run for the second call since it's
prevented by `testRunning` flag in test_bug851485.html.

Differential Revision: https://phabricator.services.mozilla.com/D122662
2021-08-14 22:55:17 +00:00

17 lines
372 B
HTML

<!DOCTYPE HTML>
<html><head>
<meta charset="utf-8">
<title>Testcase for bug </title>
<link rel="stylesheet" href="file_bug842853.sjs">
</head>
<body>
<a href="#anchor">Click to scroll to anchor</a><div style="height:5000px"></div><a name="anchor">FAIL</a>
<script>
window.addEventListener("load", () => {
window.parent.runTest();
});
</script>
</body>
</html>