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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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