Skip to content

Commit

Permalink
FBTest for issue 5349 (Context menu in select, radio, check, not work)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Mar 28, 2012
1 parent 0c016a5 commit 6b23c8c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/content/firebug.html
Expand Up @@ -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/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/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/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: "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/netPanelSearch.js", desc: "Search within the Net panel", testPage: "search/netVictim.htm" },
{group: "search", uri: "search/scriptPanelSearch.js", desc: "Search within the Script panel" }, {group: "search", uri: "search/scriptPanelSearch.js", desc: "Search within the Script panel" },
Expand Down
33 changes: 33 additions & 0 deletions tests/content/firebug/5349/issue5349.html
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Issue 5349: Context menu in select, radio, check, not work</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<header>
<h1><a href="http://code.google.com/p/fbug/issues/detail?id=5349">Issue 5349</a>: Context menu in select, radio, check, not work</h1>
</header>
<div>
<section id="content">
<select id="selectbox">
<option>Hello</option>
<option>Firebug</option>
<option>user!</option>
</select>
</section>
<section id="description">
<h3>Steps to reproduce</h3>
<ol>
<li>Right-click the selectbox above</li>
</ol>
<h3>Expected result</h3>
<ul>
<li>The context menu should appear including the option <em>Inspect Element with Firebug</em></li>
</ul>
</section>
<footer>Sebastian Zartner, sebastianzartner@gmx.de</footer>
</div>
</body>
</html>
12 changes: 12 additions & 0 deletions 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");
});
});
}

0 comments on commit 6b23c8c

Please sign in to comment.