1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/bugs/test_DOMWindowCreated_chromeonly.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 +<!DOCTYPE html> 1.5 +<head> 1.6 + <title>DOMWindowCreated not visible in content</title> 1.7 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.8 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.9 +<body onload="ok(true, 'Test finished'); SimpleTest.finish();"> 1.10 + <p id="display"></p> 1.11 + 1.12 + <script type="application/javascript"> 1.13 + SimpleTest.waitForExplicitFinish(); 1.14 + window.addEventListener("DOMWindowCreated", function() { ok(false, "DOMWindowCreated should not have fired"); }, false); 1.15 + 1.16 + <iframe src="data:text/plain,Hi"></iframe>