Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html

Issue 262723002: Implement navigator.hardwareConcurrency (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address reviewer comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698