mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 23:06:52 +00:00
d6c5650b54
- Bug 1189759 - Part 1: Implement <xul:menuitem endimage> as a way to display an image at the end of a menu item; r=jaws (eb66e2b142)
- bits of Bug 880164 - Australis toolbar buttons contextual menu in toolbar, palette and customize mode (601529fa02)
- complete allTabs removal initiate accidentally in 1228627 (11526f9be2)
- Bug 1189759 - Part 2: Add sound playing and muted icons to the all tabs menu; r=jaws (b3780a4080)
- Bug 1204845 - Remove the menuitem-iconic-both binding. r=enndeakin (1a6b49137f)
- Bug 897751 - Tab close button's DoubleClick protection handler leaks. r=mano (598ffd6ea0)
- Bug 1059600 - Set the URI as the initial tab label for javascript links opened in new tabs. r=gijs (a888e89683)
- Bug 1247920 - Remove tabs' visibleLabel property and TabLabelModified event, backing out bug 943820. r=gijs (f2a8c6c5b6)
- Bug 1196762 - Part 2: PrefsProvider and PlacesProvider messaging integration in RemoteAboutNewTab r=Mardak (40f298de12)
- Bug 1210478 - Add Meta URL resolution in RemoteNewTabLocation r=mconley (a9a7b774b2)
- Bug 1218996 - Fuse aboutNewTabService and RemoteNewTabLocation and return resource URLS r=marcosc (42f6909cc8)
- Bug 1218996 - Remove now redundant messaging code for remote newtab r=marcosc (50de90e6c9)
- Bug 1214287 - 2-4% linux64/win7/8 ts_paint regression on inbound (v.44) seen on Oct 12, 2015 from rev 3012b7a2c97c r=mconley (f7d4224141)
- assorted fixes to make newtab work (d5b208fc72)
- Bug 1169179 - Run mozscreenshots as a mochitest-browser-chrome test. r=felipe,glandium (6a9c3c896d)
- Bug 1216979 - Add ACCEL+ALT+R key binding to reload WebIDE. r=jryans (c7afde0f46)
- Bug 1204127 - Clean up paths added after migration. r=ochameau (9e35211636)
- Bug 1029371 - Make style editor media sidebar interact with media sidebar. r=bgrins r=paul r=mgoodwin (c166b888cb)
- Bug 1055333 - Enable last styleeditor e10s tests;r=ejpbruel (768bc3948b)
- Bug 1192486 - make completion work in any selected style editor; r=mratcliffe (fde809a65e)
- Bug 1206463 - Eslint cleanup for source editor r=mratcliffe (b8a2b7f0e7)
- Bug 1232786 - Convert JS tests to use open2 within devtools/ (r=sicking) (3c76f148d8)
- Bug 1235953 - Refactor responsive mode tests to use add_task to not use CPOWs and make sure they all wait for the off event. r=ochameau (ad4374ca81)
- Bug 1240183 - make styleeditor eslint-clean; r=pbro (37f17595ca)
- Bug 1162848 - Make console 'clear' shortcut ctrl+shift+l on Windows / Linux;r=jryans (1870519951)
- Bug 1245462 - Replace usages of gDevTools.jsm by module imports. r=jryans (7f967d5410)
- Bug 1244514 - webconsole.js eslint: fix spacing and line length; r=linclark (c98e3aeb07)
- Bug 1246188 - Make webconsole.js ESLint-clean. r=lclark (7dec42e75f)
- Bug 1249714 - Use jsterm.focus instead of inputNode.focus;r=linclark (60238ce0bd)
- Bug 1249715 - Split jsterm into different file than webconsole.js;r=linclark (b4560b21b4)
- Bug 1249714 - Use jsterm.focus instead of inputNode.focus;r=linclark (a01b4348f4)
- Bug 1248301 - Do not cause a horizontal scrollbar to appear in the console when it overflows vertically;r=vporof (2c86ffacbe)
- Bug 1228032 - restore chrome://global/skin/ where chrome://browser/skin/ was removed, r=jryans (5609017a31)
- Bug 1239437 - Delegate to empty, new responsive UI tool if enabled. r=pbrosset (e131d71fa6)
- Bug 1239437 - Add a basic viewport frame. r=pbrosset (82759cdcc3)
- Bug 1239437 - Hide iframe border. r=pbrosset (5668bd6171)
- Bug 1239437 - Stir in React and Redux. r=pbrosset,jlongster (c6ef09a7f7)
- Bug 1246733 - Remove stylesheet references of 'devtools/skin/common.css' and instead import it in theme files;r=ntim,r=ochameau (dd5c660185)
- Bug 1204429 - Part 1: Collect primitive counts information. r=vporof (bdaaad5c20)
- Bug 1204429 - Part 2: Add tests for counting number of primitives in WebGL draw functions. r=vporof (1a093ad855)
- Bug 1226245 - Make CallWatcher generic, r=jsantell (5771c8a173)
166 lines
4.5 KiB
JavaScript
166 lines
4.5 KiB
JavaScript
/*
|
|
* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
function test() {
|
|
info("Test various cases where the escape key should hide the split console.");
|
|
|
|
let toolbox;
|
|
let hud;
|
|
let jsterm;
|
|
let hudMessages;
|
|
let variablesView;
|
|
|
|
Task.spawn(runner).then(finish);
|
|
|
|
function* runner() {
|
|
let {tab} = yield loadTab("data:text/html;charset=utf-8,<p>Web Console " +
|
|
"test for splitting");
|
|
let target = TargetFactory.forTab(tab);
|
|
toolbox = yield gDevTools.showToolbox(target, "inspector");
|
|
|
|
yield testCreateSplitConsoleAfterEscape();
|
|
|
|
yield showAutoCompletePopoup();
|
|
|
|
yield testHideAutoCompletePopupAfterEscape();
|
|
|
|
yield executeJS();
|
|
yield clickMessageAndShowVariablesView();
|
|
jsterm.focus();
|
|
|
|
yield testHideVariablesViewAfterEscape();
|
|
|
|
yield clickMessageAndShowVariablesView();
|
|
yield startPropertyEditor();
|
|
|
|
yield testCancelPropertyEditorAfterEscape();
|
|
yield testHideVariablesViewAfterEscape();
|
|
yield testHideSplitConsoleAfterEscape();
|
|
}
|
|
|
|
function testCreateSplitConsoleAfterEscape() {
|
|
let result = toolbox.once("webconsole-ready", () => {
|
|
hud = toolbox.getPanel("webconsole").hud;
|
|
jsterm = hud.jsterm;
|
|
ok(toolbox.splitConsole, "Split console is created.");
|
|
});
|
|
|
|
let contentWindow = toolbox.frame.contentWindow;
|
|
contentWindow.focus();
|
|
EventUtils.sendKey("ESCAPE", contentWindow);
|
|
|
|
return result;
|
|
}
|
|
|
|
function testHideSplitConsoleAfterEscape() {
|
|
let result = toolbox.once("split-console", () => {
|
|
ok(!toolbox.splitConsole, "Split console is hidden.");
|
|
});
|
|
EventUtils.sendKey("ESCAPE", toolbox.frame.contentWindow);
|
|
|
|
return result;
|
|
}
|
|
|
|
function testHideVariablesViewAfterEscape() {
|
|
let result = jsterm.once("sidebar-closed", () => {
|
|
ok(!hud.ui.jsterm.sidebar,
|
|
"Variables view is hidden.");
|
|
ok(toolbox.splitConsole,
|
|
"Split console is open after hiding the variables view.");
|
|
});
|
|
EventUtils.sendKey("ESCAPE", toolbox.frame.contentWindow);
|
|
|
|
return result;
|
|
}
|
|
|
|
function testHideAutoCompletePopupAfterEscape() {
|
|
let deferred = promise.defer();
|
|
let popup = jsterm.autocompletePopup;
|
|
|
|
popup._panel.addEventListener("popuphidden", function popupHidden() {
|
|
popup._panel.removeEventListener("popuphidden", popupHidden, false);
|
|
ok(!popup.isOpen,
|
|
"Auto complete popup is hidden.");
|
|
ok(toolbox.splitConsole,
|
|
"Split console is open after hiding the autocomplete popup.");
|
|
|
|
deferred.resolve();
|
|
}, false);
|
|
|
|
EventUtils.sendKey("ESCAPE", toolbox.frame.contentWindow);
|
|
|
|
return deferred.promise;
|
|
}
|
|
|
|
function testCancelPropertyEditorAfterEscape() {
|
|
EventUtils.sendKey("ESCAPE", variablesView.window);
|
|
ok(hud.ui.jsterm.sidebar,
|
|
"Variables view is open after canceling property editor.");
|
|
ok(toolbox.splitConsole,
|
|
"Split console is open after editing.");
|
|
}
|
|
|
|
function* executeJS() {
|
|
jsterm.execute("var foo = { bar: \"baz\" }; foo;");
|
|
hudMessages = yield waitForMessages({
|
|
webconsole: hud,
|
|
messages: [{
|
|
text: "Object { bar: \"baz\" }",
|
|
category: CATEGORY_OUTPUT,
|
|
objects: true
|
|
}],
|
|
});
|
|
}
|
|
|
|
function clickMessageAndShowVariablesView() {
|
|
let result = jsterm.once("variablesview-fetched", (event, vview) => {
|
|
variablesView = vview;
|
|
});
|
|
|
|
let clickable = hudMessages[0].clickableElements[0];
|
|
EventUtils.synthesizeMouse(clickable, 2, 2, {}, hud.iframeWindow);
|
|
|
|
return result;
|
|
}
|
|
|
|
function* startPropertyEditor() {
|
|
let results = yield findVariableViewProperties(variablesView, [
|
|
{name: "bar", value: "baz"}
|
|
], {webconsole: hud});
|
|
results[0].matchedProp.focus();
|
|
EventUtils.synthesizeKey("VK_RETURN", variablesView.window);
|
|
}
|
|
|
|
function showAutoCompletePopoup() {
|
|
let deferred = promise.defer();
|
|
let popupPanel = jsterm.autocompletePopup._panel;
|
|
|
|
popupPanel.addEventListener("popupshown", function popupShown() {
|
|
popupPanel.removeEventListener("popupshown", popupShown, false);
|
|
deferred.resolve();
|
|
}, false);
|
|
|
|
jsterm.focus();
|
|
jsterm.setInputValue("document.location.");
|
|
EventUtils.sendKey("TAB", hud.iframeWindow);
|
|
|
|
return deferred.promise;
|
|
}
|
|
|
|
function finish() {
|
|
toolbox.destroy().then(() => {
|
|
toolbox = null;
|
|
hud = null;
|
|
jsterm = null;
|
|
hudMessages = null;
|
|
variablesView = null;
|
|
|
|
finishTest();
|
|
});
|
|
}
|
|
}
|