[Pkg-mozext-commits] [firebug] 23/55: FBTest for issue 5714

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:46:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag firebug-1.10.1
in repository firebug.

commit 1300e6cc90d93700f387f005e8e5b766cea72bff
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Thu Jul 19 14:35:44 2012 +0200

    FBTest for issue 5714
---
 tests/content/firebug.html            |  1 +
 tests/content/net/5714/issue5714.html | 39 +++++++++++++++++++++++++++++++++++
 tests/content/net/5714/issue5714.js   | 24 +++++++++++++++++++++
 tests/content/net/5714/issue5714.php  |  1 +
 4 files changed, 65 insertions(+)

diff --git a/tests/content/firebug.html b/tests/content/firebug.html
index a9a6bb2..63c169c 100644
--- a/tests/content/firebug.html
+++ b/tests/content/firebug.html
@@ -308,6 +308,7 @@ var testList = [
     {group: "net",                uri: "net/5004/issue5004.js",                   desc: "Only raw http post request parameters view", testPage: "net/5004/issue5004.html" },
     {group: "net",                uri: "net/5007/issue5007.js",                   desc: "Headers from POST request body are not displayed anymore", testPage: "net/5007/issue5007.html" },
     {group: "net",                uri: "net/5592/issue5592.js",                   desc: "Add option to copy request parameters", testPage: "net/5592/issue5592.html" },
+    {group: "net",                uri: "net/5714/issue5714.js",                   desc: "Can't resend requests", testPage: "net/5714/issue5714.html" },
     {group: "cookies",            uri: "cookies/general/cookiesPanel.js",         desc: "Existence of cookie panel", testPage: "cookies/general/cookiesPanel.html" },
     {group: "cookies",            uri: "cookies/general/cookieInfo.js",           desc: "Existence of cookie info", testPage: "cookies/general/cookieInfo.php" },
     {group: "cookies",            uri: "cookies/general/clipboard.js",            desc: "Clipboard functionality for the Cookies panel (copy and paste)", testPage: "cookies/general/clipboard.php" },
diff --git a/tests/content/net/5714/issue5714.html b/tests/content/net/5714/issue5714.html
new file mode 100644
index 0000000..709d3f0
--- /dev/null
+++ b/tests/content/net/5714/issue5714.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Issue 5714:      Can't resend requests</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+    <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+</head>
+<body>
+<script>
+function onTestExecute()
+{
+    var postData = "test data";
+    var request = new XMLHttpRequest();
+    request.open("POST", "issue5714.php", true);
+    request.setRequestHeader("Content-Length", postData.length);
+    request.send(postData);
+}
+</script>
+<header>
+    <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5714">Issue 5714</a>:
+        Can't resend requests</h1>
+</header>
+<div>
+    <section id="description">
+        <h3>Steps to reproduce</h3>
+        <ol>
+            <li>Open Firebug, select the Net panel and enable it</li>
+            <li>Click this button to generate AJAX:
+                <button id="testButton" onclick="onTestExecute()">Click Me!</button></li>
+            <li>Right Click on the new entry and execute <i>Resend</i></li>
+            <li>A new entry should appear</li>
+        </ol>
+    </section>
+    <footer>
+        Jan Odvarko <odvarko at gmail.com>
+    </footer>
+</div>
+</body>
+</html>
diff --git a/tests/content/net/5714/issue5714.js b/tests/content/net/5714/issue5714.js
new file mode 100644
index 0000000..70cab43
--- /dev/null
+++ b/tests/content/net/5714/issue5714.js
@@ -0,0 +1,24 @@
+function runTest()
+{
+    FBTest.sysout("issue5714.START");
+
+    FBTest.openNewTab(basePath + "net/5714/issue5714.html", function(win)
+    {
+        FBTest.openFirebug();
+        FBTest.enableNetPanel(function(win)
+        {
+            FBTest.waitForDisplayedElement("net", null, function(row)
+            {
+                FBTest.waitForDisplayedElement("net", null, function(row)
+                {
+                    FBTest.progress("HTTP request has been resent!");
+                    FBTest.testDone("issue5714.DONE");
+                });
+
+                FBTest.executeContextMenuCommand(row, "fbNetResend");
+            });
+
+            FBTest.click(win.document.getElementById("testButton"));
+        });
+    });
+}
diff --git a/tests/content/net/5714/issue5714.php b/tests/content/net/5714/issue5714.php
new file mode 100644
index 0000000..e1e0103
--- /dev/null
+++ b/tests/content/net/5714/issue5714.php
@@ -0,0 +1 @@
+Response for issu5741
\ No newline at end of file

-- 
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