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

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

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/resources/worker-navigator-hardware-concurrency.js
diff --git a/LayoutTests/fast/workers/resources/worker-navigator-hardware-concurrency.js b/LayoutTests/fast/workers/resources/worker-navigator-hardware-concurrency.js
new file mode 100644
index 0000000000000000000000000000000000000000..a15cfecd610a7d2b7797b41862007c49b90a964c
--- /dev/null
+++ b/LayoutTests/fast/workers/resources/worker-navigator-hardware-concurrency.js
@@ -0,0 +1,10 @@
+function log(message)
+{
+ postMessage(message);
+}
+
+onmessage = function(event)
+{
+ log(navigator.hardwareConcurrency > 0 ? 'PASS' : 'FAIL');
+ log('DONE');
+}

Powered by Google App Engine
This is Rietveld 408576698