diff options
author | Pale Moon <git-repo@palemoon.org> | 2016-09-01 13:39:08 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2016-09-01 13:39:08 +0200 |
commit | 3d8ce1a11a7347cc94a937719c4bc8df46fb8d14 (patch) | |
tree | 8c26ca375a6312751c00a27e1653fb6f189f0463 /browser/devtools/profiler/test/browser_profiler_tabbed-browser-01.js | |
parent | e449bdb1ec3a82f204bffdd9c3c54069d086eee3 (diff) | |
download | palemoon-gre-3d8ce1a11a7347cc94a937719c4bc8df46fb8d14.tar.gz |
Base import of Tycho code (warning: huge commit)
Diffstat (limited to 'browser/devtools/profiler/test/browser_profiler_tabbed-browser-01.js')
-rw-r--r-- | browser/devtools/profiler/test/browser_profiler_tabbed-browser-01.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/browser/devtools/profiler/test/browser_profiler_tabbed-browser-01.js b/browser/devtools/profiler/test/browser_profiler_tabbed-browser-01.js new file mode 100644 index 000000000..b58585c55 --- /dev/null +++ b/browser/devtools/profiler/test/browser_profiler_tabbed-browser-01.js @@ -0,0 +1,28 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Tests if the profiler displays and organizes the recording data in tabs. + */ + +let test = Task.async(function*() { + let [target, debuggee, panel] = yield initFrontend(SIMPLE_URL); + let { $, ProfileView } = panel.panelWin; + + yield startRecording(panel); + yield stopRecording(panel, { waitForDisplay: true }); + + is(ProfileView.tabCount, 1, + "There should be one tab visible."); + is($("#profile-pane").selectedPanel, $("#profile-content"), + "The profile content should be displayed in the profile view."); + is($("#profile-content").selectedIndex, 0, + "The first tab is selected."); + + ok($("#profile-content .tab-title-label").getAttribute("value") + .match(/\d+ ms . \d+ ms/), + "The recording's first tab title is correct."); + + yield teardown(panel); + finish(); +}); |