michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /** michael@0: * Tests that the frontend UI is properly configured when opening the tool. michael@0: */ michael@0: michael@0: function ifTestingSupported() { michael@0: let [target, debuggee, panel] = yield initCanavsDebuggerFrontend(SIMPLE_CANVAS_URL); michael@0: let { $ } = panel.panelWin; michael@0: michael@0: is($("#snapshots-pane").hasAttribute("hidden"), false, michael@0: "The snapshots pane should initially be visible."); michael@0: is($("#debugging-pane").hasAttribute("hidden"), false, michael@0: "The debugging pane should initially be visible."); michael@0: michael@0: is($("#record-snapshot").getAttribute("hidden"), "true", michael@0: "The 'record snapshot' button should initially be hidden."); michael@0: is($("#import-snapshot").hasAttribute("hidden"), false, michael@0: "The 'import snapshot' button should initially be visible."); michael@0: is($("#clear-snapshots").hasAttribute("hidden"), false, michael@0: "The 'clear snapshots' button should initially be visible."); michael@0: michael@0: is($("#reload-notice").hasAttribute("hidden"), false, michael@0: "The reload notice should initially be visible."); michael@0: is($("#empty-notice").getAttribute("hidden"), "true", michael@0: "The empty notice should initially be hidden."); michael@0: is($("#import-notice").getAttribute("hidden"), "true", michael@0: "The import notice should initially be hidden."); michael@0: michael@0: is($("#screenshot-container").getAttribute("hidden"), "true", michael@0: "The screenshot container should initially be hidden."); michael@0: is($("#snapshot-filmstrip").getAttribute("hidden"), "true", michael@0: "The snapshot filmstrip should initially be hidden."); michael@0: michael@0: is($("#debugging-pane-contents").getAttribute("hidden"), "true", michael@0: "The rest of the UI should initially be hidden."); michael@0: michael@0: yield teardown(panel); michael@0: finish(); michael@0: }