[Pkg-mozext-commits] [firebug] 16/48: FBTest for Issue 7478.
David Prévot
taffit at moszumanska.debian.org
Tue Jun 3 01:47:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit 450ca64707217d1abc212417ad5112fedddab045
Author: Farshid Beheshti <farshid.beheshti at gmail.com>
Date: Wed May 28 16:42:20 2014 +0430
FBTest for Issue 7478.
---
tests/content/firebug.html | 1 +
.../content/script/breakpoints/7478/issue7478.html | 52 ++++++++++++++++++++++
tests/content/script/breakpoints/7478/issue7478.js | 35 +++++++++++++++
3 files changed, 88 insertions(+)
diff --git a/tests/content/firebug.html b/tests/content/firebug.html
index a4b7415..63a679f 100644
--- a/tests/content/firebug.html
+++ b/tests/content/firebug.html
@@ -362,6 +362,7 @@ var testList = [
{group: "script/breakpoints", uri: "script/breakpoints/7372/issue7372.js", desc: "Turning off 'Log Calls' for a line hides breakpoints on that line", testPage: "script/breakpoints/7372/issue7372.html" },
{group: "script/breakpoints", uri: "script/breakpoints/7373/issue7373.js", desc: "Debugger breaks on monitored functions", testPage: "script/breakpoints/7373/issue7373.html" },
{group: "script/breakpoints", uri: "script/breakpoints/7470/issue7470.js", desc: "Issue 7470: Breakpoint conditions are disregarded", testPage: "script/breakpoints/7470/issue7470.html"},
+ {group: "script/breakpoints", uri: "script/breakpoints/7478/issue7478.js", desc: "Breakpoint condition editor doesn't open when called from Script panel context menu ", testPage: "script/breakpoints/7478/issue7478.html" },
{group: "script/callstack", uri: "script/callstack/1811/issue1811.js", desc: "Issue 1811: Add prettyName/displayName support to Profiler output and Stacks", testPage: "script/callstack/1811/issue1811.html"},
{group: "script/callstack", uri: "script/callstack/3596/issue3596.js", desc: "Issue 3596: Stack trace forgets where it is", testPage: "script/callstack/3596/issue3596.html"},
{group: "script/callstack", disabled: "See issue 6789", uri: "script/callstack/3645/issue3645.js", desc: "Issue 3645: _firebugRerun and friends need to be elided from the panel status path", testPage: "script/callstack/3645/issue3645.html"},
diff --git a/tests/content/script/breakpoints/7478/issue7478.html b/tests/content/script/breakpoints/7478/issue7478.html
new file mode 100644
index 0000000..45cb448
--- /dev/null
+++ b/tests/content/script/breakpoints/7478/issue7478.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title> Issue 7478: Breakpoint condition editor doesn't open when called from Script panel context menu</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ <script type="text/javascript">
+ function logIt() {
+ console.log('A call to console.log() API');
+ };
+ </script>
+ </head>
+ <body>
+ <header>
+ <h1>
+ <a href="https://code.google.com/p/fbug/issues/detail?id=7478">
+ Issue 7478
+ </a>: Breakpoint condition editor doesn't open when called from Script panel context menu
+ </h1>
+ </header>
+ <div>
+ <section id="description">
+ <p class="note">
+ Note: This test also covers
+ <a href="https://code.google.com/p/fbug/issues/detail?id=7479"
+ title="The item 'Edit Breakpoint Condition..' does
+ nothing in spite of is enabled in the Script panel's popup menu.">
+ Issue 7479
+ </a>.
+ </p>
+
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug</li>
+ <li>Switch to the Script panel and enable it.</li>
+ <li>
+ Right click inside the Script panel at line #9.
+ (<code> console.log('A call to console.log() API'); </code>).
+ </li>
+ <li>
+ Select the item <i>Edit Breakpoint Condition...</i>
+ </li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>The breakpoint condition editor should open at line #9.</li>
+ </ul>
+ </section>
+ <footer>@farshidbeheshti, farshid.beheshti at gmail.com</footer>
+ </div>
+ </body>
+</html>
diff --git a/tests/content/script/breakpoints/7478/issue7478.js b/tests/content/script/breakpoints/7478/issue7478.js
new file mode 100644
index 0000000..b1f8ccb
--- /dev/null
+++ b/tests/content/script/breakpoints/7478/issue7478.js
@@ -0,0 +1,35 @@
+function runTest()
+{
+ var url = basePath + "script/breakpoints/7478/issue7478.html"
+ FBTest.openNewTab(url, (win) =>
+ {
+ FBTest.enableScriptPanel((win) =>
+ {
+ var LINE_NUMBER = 9;
+ var lineNode = FBTest.getSourceLineNode(LINE_NUMBER);
+ var target = lineNode.getElementsByClassName("firebug-line").item(0);
+ FBTest.progress("Waiting for the context menu to show....");
+ FBTest.showScriptPanelContextMenu(target, (contextMenu) =>
+ {
+ FBTest.progress("The context menu is shown");
+ for (var i = 0; i < contextMenu.children.length; i++)
+ {
+ var menuItem = contextMenu.children[i];
+ if (menuItem.label == 'Edit Breakpoint Condition...')
+ {
+ menuItem.doCommand();
+ FBTest.waitForBreakpoint(url, LINE_NUMBER, () =>
+ {
+ var scriptPanel = FBTest.selectPanel("script");
+ var conditionEditor = scriptPanel.
+ panelNode.querySelector(".conditionEditor");
+
+ FBTest.ok(conditionEditor, "The condtion editor should display to the user.");
+ FBTest.testDone();
+ });
+ }
+ }
+ });
+ });
+ });
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list