From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../test/browser_canvas-frontend-open.js | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 devtools/client/canvasdebugger/test/browser_canvas-frontend-open.js (limited to 'devtools/client/canvasdebugger/test/browser_canvas-frontend-open.js') diff --git a/devtools/client/canvasdebugger/test/browser_canvas-frontend-open.js b/devtools/client/canvasdebugger/test/browser_canvas-frontend-open.js new file mode 100644 index 000000000..59c4d4cfb --- /dev/null +++ b/devtools/client/canvasdebugger/test/browser_canvas-frontend-open.js @@ -0,0 +1,41 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Tests that the frontend UI is properly configured when opening the tool. + */ + +function* ifTestingSupported() { + let { target, panel } = yield initCanvasDebuggerFrontend(SIMPLE_CANVAS_URL); + let { $ } = panel.panelWin; + + is($("#snapshots-pane").hasAttribute("hidden"), false, + "The snapshots pane should initially be visible."); + is($("#debugging-pane").hasAttribute("hidden"), false, + "The debugging pane should initially be visible."); + + is($("#record-snapshot").getAttribute("hidden"), "true", + "The 'record snapshot' button should initially be hidden."); + is($("#import-snapshot").hasAttribute("hidden"), false, + "The 'import snapshot' button should initially be visible."); + is($("#clear-snapshots").hasAttribute("hidden"), false, + "The 'clear snapshots' button should initially be visible."); + + is($("#reload-notice").hasAttribute("hidden"), false, + "The reload notice should initially be visible."); + is($("#empty-notice").getAttribute("hidden"), "true", + "The empty notice should initially be hidden."); + is($("#waiting-notice").getAttribute("hidden"), "true", + "The waiting notice should initially be hidden."); + + is($("#screenshot-container").getAttribute("hidden"), "true", + "The screenshot container should initially be hidden."); + is($("#snapshot-filmstrip").getAttribute("hidden"), "true", + "The snapshot filmstrip should initially be hidden."); + + is($("#debugging-pane-contents").getAttribute("hidden"), "true", + "The rest of the UI should initially be hidden."); + + yield teardown(panel); + finish(); +} -- cgit v1.2.3