layout/xul/test/test_bug386386.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <html>
michael@0 2 <head><title>Testcase for bug 386386</title>
michael@0 3 <!--
michael@0 4 https://bugzilla.mozilla.org/show_bug.cgi?id=386386
michael@0 5 -->
michael@0 6 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 7 </head>
michael@0 8 <body>
michael@0 9
michael@0 10 <iframe id="test386386" src="data:application/vnd.mozilla.xul+xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%3F%3E%0A%3Cwindow%3E%3C/window%3E"></iframe>
michael@0 11
michael@0 12 <script class="testbody" type="application/javascript">
michael@0 13
michael@0 14 function boom()
michael@0 15 {
michael@0 16 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
michael@0 17 var doc = document.getElementById("test386386").contentDocument;
michael@0 18 var observes = doc.createElementNS(XUL_NS, 'observes');
michael@0 19 doc.removeChild(doc.documentElement);
michael@0 20 doc.appendChild(observes);
michael@0 21 is(0, 0, "Test is successful if we get here without crashing");
michael@0 22 SimpleTest.finish();
michael@0 23 }
michael@0 24
michael@0 25 function do_test() {
michael@0 26 setTimeout(boom, 200);
michael@0 27 }
michael@0 28 SimpleTest.waitForExplicitFinish();
michael@0 29 addLoadEvent(do_test);
michael@0 30 </script>
michael@0 31
michael@0 32 </body>
michael@0 33 </html>

mercurial