content/xul/templates/tests/chrome/test_bug330010.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
     4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     5         xmlns:svg="http://www.w3.org/2000/svg"
     6         xmlns:html="http://www.w3.org/1999/xhtml"
     7         onload="boom();">
     8 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
     9 <script type="text/javascript">
    11 SimpleTest.waitForExplicitFinish();
    12 function boom()
    13 {
    14   var x = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
    15   generatedShape = document.getElementById("s").childNodes[3];
    16   generatedShape.appendChild(x);
    17   document.documentElement.removeChild(document.getElementById("s"));
    18   ok(true, "Didn't crash");
    19   SimpleTest.finish();
    20 }
    22 </script>
    24   <html:div datasources="file_bug330010.rdf" ref="urn:root" flex="1" id="s">
    25     <template>
    26       <rule>
    27         <conditions>
    28           <content uri="?root"/>
    29           <triple subject="?root"
    30                   predicate="urn:croczilla:xulsvg1:shapes"
    31                   object="?shapes"/>
    32           <member container="?shapes" child="?shape" id="m"/>
    33         </conditions>
    34         <action>
    35           <hbox id="p" uri="?shape" />
    36        </action>
    37      </rule>
    38    </template>
    39  </html:div>
    40 </window>

mercurial