Bug 1219554 - Enable the browser_memory_clear_snapshots.js test on DEBUG builds; r=jsantell

This commit is contained in:
Nick Fitzgerald 2016-02-04 11:53:00 +01:00
parent fb18fd84c8
commit 215f8ad277
2 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,6 @@ support-files =
[browser_memory_allocationStackBreakdown_01.js]
[browser_memory_breakdowns_01.js]
[browser_memory_clear_snapshots.js]
skip-if = debug # bug 1219554
[browser_memory_diff_01.js]
skip-if = debug # bug 1219554
[browser_memory_dominator_trees_01.js]

View File

@ -16,9 +16,12 @@ this.test = makeMemoryTest(TEST_URL, function* ({ tab, panel }) {
is(snapshotEls.length, 0, "No snapshots visible");
info("Take two snapshots");
yield takeSnapshot(panel.panelWin);
yield takeSnapshot(panel.panelWin);
yield waitUntilSnapshotState(gStore, [states.SAVED_CENSUS, states.SAVED_CENSUS]);
takeSnapshot(panel.panelWin);
takeSnapshot(panel.panelWin);
yield waitUntilState(gStore, state =>
state.snapshots.length === 2 &&
state.snapshots[0].state === states.SAVED_CENSUS &&
state.snapshots[1].state === states.SAVED_CENSUS);
snapshotEls = document.querySelectorAll("#memory-tool-container .list li");
is(snapshotEls.length, 2, "Two snapshots visible");