test_DOMWindowCreated_chromeonly.html (682B)
1 <!DOCTYPE html> 2 <head> 3 <title>DOMWindowCreated not visible in content</title> 4 <script src="/tests/SimpleTest/SimpleTest.js"></script> 5 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 6 <body onload="ok(true, 'Test finished'); SimpleTest.finish();"> 7 <p id="display"></p> 8 9 <script type="application/javascript"> 10 SimpleTest.waitForExplicitFinish(); 11 window.addEventListener("DOMWindowCreated", function() { ok(false, "DOMWindowCreated should not have fired"); }); 12 window.addEventListener("DOMDocElementInserted", function() { ok(false, "DOMDocElementInserted should not have fired"); }); 13 </script> 14 15 <iframe src="data:text/plain,Hi"></iframe>