mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 543821, iterate a bit more and wait for the xml datasource to load in this test, should fix intermittent orange
This commit is contained in:
parent
aaca6a970a
commit
451c9fc14a
@ -247,7 +247,15 @@ function runTest()
|
||||
root.setAttribute("datasources", "animals.xml");
|
||||
$("binding").setAttribute("predicate", "[name]");
|
||||
|
||||
setTimeout(runTest, 0);
|
||||
function waitForDatasource() {
|
||||
// wait for the datasource to be available before continuing the test
|
||||
if (root.builder.datasource instanceof XMLDocument)
|
||||
runTest();
|
||||
else
|
||||
setTimeout(waitForDatasource, 100);
|
||||
}
|
||||
|
||||
setTimeout(waitForDatasource, 0);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user