Bug 916004, set datasource after loading to see if intermittent orange of test_bug330010.xul goes away

This commit is contained in:
Neil Deakin 2016-05-27 09:19:53 -04:00
Родитель 3e2f28a96e
Коммит 890dd77f01
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -18,8 +18,11 @@ function boom()
var ds = RDF.GetDataSourceBlocking(src);
var s = document.getElementById("s");
s.setAttribute("datasources", "file_bug330010.rdf");
var x = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "hbox");
var generatedShape = document.getElementById("s").childNodes[3];
var generatedShape = s.childNodes[3];
generatedShape.appendChild(x);
document.documentElement.removeChild(document.getElementById("s"));
ok(true, "Didn't crash");
@ -29,7 +32,7 @@ function boom()
]]>
</script>
<html:div datasources="file_bug330010.rdf" ref="urn:root" flex="1" id="s">
<html:div datasources="rdf:null" ref="urn:root" flex="1" id="s">
<template>
<rule>
<conditions>