Index: LayoutTests/fast/dom/Window/orphaned-frame-access.html |
diff --git a/LayoutTests/fast/dom/Window/orphaned-frame-access.html b/LayoutTests/fast/dom/Window/orphaned-frame-access.html |
index a61e6834125ec7257c5185e0dfcca1da1e950ae0..1a0ec1bdbf6cde672c173c5520e835b0fbcfc853 100644 |
--- a/LayoutTests/fast/dom/Window/orphaned-frame-access.html |
+++ b/LayoutTests/fast/dom/Window/orphaned-frame-access.html |
@@ -1,9 +1,12 @@ |
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"> |
+<!DOCTYPE HTML> |
<html> |
<head> |
-<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
<title>Null frame access tests</title> |
+<script src="../../../resources/js-test.js"></script> |
<script> |
+description("This tests access to a window with a null frame. You should see \"PASS\" for each of the three tests below."); |
+ |
+window.jsTestIsAsync = true; |
window.onload = function() { |
if (window.testRunner) { |
testRunner.dumpAsText(); |
@@ -16,18 +19,16 @@ window.onload = function() { |
tag.parentNode.removeChild(tag); |
// schedule to run after the frame is null |
- setTimeout(function() { |
- document.body.appendChild(document.createTextNode(win.test || 'property: PASS ... ')); |
- document.body.appendChild(document.createTextNode(win[20] || 'array: PASS ... ')); |
- document.body.appendChild(document.createTextNode(win.Comment || 'missing property: PASS.')); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
- }, 0); |
+ asyncGC(function() { |
+ debug("missing property: " + (win.test || 'PASS')) |
+ debug("missing array index: " + (win[20] || 'PASS')); |
+ debug("missing interface object: " + (win.Comment || 'PASS')); |
+ finishJSTest(); |
+ }); |
}; |
</script> |
</head> |
<body> |
-This tests access to a window with a null frame. You should see "PASS" for each of the three tests below.<br /><br /> |
<iframe id="subframe" src="data:text/html,<script>window.test='FAIL ... ';window[20]='FAIL ... ';</script>" /> |
</body> |
</html> |