Bug 916004, preload datasource to see if it prevents intermittent orange, r=test-only-change
authorNeil Deakin <neil@mozilla.com>
Fri, 27 Mar 2015 07:47:46 -0400
changeset 266417 8c45833b771aff8f8338e423af21ab03420799da
parent 266416 bcd5980d0ec3d20389c49f3935795502497b27bd
child 266418 46e3f17440a755eef4feb276f779d4d11f771f96
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only-change
bugs916004
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 916004, preload datasource to see if it prevents intermittent orange, r=test-only-change
dom/xul/templates/tests/chrome/test_bug330010.xul
--- a/dom/xul/templates/tests/chrome/test_bug330010.xul
+++ b/dom/xul/templates/tests/chrome/test_bug330010.xul
@@ -2,28 +2,36 @@
 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
 <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         xmlns:svg="http://www.w3.org/2000/svg"
         xmlns:html="http://www.w3.org/1999/xhtml"
         onload="boom();">
 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
 <script type="text/javascript">
+<![CDATA[
 
 SimpleTest.waitForExplicitFinish();
 function boom()
 {
+  const RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].
+                         getService(Components.interfaces.nsIRDFService);
+  var src = window.location.href.replace(/test_bug330010.xul/, "file_bug330010.rdf");
+
+  var ds = RDF.GetDataSourceBlocking(src);
+
   var x = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
-  generatedShape = document.getElementById("s").childNodes[3];
+  var generatedShape = document.getElementById("s").childNodes[3];
   generatedShape.appendChild(x);
   document.documentElement.removeChild(document.getElementById("s"));
   ok(true, "Didn't crash");
   SimpleTest.finish();
 }
 
+]]>
 </script>
 
   <html:div datasources="file_bug330010.rdf" ref="urn:root" flex="1" id="s">
     <template>
       <rule>
         <conditions>
           <content uri="?root"/>
           <triple subject="?root"