Files
Nikolaos Papaspyrou b27f1ab698 Bug 2057600 [wpt PR 61518] - cpu_performance: Ship the CPU Performance API, a=testonly
Automatic update from web-platform-tests
cpu_performance: Ship the CPU Performance API

This CL enables CpuPerformance for Stable.

I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/igPwzkxhQtk/m/Epzx3q7MBwAJ

TAG=agy
CONV=8a29dc4d-cbb7-45d9-b0ec-f9ba0a26158a

Bug: 449760252
Change-Id: Ia9da4f6940cc11813a552338a5068ec2799f3228
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8139880
Reviewed-by: Rick Byers <rbyers@chromium.org>
Owners-Override: Rick Byers <rbyers@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Nikolaos Papaspyrou <nikolaos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1667924}

--

wpt-commits: 6a009d73f0d315941b90cac13a9523a2a08c631b
wpt-pr: 61518
2026-07-28 08:20:15 +00:00

9 lines
423 B
JavaScript

test(function() {
assert_equals(typeof navigator.cpuPerformance, 'number',
'navigator.cpuPerformance returns a number');
assert_true(Number.isInteger(navigator.cpuPerformance),
'navigator.cpuPerformance returns an integer value');
assert_true(navigator.cpuPerformance >= 0,
'navigator.cpuPerformance returns a non-negative value');
}, 'navigator.cpuPerformance is valid');