mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
27 lines
672 B
HTML
27 lines
672 B
HTML
<html>
|
|
<head>
|
|
<meta charset="utf8" />
|
|
<script src="harness.js"></script>
|
|
<title>Iframe contentDocument test.</title>
|
|
</head>
|
|
<body>
|
|
<iframe src="resources/iframe_contentDocument_inner.html" id="iframe"></iframe>
|
|
<script>
|
|
waitForExplicitFinish();
|
|
|
|
var timeout = 100;
|
|
var iframe = document.getElementById('iframe');
|
|
function test_contentWindow() {
|
|
if (!iframe.contentWindow) {
|
|
// Iframe not loaded yet, try again.
|
|
// No load event for iframe, insert bug number here.
|
|
setTimeout(test_contentWindow, timeout);
|
|
return;
|
|
}
|
|
is(iframe.contentDocument.getElementById('test').textContent, 'value');
|
|
finish();
|
|
}
|
|
test_contentWindow();
|
|
</script>
|
|
</body>
|
|
</html>
|