Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / dom / performance / tests / test_worker_performance_now.html
blobbe4f8f56eaf5cbfd60736dad239e16f6149d3b45
1 <!-- Any copyright is dedicated to the Public Domain.
2 - http://creativecommons.org/publicdomain/zero/1.0/ -->
3 <!DOCTYPE HTML>
4 <html>
5 <head>
6 <title>Validate Interfaces Exposed to Workers</title>
7 <script src="/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
9 </head>
10 <body>
11 <script class="testbody" type="text/javascript">
13 SimpleTest.waitForExplicitFinish();
15 var reduceTimePrecisionPrevPrefValue = SpecialPowers.getBoolPref("privacy.reduceTimerPrecision");
16 SpecialPowers.setBoolPref("privacy.reduceTimerPrecision", false);
18 var worker = new Worker('test_worker_performance_now.js');
19 worker.onmessage = function(event) {
20 if (event.data.type == 'finish') {
21 SpecialPowers.setBoolPref("privacy.reduceTimerPrecision", reduceTimePrecisionPrevPrefValue);
22 SimpleTest.finish();
24 } else if (event.data.type == 'status') {
25 ok(event.data.status, event.data.msg);
29 </script>
30 </body>
31 </html>