mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-02 11:59:05 +00:00
35 lines
993 B
JavaScript
35 lines
993 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Tests that the call tree view renders content after recording.
|
|
*/
|
|
function spawnTest () {
|
|
let { panel } = yield initPerformance(SIMPLE_URL);
|
|
let { EVENTS, DetailsView, JsCallTreeView } = panel.panelWin;
|
|
|
|
yield DetailsView.selectView("js-calltree");
|
|
ok(DetailsView.isViewSelected(JsCallTreeView), "The call tree is now selected.");
|
|
|
|
yield startRecording(panel);
|
|
yield busyWait(100);
|
|
|
|
let rendered = once(JsCallTreeView, EVENTS.JS_CALL_TREE_RENDERED);
|
|
yield stopRecording(panel);
|
|
yield rendered;
|
|
|
|
ok(true, "JsCallTreeView rendered after recording is stopped.");
|
|
|
|
yield startRecording(panel);
|
|
yield busyWait(100);
|
|
|
|
rendered = once(JsCallTreeView, EVENTS.JS_CALL_TREE_RENDERED);
|
|
yield stopRecording(panel);
|
|
yield rendered;
|
|
|
|
ok(true, "JsCallTreeView rendered again after recording completed a second time.");
|
|
|
|
yield teardown(panel);
|
|
finish();
|
|
}
|