summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/WorkerNavigator-hardware-concurrency.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/WorkerNavigator-hardware-concurrency.any.js')
-rw-r--r--testing/web-platform/tests/workers/WorkerNavigator-hardware-concurrency.any.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/WorkerNavigator-hardware-concurrency.any.js b/testing/web-platform/tests/workers/WorkerNavigator-hardware-concurrency.any.js
new file mode 100644
index 0000000000..49db7503ff
--- /dev/null
+++ b/testing/web-platform/tests/workers/WorkerNavigator-hardware-concurrency.any.js
@@ -0,0 +1,4 @@
+// META: global=worker
+test(() => {
+ assert_true(navigator.hardwareConcurrency > 0);
+}, 'Test worker navigator hardware concurrency.');