4 https://bugzilla.mozilla.org/show_bug.cgi?id=782751
7 <title>Test for Bug
782751</title>
8 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <script type=
"text/javascript" src=
"test_performance_user_timing.js"></script>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=782751">Mozilla Bug
782751 - User Timing API
</a>
17 <script class=
"testbody" type=
"text/javascript">
23 for (var i =
0; i < steps.length; ++i) {
25 performance.clearMarks();
26 performance.clearMeasures();
27 performance.clearResourceTimings();
28 is(performance.getEntriesByType(
"resource").length,
0,
"clearing performance resource entries");
29 is(performance.getEntriesByType(
"mark").length,
0,
"clearing performance mark entries");
30 is(performance.getEntriesByType(
"measure").length,
0,
"clearing performance measure entries");
33 ok(false,
"Caught exception", ex);
37 SpecialPowers.setBoolPref(
"privacy.reduceTimerPrecision", reduceTimePrecisionPrevPrefValue);
41 var reduceTimePrecisionPrevPrefValue = SpecialPowers.getBoolPref(
"privacy.reduceTimerPrecision");
42 SpecialPowers.setBoolPref(
"privacy.reduceTimerPrecision", false);
44 SimpleTest.waitForExplicitFinish();