Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / base / test / test_bug444030.xhtml
blob8c75a24242ba63c0025f483107f1b0e3b18a4c66
1 <?xml version="1.0"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=444030
5 -->
6 <head>
7 <title>Test for Bug 444030</title>
8 <script type="text/javascript" src="/MochiKit/packed.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 <bindings xmlns="http://www.mozilla.org/xbl">
12 <binding id="e">
13 <content>e</content>
14 </binding>
15 </bindings>
16 </head>
17 <body>
18 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=444030">Mozilla Bug 444030</a>
19 <p id="display"></p>
20 <div id="content" style="display: none">
22 </div>
23 <pre id="test">
24 <script class="testbody" type="text/javascript">
25 <![CDATA[
27 /** Test for Bug 444030 **/
29 function doTest() {
30 var anonTextNode = document.getAnonymousNodes(document.getElementById("boundElement"))[0];
31 var hadException = false;
32 try {
33 var wholeText = anonTextNode.wholeText;
34 } catch(e) {
35 hadException = true;
37 ok(hadException,
38 "Should have got an exception when using .wholeText with a text node child of the binding parent");
40 hadException = false;
41 try {
42 anonTextNode.replaceWholeText("foobar");
43 } catch(e) {
44 hadException = true;
46 ok(hadException,
47 "Should have got an exception when using .replaceWholeText with a text node child of the binding parent");
48 SimpleTest.finish();
51 SimpleTest.waitForExplicitFinish();
52 addLoadEvent(doTest);
54 ]]>
55 </script>
56 </pre>
57 <div style="-moz-binding: url(#e)" id="boundElement"></div>
58 </body>
59 </html>