gecko-dev/browser/devtools/performance/test/browser_timeline-blueprint.js
Jordan Santell 66deded1e3 Bug 1150696 - Move all timeline tests that are still relevent into the performance tools tests. r=vp
--HG--
rename : browser/devtools/performance/test/browser_timeline_blueprint.js => browser/devtools/performance/test/browser_timeline-blueprint.js
rename : browser/devtools/performance/test/browser_timeline_filters.js => browser/devtools/performance/test/browser_timeline-filters.js
rename : browser/devtools/timeline/test/browser_timeline_waterfall-generic.js => browser/devtools/performance/test/browser_timeline-waterfall-generic.js
2015-04-30 12:23:11 -07:00

26 lines
825 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Tests if the timeline blueprint has a correct structure.
*/
function spawnTest () {
let { TIMELINE_BLUEPRINT } = devtools.require("devtools/shared/timeline/global");
ok(TIMELINE_BLUEPRINT,
"A timeline blueprint should be available.");
ok(Object.keys(TIMELINE_BLUEPRINT).length,
"The timeline blueprint has at least one entry.");
for (let [key, value] of Iterator(TIMELINE_BLUEPRINT)) {
ok("group" in value,
"Each entry in the timeline blueprint contains a `group` key.");
ok("colorName" in value,
"Each entry in the timeline blueprint contains a `colorName` key.");
ok("label" in value,
"Each entry in the timeline blueprint contains a `label` key.");
}
}