mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 655776 - Web Developer > Get More Tools menu item. r=dao ui-r=limi
--HG-- extra : rebase_source : a37492d3dd0fe37f9756351b2bc0b1835af66ac8
This commit is contained in:
parent
c5acf02c86
commit
b037d5e5a4
@ -201,6 +201,10 @@
|
||||
label="&errorConsoleCmd.label;"
|
||||
key="key_errorConsole"
|
||||
oncommand="toJavaScriptConsole();"/>
|
||||
<menuseparator id="appmenu_devToolsEndSeparator"/>
|
||||
<menuitem id="appmenu_getMoreDevtools"
|
||||
label="&getMoreDevtoolsCmd.label;"
|
||||
oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/>
|
||||
<menuseparator/>
|
||||
#define ID_PREFIX appmenu_developer_
|
||||
#define OMIT_ACCESSKEYS
|
||||
|
@ -567,6 +567,11 @@
|
||||
accesskey="&errorConsoleCmd.accesskey;"
|
||||
key="key_errorConsole"
|
||||
oncommand="toJavaScriptConsole();"/>
|
||||
<menuseparator id="devToolsEndSeparator"/>
|
||||
<menuitem id="getMoreDevtools"
|
||||
label="&getMoreDevtoolsCmd.label;"
|
||||
accesskey="&getMoreDevtoolsCmd.accesskey;"
|
||||
oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem id="menu_pageInfo"
|
||||
|
@ -232,7 +232,6 @@ _BROWSER_FILES = \
|
||||
browser_visibleTabs_bookmarkAllPages.js \
|
||||
browser_visibleTabs_bookmarkAllTabs.js \
|
||||
browser_visibleTabs_tabPreview.js \
|
||||
browser_webdev_menu.js \
|
||||
bug592338.html \
|
||||
disablechrome.html \
|
||||
discovery.html \
|
||||
|
@ -1,43 +0,0 @@
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
function menuTest()
|
||||
{
|
||||
gBrowser.selectedBrowser.removeEventListener("load", menuTest, true);
|
||||
|
||||
let menuContents = [
|
||||
"menu_pageinspect",
|
||||
"webConsole",
|
||||
"menu_scratchpad",
|
||||
"menu_pageSource",
|
||||
"javascriptConsole"
|
||||
];
|
||||
|
||||
let menu = document.getElementById("webDeveloperMenu");
|
||||
ok(menu, "we have the menu");
|
||||
|
||||
let popup = menu.firstChild;
|
||||
is(popup.id, "menuWebDeveloperPopup", "menu first child is menuWebDeveloperPopup");
|
||||
|
||||
is(popup.childNodes.length, menuContents.length, "popup childNodes.length matches");
|
||||
|
||||
for(let a = 0; a < popup.children.length; a++) {
|
||||
isnot(menuContents.indexOf(popup.children[a].id), -1, "menuitem " + popup.children[a].id + " in popup");
|
||||
};
|
||||
|
||||
gBrowser.removeCurrentTab();
|
||||
finish();
|
||||
}
|
||||
|
||||
function test()
|
||||
{
|
||||
waitForExplicitFinish();
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
gBrowser.selectedBrowser.addEventListener("load", menuTest, true);
|
||||
|
||||
content.location = "data:text/html,<title>Web Developer Menu Test</title>" +
|
||||
"<p>testing the Web Developer Menu";
|
||||
}
|
||||
|
@ -226,6 +226,9 @@ can reach it easily. -->
|
||||
<!ENTITY inspectObjectButton.label "Object">
|
||||
<!ENTITY inspectObjectButton.accesskey "O">
|
||||
|
||||
<!ENTITY getMoreDevtoolsCmd.label "Get More Tools">
|
||||
<!ENTITY getMoreDevtoolsCmd.accesskey "M">
|
||||
|
||||
<!ENTITY fileMenu.label "File">
|
||||
<!ENTITY fileMenu.accesskey "F">
|
||||
<!ENTITY newNavigatorCmd.label "New Window">
|
||||
|
Loading…
Reference in New Issue
Block a user