mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
e3013f0300
--HG-- rename : browser/devtools/profiler/test/browser_profiler_categories.js => browser/devtools/performance/test/browser_profiler_categories.js rename : browser/devtools/profiler/test/browser_profiler_content-check.js => browser/devtools/performance/test/browser_profiler_content-check.js rename : browser/devtools/profiler/test/browser_profiler_tree-abstract-01.js => browser/devtools/performance/test/browser_profiler_tree-abstract-01.js rename : browser/devtools/profiler/test/browser_profiler_tree-abstract-02.js => browser/devtools/performance/test/browser_profiler_tree-abstract-02.js rename : browser/devtools/profiler/test/browser_profiler_tree-abstract-03.js => browser/devtools/performance/test/browser_profiler_tree-abstract-03.js rename : browser/devtools/profiler/test/browser_profiler_tree-abstract-04.js => browser/devtools/performance/test/browser_profiler_tree-abstract-04.js rename : browser/devtools/profiler/test/browser_profiler_tree-frame-node.js => browser/devtools/performance/test/browser_profiler_tree-frame-node.js rename : browser/devtools/profiler/test/browser_profiler_tree-model-01.js => browser/devtools/performance/test/browser_profiler_tree-model-01.js rename : browser/devtools/profiler/test/browser_profiler_tree-model-02.js => browser/devtools/performance/test/browser_profiler_tree-model-02.js rename : browser/devtools/profiler/test/browser_profiler_tree-model-03.js => browser/devtools/performance/test/browser_profiler_tree-model-03.js rename : browser/devtools/profiler/test/browser_profiler_tree-model-04.js => browser/devtools/performance/test/browser_profiler_tree-model-04.js rename : browser/devtools/profiler/test/browser_profiler_tree-model-05.js => browser/devtools/performance/test/browser_profiler_tree-model-05.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-01.js => browser/devtools/performance/test/browser_profiler_tree-view-01.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-02.js => browser/devtools/performance/test/browser_profiler_tree-view-02.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-03.js => browser/devtools/performance/test/browser_profiler_tree-view-03.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-04.js => browser/devtools/performance/test/browser_profiler_tree-view-04.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-05.js => browser/devtools/performance/test/browser_profiler_tree-view-05.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-06.js => browser/devtools/performance/test/browser_profiler_tree-view-06.js rename : browser/devtools/profiler/test/browser_profiler_tree-view-07.js => browser/devtools/performance/test/browser_profiler_tree-view-07.js rename : browser/devtools/timeline/test/browser_timeline_blueprint.js => browser/devtools/performance/test/browser_timeline_blueprint.js rename : browser/devtools/profiler/utils/global.js => browser/devtools/shared/profiler/global.js rename : browser/devtools/profiler/utils/tree-model.js => browser/devtools/shared/profiler/tree-model.js rename : browser/devtools/profiler/utils/tree-view.js => browser/devtools/shared/profiler/tree-view.js rename : browser/devtools/timeline/widgets/global.js => browser/devtools/shared/timeline/global.js rename : browser/devtools/timeline/widgets/marker-details.js => browser/devtools/shared/timeline/marker-details.js rename : browser/devtools/timeline/widgets/markers-overview.js => browser/devtools/shared/timeline/markers-overview.js rename : browser/devtools/timeline/widgets/memory-overview.js => browser/devtools/shared/timeline/memory-overview.js rename : browser/devtools/timeline/widgets/waterfall.js => browser/devtools/shared/timeline/waterfall.js
52 lines
2.4 KiB
JavaScript
52 lines
2.4 KiB
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Tests the function testing whether or not a frame is content or chrome
|
|
* works properly.
|
|
*/
|
|
|
|
function test() {
|
|
let { FrameNode } = devtools.require("devtools/shared/profiler/tree-model");
|
|
|
|
ok(FrameNode.isContent({ location: "http://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(FrameNode.isContent({ location: "https://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(FrameNode.isContent({ location: "file://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
|
|
ok(!FrameNode.isContent({ location: "chrome://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ location: "resource://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
|
|
ok(!FrameNode.isContent({ location: "chrome://foo -> http://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ location: "chrome://foo -> https://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ location: "chrome://foo -> file://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
|
|
ok(!FrameNode.isContent({ location: "resource://foo -> http://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ location: "resource://foo -> https://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ location: "resource://foo -> file://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
|
|
ok(!FrameNode.isContent({ category: 1, location: "chrome://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ category: 1, location: "resource://foo" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
|
|
ok(!FrameNode.isContent({ category: 1, location: "file://foo -> http://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ category: 1, location: "file://foo -> https://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
ok(!FrameNode.isContent({ category: 1, location: "file://foo -> file://bar" }),
|
|
"Verifying content/chrome frames is working properly.");
|
|
|
|
finish();
|
|
}
|