mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-25 22:28:27 +00:00
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
|
/* Any copyright is dedicated to the Public Domain.
|
||
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||
|
|
||
|
/**
|
||
|
* Tests that recording notices does not display any buffer
|
||
|
* status on servers that do not support buffer statuses.
|
||
|
*/
|
||
|
function* spawnTest() {
|
||
|
let { panel } = yield initPerformance(SIMPLE_URL, void 0, {
|
||
|
TEST_PERFORMANCE_LEGACY_FRONT: true,
|
||
|
TEST_PROFILER_FILTER_STATUS: ["position", "totalSize", "generation"]
|
||
|
});
|
||
|
|
||
|
let { gFront: front, EVENTS, $, PerformanceController, PerformanceView } = panel.panelWin;
|
||
|
front.setProfilerStatusInterval(10);
|
||
|
yield startRecording(panel);
|
||
|
|
||
|
front.on("profiler-status", () => ok(false, "profiler-status should not be emitted when not supported"));
|
||
|
|
||
|
yield busyWait(100);
|
||
|
ok(!$("#details-pane-container").getAttribute("buffer-status"),
|
||
|
"container does not have [buffer-status] attribute when not supported");
|
||
|
|
||
|
yield busyWait(100);
|
||
|
ok(!$("#details-pane-container").getAttribute("buffer-status"),
|
||
|
"container does not have [buffer-status] attribute when not supported");
|
||
|
|
||
|
yield stopRecording(panel);
|
||
|
|
||
|
yield teardown(panel);
|
||
|
finish();
|
||
|
}
|