Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-gc2.html
blobfdb08f947c7c0c46e8dbb84e1712700a27df2c6a
1 <p>This page tests for a GC crash when tearing down a worker. If the tests passes,
2 you'll see a PASS message below.</p>
4 <pre id="console"></pre>
6 <script>
7 function $(id)
9 return document.getElementById(id);
12 function log(s)
14 $("console").appendChild(document.createTextNode(s + "\n"));
17 (function () {
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.waitUntilDone();
23 var worker = new Worker("resources/worker-gc2.js");
24 worker.onmessage = function () {
25 log("PASS: You didn't crash.");
27 // Try to wait for the worker to finish closing.
28 setTimeout(function () {
29 if (window.testRunner)
30 testRunner.notifyDone();
31 }, 0);
33 })();
34 </script>