[Pkg-mozext-commits] [firebug] 10/16: FBTest: test for issue 6116
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:45:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag fbtest-1.11.1
in repository firebug.
commit 409e01827c91f5aca66c95573aaf3de588ea760f
Author: Jan Odvarko <odvarko at gmail.com>
Date: Wed Dec 12 09:04:31 2012 +0100
FBTest: test for issue 6116
---
tests/content/console/6116/issue6116.html | 31 +++++++++++++++++++++++++++++++
tests/content/console/6116/issue6116.js | 24 ++++++++++++++++++++++++
tests/content/firebug.html | 1 +
3 files changed, 56 insertions(+)
diff --git a/tests/content/console/6116/issue6116.html b/tests/content/console/6116/issue6116.html
new file mode 100644
index 0000000..ccf9a92
--- /dev/null
+++ b/tests/content/console/6116/issue6116.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Issue 6116: undefined values are ignored in string formatting of console.log</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=6116">Issue 6116</a>:
+ undefined values are ignored in string formatting of console.log</h1>
+</header>
+<div>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug, select the Console panel and enable it</li>
+ <li>Execute the following expression on the command line:<br/>
+ <code>console.log('%o%o%o', 'foo', undefined, 'bar')</code><br/>
+ </li>
+ <li>You should see following in the Console panel:<br/>
+ <code>"foo"<i>undefined</i>"bar"</code>
+ </li>
+ </ol>
+ </section>
+ <footer>
+ Jan Odvarko <odvarko at gmail.com>
+ </footer>
+</div>
+</body>
+</html>
diff --git a/tests/content/console/6116/issue6116.js b/tests/content/console/6116/issue6116.js
new file mode 100644
index 0000000..7bd1ede
--- /dev/null
+++ b/tests/content/console/6116/issue6116.js
@@ -0,0 +1,24 @@
+function runTest()
+{
+ FBTest.sysout("issue6116.START");
+ FBTest.openNewTab(basePath + "console/6116/issue6116.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("console");
+
+ FBTest.enableConsolePanel(function(win)
+ {
+ var config = {tagName: "div", classes: "logRow-log"};
+ FBTest.waitForDisplayedElement("console", config, function(row)
+ {
+ var expected = "\"foo\"undefined\"bar\"";
+ FBTest.compare(expected, row.textContent, "The log must match: " +
+ row.textContent);
+
+ FBTest.testDone("issue6116.DONE");
+ });
+
+ FBTest.executeCommand("console.log('%o%o%o', 'foo', undefined, 'bar')");
+ });
+ });
+}
diff --git a/tests/content/firebug.html b/tests/content/firebug.html
index 136473c..d11fd06 100644
--- a/tests/content/firebug.html
+++ b/tests/content/firebug.html
@@ -121,6 +121,7 @@ var testList = [
//{group: "console", uri: "console/5945/issue5945.js", desc: "Show source link for CSS errors", testPage: "console/5945/issue5945.html"},
{group: "console", uri: "console/6104/issue6104.js", desc: "Firebug should display DOMTokenList content", testPage: "console/6104/issue6104.html"},
{group: "console", uri: "console/5786/issue5786.js", desc: "Show array-like objects differently than actual arrays", testPage: "console/5786/issue5786.html"},
+ {group: "console", uri: "console/6116/issue6116.js", desc: "undefined values are ignored in string formatting of console.log", testPage: "console/6116/issue6116.html"},
{group: "console/spy", uri: "console/spy/2285/issue2285.js", desc: "support for content-type: multipart/x-mixed-replace", testPage: "console/spy/2285/issue2285.html" },
//{group: "console/spy", uri: "console/spy/2462/issue2462.js", desc: "The firebug console still shows the xhr in progress if you abort it (via request.abort()) ", testPage: "console/spy/2462/issue2462.html" },
{group: "console/spy", uri: "console/spy/2712/issue2712.js", desc: "Gmail has network connections that report 200 Aborted", testPage: "console/spy/2712/issue2712.html" },
--
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