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

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

Issue 262723002: Implement navigator.hardwareConcurrency (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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-cores.js
diff --git a/LayoutTests/fast/workers/resources/worker-navigator-cores.js b/LayoutTests/fast/workers/resources/worker-navigator-cores.js
new file mode 100644
index 0000000000000000000000000000000000000000..ecfd3333b89d61b1c57bb3fbfeed1f612e77a455
--- /dev/null
+++ b/LayoutTests/fast/workers/resources/worker-navigator-cores.js
@@ -0,0 +1,10 @@
+function log(message)
+{
+ postMessage(message);
+}
+
+onmessage = function(event)
+{
+ log(navigator.cores > 0 ? 'PASS' : 'FAIL');
+ log('DONE');
+}

Powered by Google App Engine
This is Rietveld 408576698