1 <!-- Any copyright is dedicated to the Public Domain.
2 - http://creativecommons.org/publicdomain/zero/1.0/ -->
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" />
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);
24 } else if (event.data.type == 'status') {
25 ok(event.data.status, event.data.msg);