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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/xul/templates/tests/chrome/test_bug330010.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
     1.7 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.8 +        xmlns:svg="http://www.w3.org/2000/svg"
     1.9 +        xmlns:html="http://www.w3.org/1999/xhtml"
    1.10 +        onload="boom();">
    1.11 +<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    1.12 +<script type="text/javascript">
    1.13 +
    1.14 +SimpleTest.waitForExplicitFinish();
    1.15 +function boom()
    1.16 +{
    1.17 +  var x = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
    1.18 +  generatedShape = document.getElementById("s").childNodes[3];
    1.19 +  generatedShape.appendChild(x);
    1.20 +  document.documentElement.removeChild(document.getElementById("s"));
    1.21 +  ok(true, "Didn't crash");
    1.22 +  SimpleTest.finish();
    1.23 +}
    1.24 +
    1.25 +</script>
    1.26 +
    1.27 +  <html:div datasources="file_bug330010.rdf" ref="urn:root" flex="1" id="s">
    1.28 +    <template>
    1.29 +      <rule>
    1.30 +        <conditions>
    1.31 +          <content uri="?root"/>
    1.32 +          <triple subject="?root"
    1.33 +                  predicate="urn:croczilla:xulsvg1:shapes"
    1.34 +                  object="?shapes"/>
    1.35 +          <member container="?shapes" child="?shape" id="m"/>
    1.36 +        </conditions>
    1.37 +        <action>
    1.38 +          <hbox id="p" uri="?shape" />
    1.39 +       </action>
    1.40 +     </rule>
    1.41 +   </template>
    1.42 + </html:div>
    1.43 +</window>

mercurial