2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>Test for worker performance timing API
</title>
9 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
10 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
13 <script class=
"testbody" type=
"text/javascript">
15 var sw = new SharedWorker('sharedworker_performance_user_timing.js');
16 sw.port.onmessage = function(event) {
17 if (event.data.type == 'finish') {
18 SpecialPowers.setBoolPref(
"privacy.reduceTimerPrecision", reduceTimePrecisionPrevPrefValue);
20 } else if (event.data.type == 'status') {
21 ok(event.data.status, event.data.msg);
25 var reduceTimePrecisionPrevPrefValue = SpecialPowers.getBoolPref(
"privacy.reduceTimerPrecision");
26 SpecialPowers.setBoolPref(
"privacy.reduceTimerPrecision", false);
27 SimpleTest.waitForExplicitFinish();