mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
20 lines
617 B
HTML
20 lines
617 B
HTML
<!doctype html>
|
|
<title>Reuse of document object after document.open</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<iframe src="004-1.html"></iframe>
|
|
<script>
|
|
var t = async_test();
|
|
var iframe;
|
|
onload = t.step_func(function() {
|
|
var iframe = document.getElementsByTagName("iframe")[0];
|
|
var handle = iframe.contentDocument;
|
|
iframe.contentDocument.test_state = 1;
|
|
iframe.contentDocument.open();
|
|
assert_equals(iframe.contentDocument.test_state, 1);
|
|
assert_equals(iframe.contentDocument, handle);
|
|
t.done();
|
|
});
|
|
</script>
|