From 6b23c8c0f457b5037c1c3c7a935f149bd8cee9b8 Mon Sep 17 00:00:00 2001 From: sebastianz Date: Wed, 28 Mar 2012 14:47:04 +0200 Subject: [PATCH] FBTest for issue 5349 (Context menu in select, radio, check, not work) http://code.google.com/p/fbug/issues/detail?id=5349 --- tests/content/firebug.html | 1 + tests/content/firebug/5349/issue5349.html | 33 +++++++++++++++++++++++ tests/content/firebug/5349/issue5349.js | 12 +++++++++ 3 files changed, 46 insertions(+) create mode 100644 tests/content/firebug/5349/issue5349.html create mode 100644 tests/content/firebug/5349/issue5349.js diff --git a/tests/content/firebug.html b/tests/content/firebug.html index ab0d826d8d..e639b9e46d 100644 --- a/tests/content/firebug.html +++ b/tests/content/firebug.html @@ -61,6 +61,7 @@ {group: "firebug", uri: "firebug/2613/issue2613.js", desc: "HTML, CSS, and DOM panels do not display on reload.", testPage: "firebug/2613/issue2613.html" }, {group: "firebug", uri: "firebug/4040/issue4040.js", desc: "Switching to a about:blank page does not update the panels", testPage: "firebug/4040/issue4040.html" }, {group: "firebug", uri: "firebug/4553/issue4553.js", desc: "iframe should be content-primary", testPage: "firebug/4553/issue4553.html" }, + {group: "firebug", uri: "firebug/5349/issue5349.js", desc: "Context menu in select, radio, check, not work", testPage: "firebug/5349/issue5349.html" }, {group: "firebug/options", uri: "firebug/options/textSize.js", desc: "Changing Firebug text size.", testPage: "firebug/options/textSize.html" }, {group: "search", uri: "search/netPanelSearch.js", desc: "Search within the Net panel", testPage: "search/netVictim.htm" }, {group: "search", uri: "search/scriptPanelSearch.js", desc: "Search within the Script panel" }, diff --git a/tests/content/firebug/5349/issue5349.html b/tests/content/firebug/5349/issue5349.html new file mode 100644 index 0000000000..c22020450e --- /dev/null +++ b/tests/content/firebug/5349/issue5349.html @@ -0,0 +1,33 @@ + + + + Issue 5349: Context menu in select, radio, check, not work + + + + +
+

Issue 5349: Context menu in select, radio, check, not work

+
+
+
+ +
+
+

Steps to reproduce

+
    +
  1. Right-click the selectbox above
  2. +
+

Expected result

+
    +
  • The context menu should appear including the option Inspect Element with Firebug
  • +
+
+ +
+ + diff --git a/tests/content/firebug/5349/issue5349.js b/tests/content/firebug/5349/issue5349.js new file mode 100644 index 0000000000..8c1ecfb854 --- /dev/null +++ b/tests/content/firebug/5349/issue5349.js @@ -0,0 +1,12 @@ +function runTest() +{ + FBTest.sysout("issue5349.START"); + + FBTest.openNewTab(basePath + "chrome/5349/issue5349.html", function(win) + { + FBTest.executeContextMenuCommand(win.document.getElementById("selectbox"), "menu_firebugInspect", function() + { + FBTest.testDone("issue5349.DONE"); + }); + }); +}