Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: http3 OR http2
- Manifest: dom/html/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=649134">Mozilla Bug 649134</a>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
SimpleTest.waitForExplicitFinish();
var calls = 0;
function finish() {
if (++calls == 4)
SimpleTest.finish();
}
function verifyNoLoad(iframe) {
ok(iframe.contentDocument.body.offsetHeight > 0,
"HTTP Link stylesheet was ignored " + iframe.src);
finish();
}
var verifyLoadCalls = 0;
function verifyLoad(iframe) {
if (++verifyLoadCalls == 2) {
ok(indexContent == iframe.contentDocument.body.innerHTML,
}
finish();
}
function indexLoad(iframe) {
indexContent = iframe.contentDocument.body.innerHTML;
verifyLoad(iframe);
}
</script>
</pre>
<p id="display">
<iframe onload="verifyLoad(this);" src="bug649134/"></iframe> <!-- verify that mochitest server loads index.html -->
</p>
</body>
</html>