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..97942d4b33320bcc40362a5b07b9da5a7d7c6527 |
--- /dev/null |
+++ b/LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<html> |
esprehn
2014/06/05 01:06:53
Leave out <html>, <head> and <body>.
|
+<body> |
+<pre id='console'></pre> |
esprehn
2014/06/05 01:06:53
You don't need this if you use js-test.js
|
+ |
+<script> |
+function log(message) |
+{ |
+ document.getElementById('console').appendChild(document.createTextNode(message + "\n")); |
esprehn
2014/06/05 01:06:53
Why not just js-test.js for this? js-test has asyn
|
+} |
+ |
+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> |