mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
7a653b042a
--HG-- rename : browser/devtools/shared/test/browser_graphs-07.js => browser/devtools/shared/test/browser_graphs-07a.js
30 lines
913 B
JavaScript
30 lines
913 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 test() {
|
|
let { TIMELINE_BLUEPRINT } = devtools.require("devtools/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("fill" in value,
|
|
"Each entry in the timeline blueprint contains a `fill` key.");
|
|
ok("stroke" in value,
|
|
"Each entry in the timeline blueprint contains a `stroke` key.");
|
|
ok("label" in value,
|
|
"Each entry in the timeline blueprint contains a `label` key.");
|
|
}
|
|
|
|
finish();
|
|
}
|