| Index: LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html
|
| diff --git a/LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html b/LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..336ad1b3f404bb26929b80e9180d6939741f7d0d
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE html>
|
| +<pre id='console'></pre>
|
| +
|
| +<script>
|
| +function log(message)
|
| +{
|
| + document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
|
| +}
|
| +
|
| +function runTest() {
|
| + var worker = new Worker('resources/worker-navigator-hardware-concurrency.js');
|
| + worker.onmessage = function(event) {
|
| + if (event.data == 'DONE') {
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + } else
|
| + log(event.data);
|
| + }
|
| + worker.postMessage('');
|
| +}
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +window.onload = runTest;
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|