[Pkg-mozext-commits] [firebug] 21/48: FBTest: fixing test for issue 7478 (wait till source is available)
David Prévot
taffit at moszumanska.debian.org
Tue Jun 3 01:47:44 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 3a564e59f2ef8ab2d3d07603035ebaffa96d3fbe
Author: Jan Odvarko <odvarko at gmail.com>
Date: Wed May 28 18:19:24 2014 +0200
FBTest: fixing test for issue 7478 (wait till source is available)
---
tests/content/script/breakpoints/7478/issue7478.js | 37 ++++++++++++----------
1 file changed, 20 insertions(+), 17 deletions(-)
diff --git a/tests/content/script/breakpoints/7478/issue7478.js b/tests/content/script/breakpoints/7478/issue7478.js
index b1f8ccb..fe1605f 100644
--- a/tests/content/script/breakpoints/7478/issue7478.js
+++ b/tests/content/script/breakpoints/7478/issue7478.js
@@ -6,29 +6,32 @@ function runTest()
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) =>
+ var chrome = FW.Firebug.chrome;
+ FBTest.selectSourceLine(url, LINE_NUMBER, "js", chrome, (lineNode) =>
{
- FBTest.progress("The context menu is shown");
- for (var i = 0; i < contextMenu.children.length; i++)
+ var target = lineNode.getElementsByClassName("firebug-line").item(0);
+ FBTest.progress("Waiting for the context menu to show....");
+ FBTest.showScriptPanelContextMenu(target, (contextMenu) =>
{
- var menuItem = contextMenu.children[i];
- if (menuItem.label == 'Edit Breakpoint Condition...')
+ FBTest.progress("The context menu is shown");
+ for (var i = 0; i < contextMenu.children.length; i++)
{
- menuItem.doCommand();
- FBTest.waitForBreakpoint(url, LINE_NUMBER, () =>
+ var menuItem = contextMenu.children[i];
+ if (menuItem.label == 'Edit Breakpoint Condition...')
{
- var scriptPanel = FBTest.selectPanel("script");
- var conditionEditor = scriptPanel.
- panelNode.querySelector(".conditionEditor");
+ 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();
- });
+ 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