Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-timeout.html
blobcd7e5d148c5a13bd78193824437cbfac0dbcfe6e
1 <body>
2 <p>Test Timeouts (setTimeout, setInterval, clearTimeout, clearInterval).</p>
3 <div id=result></div>
4 <script>
5 var logIsFrozen = false;
6 function log(message)
8 if (!logIsFrozen)
9 document.getElementById("result").innerHTML += message + "<br>";
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
17 var worker = new Worker('resources/worker-timeout.js');
19 worker.onmessage = function(evt) {
20 log(evt.data);
21 if (evt.data == "DONE") {
22 // This flag is needed because in Chromium port, the notifyDone() does not immediately snapshots
23 // the result and the still-firing timer in the worker may cause more messages to be logged before
24 // actual termination of the test. However one objective of the test is to keep active interval
25 // while the worker gets destroyed, so we freeze log rather then stop the interval from firing.
26 // See https://bugs.webkit.org/show_bug.cgi?id=31452 for more info.
27 logIsFrozen = true;
28 if (window.testRunner)
29 testRunner.notifyDone();
32 </script>
33 </body>
34 </html>