3 function waitAndTest(tests)
5 window.jsTestIsAsync = true;
9 var options = tests.shift();
11 return requestAnimationFrame(function() { finishJSTest(); }, 0);
12 return runSingleTest(options);
15 function runSingleTest(options)
19 function checkWhenReady()
22 testFailed("Timed out");
23 return finishJSTest();
28 return setTimeout(checkWhenReady, interval);
34 debug(options.description);
40 window.setTimeout(runNext, 0);
43 function createPlaceholder()
45 var link = document.createElement("link");
46 link.setAttribute("href", "resources/placeholder.html");
47 link.setAttribute("rel", "import");
48 document.head.appendChild(link);