[Pkg-mozext-commits] [firebug] 54/68: Backport FBTest changes for Issue 5453: Remove getUserData and setUserData usage from Firebug 1.12

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


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

taffit pushed a commit to tag fbtest-1.11.4
in repository firebug.

commit 3aafdb74bc0e48388aa0eadbae6e9e0d679cb97a
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Wed May 8 17:24:57 2013 +0200

    Backport FBTest changes for Issue 5453: Remove getUserData and setUserData usage from Firebug 1.12
---
 tests/content/console/2948/issue2948.html   | 136 ++++++++++++-------------
 tests/content/console/2948/issue2948.js     | 115 ++++++++++-----------
 tests/content/memory/memoryLeak/memory.html | 142 +++++++++++++-------------
 tests/content/memory/memoryLeak/memory.js   |  78 +++++++--------
 tests/content/net/846/Issue846.1.6.htm      | 150 ++++++++++++++--------------
 tests/content/net/846/issue846.1.6.js       | 106 ++++++++++----------
 6 files changed, 363 insertions(+), 364 deletions(-)

diff --git a/tests/content/console/2948/issue2948.html b/tests/content/console/2948/issue2948.html
index 4866a7e..827077a 100644
--- a/tests/content/console/2948/issue2948.html
+++ b/tests/content/console/2948/issue2948.html
@@ -1,68 +1,68 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-  <title>Test Case for Issue #2948</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-</head>
-<body>
-
-<h1>Issue #2948</h1>
-
-<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2948">Issue #2948</a>
-- <span class="h3">Console stops working (No XHR or log outputs)</span>.
-<br/>
-<i>Jan Odvarko, odvarko at gmail.com</i>
-</p>
-
-<ol>
-<li>Open Firebug and enable the Console panel.</li>
-<li>Check "Show XMLHttpRequests" via the Options Mini Menu</li>
-<li>Click on the <code style="color:green">Execute Test</code> button below
-and verify that there is a XHR log in the Console.</li>
-<li>Click on the <code style="color:green">Open Popup</code> button and close the opened window.</li>
-<li>Click on the <code style="color:green">Execute Test</code> button 
-and again verify that there is a new XHR log.</li>
-</ol>
-
-<button id="executeRequest" onclick="onExecuteTest()">Execute Test</button>
-<span id="response" style="color: green"></span>
-<button id="openPopup" onclick="onOpenPopup()">Open Popup</button>
-
-<script type="text/javascript">
-function onExecuteTest()
-{
-    var postData = "date=" + (new Date()).toUTCString();
-    var request = new XMLHttpRequest();
-    request.open("POST", "issue2948.php", true);
-    request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
-    request.setRequestHeader("Content-Length", postData.length);
-
-    request.onreadystatechange = function()
-    {
-        if (request.readyState == 4 && request.status == 200)
-        {
-            var responseElement = document.getElementById("response");
-            responseElement.innerHTML = request.responseText;
-        }
-    }
-
-    request.send(postData);
-}
-
-function onOpenPopup()
-{
-    var popup = window.open("issue2948-popup.html", "bug", "width=500");
-
-    // Catch load event and notify possible listener (test driver).
-    popup.addEventListener("load", function()
-    {
-        var event = document.createEvent("Events");
-        event.initEvent("popup-loaded", true, false);
-        document.setUserData("popup-window", popup, null);
-        document.dispatchEvent(event)
-    }, false);
-}
-</script>
-
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+  <title>Test Case for Issue #2948</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+</head>
+<body>
+
+<h1>Issue #2948</h1>
+
+<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2948">Issue #2948</a>
+- <span class="h3">Console stops working (No XHR or log outputs)</span>.
+<br/>
+<i>Jan Odvarko, odvarko at gmail.com</i>
+</p>
+
+<ol>
+<li>Open Firebug and enable the Console panel.</li>
+<li>Check "Show XMLHttpRequests" via the Options Mini Menu</li>
+<li>Click on the <code style="color:green">Execute Test</code> button below
+and verify that there is a XHR log in the Console.</li>
+<li>Click on the <code style="color:green">Open Popup</code> button and close the opened window.</li>
+<li>Click on the <code style="color:green">Execute Test</code> button 
+and again verify that there is a new XHR log.</li>
+</ol>
+
+<button id="executeRequest" onclick="onExecuteTest()">Execute Test</button>
+<span id="response" style="color: green"></span>
+<button id="openPopup" onclick="onOpenPopup()">Open Popup</button>
+
+<script type="text/javascript">
+function onExecuteTest()
+{
+    var postData = "date=" + (new Date()).toUTCString();
+    var request = new XMLHttpRequest();
+    request.open("POST", "issue2948.php", true);
+    request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+    request.setRequestHeader("Content-Length", postData.length);
+
+    request.onreadystatechange = function()
+    {
+        if (request.readyState == 4 && request.status == 200)
+        {
+            var responseElement = document.getElementById("response");
+            responseElement.innerHTML = request.responseText;
+        }
+    }
+
+    request.send(postData);
+}
+
+function onOpenPopup()
+{
+    var popup = window.open("issue2948-popup.html", "bug", "width=500");
+
+    // Catch load event and notify possible listener (test driver).
+    popup.addEventListener("load", function()
+    {
+        var event = document.createEvent("Events");
+        event.initEvent("popup-loaded", true, false);
+        window.popup = popup;
+        document.dispatchEvent(event)
+    }, false);
+}
+</script>
+
+</body>
+</html>
diff --git a/tests/content/console/2948/issue2948.js b/tests/content/console/2948/issue2948.js
index a72fdc5..64ba6c9 100644
--- a/tests/content/console/2948/issue2948.js
+++ b/tests/content/console/2948/issue2948.js
@@ -1,57 +1,58 @@
-function runTest()
-{
-    FBTest.sysout("issue2948.START");
-
-    FBTest.openNewTab(basePath + "console/2948/issue2948.html", function(win)
-    {
-        FBTest.openFirebug();
-        FBTest.enableConsolePanel(function(win)
-        {
-            var panel = FW.Firebug.chrome.selectPanel("console");
-
-            // Define individual async tasks.
-            var tasks = new FBTest.TaskList();
-            tasks.push(executeResponse, win);
-            tasks.push(openPopup, win);
-            tasks.push(executeResponse, win);
-
-            // Run them all.
-            tasks.run(function() {
-                FBTest.testDone("issue2948.DONE");
-            })
-        });
-    });
-}
-
-function executeResponse(callback, win)
-{
-    FBTest.progress("XHR is going to be executed.");
-
-    // Wait for request being displayed in the Console panel.
-    FBTest.waitForDisplayedElement("console", null, function(row)
-    {
-        FBTest.progress("Cool, XHR log has been created.");
-
-        callback();
-    });
-
-    FBTest.click(win.document.getElementById("executeRequest"));
-}
-
-function openPopup(callback, win)
-{
-    win.document.addEventListener("popup-loaded", function()
-    {
-        FBTest.progress("Great, the popup is loaded");
-
-        // close the popup window.
-        var popup = win.document.getUserData("popup-window");
-        popup.close();
-
-        FBTest.progress("The popup should be closed now");
-
-        callback();
-    }, true);
-
-    FBTest.click(win.document.getElementById("openPopup"));
-}
+function runTest()
+{
+    FBTest.sysout("issue2948.START");
+
+    FBTest.openNewTab(basePath + "console/2948/issue2948.html", function(win)
+    {
+        FBTest.openFirebug();
+        FBTest.enableConsolePanel(function(win)
+        {
+            var panel = FW.Firebug.chrome.selectPanel("console");
+
+            // Define individual async tasks.
+            var tasks = new FBTest.TaskList();
+            tasks.push(executeResponse, win);
+            tasks.push(openPopup, win);
+            tasks.push(executeResponse, win);
+
+            // Run them all.
+            tasks.run(function() {
+                FBTest.testDone("issue2948.DONE");
+            })
+        });
+    });
+}
+
+function executeResponse(callback, win)
+{
+    FBTest.progress("XHR is going to be executed.");
+
+    // Wait for request being displayed in the Console panel.
+    FBTest.waitForDisplayedElement("console", null, function(row)
+    {
+        FBTest.progress("Cool, XHR log has been created.");
+
+        callback();
+    });
+
+    FBTest.click(win.document.getElementById("executeRequest"));
+}
+
+function openPopup(callback, win)
+{
+    win.document.addEventListener("popup-loaded", function()
+    {
+        FBTest.progress("Great, the popup is loaded");
+
+        // close the popup window.
+        var popup = win.wrappedJSObject.popup;
+        delete win.wrappedJSObject.popup; 
+        popup.close();
+
+        FBTest.progress("The popup should be closed now");
+
+        callback();
+    }, true);
+
+    FBTest.click(win.document.getElementById("openPopup"));
+}
diff --git a/tests/content/memory/memoryLeak/memory.html b/tests/content/memory/memoryLeak/memory.html
index ddb8b1d..52f7a04 100644
--- a/tests/content/memory/memoryLeak/memory.html
+++ b/tests/content/memory/memoryLeak/memory.html
@@ -1,71 +1,71 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-  <title>Test Case for memory leaks</title>
-</head>
-<body>
-
-<h1>Memory leaks</h1>
-
-<p>This test-case is intended for memory leaks
-<i>Jan Odvarko, odvarko at gmail.com</i>
-</p>
-
-<ol>
-<li>Open Taks manager (or any other tool) and watch Firefox memory consumption</li>
-<li>Click on the <code style="color:green">Open Popup</code> button and close
-the opened window. Repeat and watch memory consumption</li>
-<li>The memory is not released after the popup window is closed.</li>
-</ol>
-
-<button id="openPopup" onclick="onOpenPopup()">Open Popup</button>
-<br/><br/><br/>
-<i>Use this button to automate popup opening and closing. You need to allow popups for this site.</i>
-<br/><br/>
-<button onclick="autoPopup()">Auto Open & Close</button>
-Number of popups: <input id="counterInput" type="text" size="2" value="50"/>
-<span id="counter"></span>
-
-<script type="text/javascript">
-function autoPopup()
-{
-    var counter = document.getElementById("counterInput").value;
-    openAutoPopup(parseInt(counter));
-}
-
-function openAutoPopup(counter)
-{
-    document.getElementById("counter").innerHTML = counter;
-    if (counter <= 0)
-        return;
-
-    var popup;
-    function onUnload()
-    {
-        popup.removeEventListener("unload", onUnload, false);
-        setTimeout(function() {
-            openAutoPopup(--counter);
-        }, 500);
-    };
-
-    popup = window.open("memory-popup.html?autoclose", "bug", "width=500");
-    popup.addEventListener("unload", onUnload, false);
-}
-
-function onOpenPopup()
-{
-    var popup = window.open("memory-popup.html", "bug", "width=500");
-
-    // Catch load event and notify possible listener (test driver).
-    popup.addEventListener("load", function()
-    {
-        var event = document.createEvent("Events");
-        event.initEvent("popup-loaded", true, false);
-        document.setUserData("popup-window", popup, null);
-        document.dispatchEvent(event);
-    }, false);
-}
-</script>
-
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+  <title>Test Case for memory leaks</title>
+</head>
+<body>
+
+<h1>Memory leaks</h1>
+
+<p>This test-case is intended for memory leaks
+<i>Jan Odvarko, odvarko at gmail.com</i>
+</p>
+
+<ol>
+<li>Open Taks manager (or any other tool) and watch Firefox memory consumption</li>
+<li>Click on the <code style="color:green">Open Popup</code> button and close
+the opened window. Repeat and watch memory consumption</li>
+<li>The memory is not released after the popup window is closed.</li>
+</ol>
+
+<button id="openPopup" onclick="onOpenPopup()">Open Popup</button>
+<br/><br/><br/>
+<i>Use this button to automate popup opening and closing. You need to allow popups for this site.</i>
+<br/><br/>
+<button onclick="autoPopup()">Auto Open & Close</button>
+Number of popups: <input id="counterInput" type="text" size="2" value="50"/>
+<span id="counter"></span>
+
+<script type="text/javascript">
+function autoPopup()
+{
+    var counter = document.getElementById("counterInput").value;
+    openAutoPopup(parseInt(counter));
+}
+
+function openAutoPopup(counter)
+{
+    document.getElementById("counter").innerHTML = counter;
+    if (counter <= 0)
+        return;
+
+    var popup;
+    function onUnload()
+    {
+        popup.removeEventListener("unload", onUnload, false);
+        setTimeout(function() {
+            openAutoPopup(--counter);
+        }, 500);
+    };
+
+    popup = window.open("memory-popup.html?autoclose", "bug", "width=500");
+    popup.addEventListener("unload", onUnload, false);
+}
+
+function onOpenPopup()
+{
+    var popup = window.open("memory-popup.html", "bug", "width=500");
+
+    // Catch load event and notify possible listener (test driver).
+    popup.addEventListener("load", function()
+    {
+        window.popup = popup;
+        var event = document.createEvent("Events");
+        event.initEvent("popup-loaded", true, false);
+        document.dispatchEvent(event);
+    }, false);
+}
+</script>
+
+</body>
+</html>
diff --git a/tests/content/memory/memoryLeak/memory.js b/tests/content/memory/memoryLeak/memory.js
index 0421bf6..ef6c41d 100644
--- a/tests/content/memory/memoryLeak/memory.js
+++ b/tests/content/memory/memoryLeak/memory.js
@@ -1,39 +1,39 @@
-function runTest()
-{
-    FBTest.sysout("issue2948.START");
-
-    FBTest.openNewTab(basePath + "memory/memoryLeak/memory.html", function(win)
-    {
-        FBTest.openFirebug();
-        // Define individual async tasks.
-        var tasks = new FBTest.TaskList();
-        for (var i=0; i<14; i++)
-            tasks.push(openPopup, win);
-
-        // Run them all.
-        tasks.run(function() {
-            FBTest.testDone("issue2948.DONE");
-        })
-    });
-}
-
-function openPopup(callback, win)
-{
-    function onPopupLoaded()
-    {
-        FBTest.progress("Great, the popup is loaded");
-        win.document.removeEventListener("popup-loaded", onPopupLoaded, true);
-
-        setTimeout(function()
-        {
-            var popup = win.document.getUserData("popup-window");
-            win.document.setUserData("popup-window", null, null);
-            popup.close();
-            FBTest.progress("The popup should be closed now");
-            callback();
-        }, 200);
-    };
-
-    win.document.addEventListener("popup-loaded", onPopupLoaded, true);
-    FBTest.click(win.document.getElementById("openPopup"));
-}
+function runTest()
+{
+    FBTest.sysout("issue2948.START");
+
+    FBTest.openNewTab(basePath + "memory/memoryLeak/memory.html", function(win)
+    {
+        FBTest.openFirebug();
+        // Define individual async tasks.
+        var tasks = new FBTest.TaskList();
+        for (var i=0; i<14; i++)
+            tasks.push(openPopup, win);
+
+        // Run them all.
+        tasks.run(function() {
+            FBTest.testDone("issue2948.DONE");
+        })
+    });
+}
+
+function openPopup(callback, win)
+{
+    function onPopupLoaded()
+    {
+        FBTest.progress("Great, the popup is loaded");
+        win.document.removeEventListener("popup-loaded", onPopupLoaded, true);
+
+        setTimeout(function()
+        {
+            var popup = win.wrappedJSObject.popup;
+            delete win.wrappedJSObject.popup;
+            popup.close();
+            FBTest.progress("The popup should be closed now");
+            callback();
+        }, 200);
+    };
+
+    win.document.addEventListener("popup-loaded", onPopupLoaded, true);
+    FBTest.click(win.document.getElementById("openPopup"));
+}
diff --git a/tests/content/net/846/Issue846.1.6.htm b/tests/content/net/846/Issue846.1.6.htm
index 9301a6c..7a46040 100644
--- a/tests/content/net/846/Issue846.1.6.htm
+++ b/tests/content/net/846/Issue846.1.6.htm
@@ -1,76 +1,74 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-  <title>Test Case for Issue #846</title>
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-</head>
-<body>
-
-<h1>Issue #846</h1>
-
-<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=846">Issue #846</a>
-- <span class="h3">Wrong data with XMLHttpRequest</span>.
-<br/>
-<i>Jan Odvarko, odvarko at gmail.com</i>
-</p>
-
-<ol>
-<li>Click on the <i>Generate Requests</i> button. It will start to generate 5 requests.</li>
-<li>Wait till all the requests are finished. Watch this status:
-    <b><span id="Status">Not started yet</span></b></li>
-<li>Activate the Console panel and check all responses. They should be all different (it's time stamp).</li>
-</ol>
-
-<br/><br/>
-
-<button id="Button" onclick="runTest()">Generate Requests</button>
-
-<br/><br/>
-
-<script type="text/javascript">
-    var counter = 0;
-    var status = document.getElementById("Status");
-    var button = document.getElementById("Button");
-    var responses = [];
-
-    function runTest()
-    {
-        load();
-    }
-
-    function load()
-    {
-        button.disabled = true;
-
-        status.innerHTML = (counter+1) + ". request in progress...";
-
-        var request = new XMLHttpRequest();
-        request.onreadystatechange = function() 
-        {
-            if (request.readyState == 4 && request.status == 200) 
-            {
-                responses.push(request.responseText);
-
-                if (counter < 4) 
-                {
-                    counter++;
-                    setTimeout("load()", 100);
-                }
-                else 
-                {
-                    status.innerHTML = (counter+1) + ". request finished - DONE";
-                    button.disabled = false;
-                    counter = 0;
-
-                    document.setUserData("responses", responses, null);
-                }
-            }
-        }
-
-        var time = (new Date()).getTime();
-        request.open("POST", "Issue846.php", true);
-        request.send(counter);
-    }
-</script>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+  <title>Test Case for Issue #846</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+</head>
+<body>
+
+<h1>Issue #846</h1>
+
+<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=846">Issue #846</a>
+- <span class="h3">Wrong data with XMLHttpRequest</span>.
+<br/>
+<i>Jan Odvarko, odvarko at gmail.com</i>
+</p>
+
+<ol>
+<li>Click on the <i>Generate Requests</i> button. It will start to generate 5 requests.</li>
+<li>Wait till all the requests are finished. Watch this status:
+    <b><span id="Status">Not started yet</span></b></li>
+<li>Activate the Console panel and check all responses. They should be all different (it's time stamp).</li>
+</ol>
+
+<br/><br/>
+
+<button id="Button" onclick="runTest()">Generate Requests</button>
+
+<br/><br/>
+
+<script type="text/javascript">
+    var counter = 0;
+    var status = document.getElementById("Status");
+    var button = document.getElementById("Button");
+    var responses = [];
+
+    function runTest()
+    {
+        load();
+    }
+
+    function load()
+    {
+        button.disabled = true;
+
+        status.innerHTML = (counter+1) + ". request in progress...";
+
+        var request = new XMLHttpRequest();
+        request.onreadystatechange = function() 
+        {
+            if (request.readyState == 4 && request.status == 200) 
+            {
+                responses.push(request.responseText);
+
+                if (counter < 4) 
+                {
+                    counter++;
+                    setTimeout("load()", 100);
+                }
+                else 
+                {
+                    status.innerHTML = (counter+1) + ". request finished - DONE";
+                    button.disabled = false;
+                    counter = 0;
+                }
+            }
+        }
+
+        var time = (new Date()).getTime();
+        request.open("POST", "Issue846.php", true);
+        request.send(counter);
+    }
+</script>
+</body>
+</html>
diff --git a/tests/content/net/846/issue846.1.6.js b/tests/content/net/846/issue846.1.6.js
index c7e0800..4f4cf73 100644
--- a/tests/content/net/846/issue846.1.6.js
+++ b/tests/content/net/846/issue846.1.6.js
@@ -1,53 +1,53 @@
-function runTest()
-{
-    FBTest.sysout("issue846.START");
-
-    FBTest.openNewTab(basePath + "net/846/Issue846.1.6.htm", function(win)
-    {
-        // Disable XHR spy.
-        var prefOrigValue = FBTest.getPref("showXMLHttpRequests");
-        FBTest.setPref("showXMLHttpRequests", false);
-
-        // Open Firebug UI and enable Net panel.
-        FBTest.enableNetPanel(function()
-        {
-            var options = {
-                tagName: "tr",
-                classes: "netRow category-xhr hasHeaders loaded",
-                counter: 5
-            };
-
-            FBTest.waitForDisplayedElement("net", options, function(row)
-            {
-                var responses = win.document.getUserData("responses");
-                FBTest.sysout("issue846.onRunTest " + responses.length);
-
-                // Expand all requests and select response bodies.
-                var panel = FW.Firebug.chrome.selectPanel("net");
-                FBTest.expandElements(panel.panelNode, "netRow", "category-xhr", "hasHeaders", "loaded");
-                FBTest.expandElements(panel.panelNode, "netInfoResponseTab");
-
-                var netRows = FW.FBL.getElementsByClass(panel.panelNode, "netRow", "category-xhr",
-                    "hasHeaders", "loaded");
-                FBTest.compare(responses.length, netRows.length,
-                    "There must be correct number of XHRs");
-
-                for (var i=0; i<netRows.length; i++)
-                {
-                    var row = netRows[i];
-                    var responseBody = FW.FBL.getElementByClass(row.nextSibling,
-                        "netInfoResponseText", "netInfoText");
-                    FBTest.compare(responses[i], responseBody.textContent,
-                        "Test response must match");
-                }
-
-                // Finish test
-                FBTest.setPref("showXMLHttpRequests", prefOrigValue);
-                FBTest.testDone("issue846.DONE");
-            });
-
-            FBTest.click(win.document.getElementById("Button"));
-        });
-    });
-}
-
+function runTest()
+{
+    FBTest.sysout("issue846.START");
+
+    FBTest.openNewTab(basePath + "net/846/Issue846.1.6.htm", function(win)
+    {
+        // Disable XHR spy.
+        var prefOrigValue = FBTest.getPref("showXMLHttpRequests");
+        FBTest.setPref("showXMLHttpRequests", false);
+
+        // Open Firebug UI and enable Net panel.
+        FBTest.enableNetPanel(function()
+        {
+            var options = {
+                tagName: "tr",
+                classes: "netRow category-xhr hasHeaders loaded",
+                counter: 5
+            };
+
+            FBTest.waitForDisplayedElement("net", options, function(row)
+            {
+                var responses = win.wrappedJSObject.responses;
+                FBTest.sysout("issue846.onRunTest " + responses.length);
+
+                // Expand all requests and select response bodies.
+                var panel = FW.Firebug.chrome.selectPanel("net");
+                FBTest.expandElements(panel.panelNode, "netRow", "category-xhr", "hasHeaders", "loaded");
+                FBTest.expandElements(panel.panelNode, "netInfoResponseTab");
+
+                var netRows = FW.FBL.getElementsByClass(panel.panelNode, "netRow", "category-xhr",
+                    "hasHeaders", "loaded");
+                FBTest.compare(responses.length, netRows.length,
+                    "There must be correct number of XHRs");
+
+                for (var i=0; i<netRows.length; i++)
+                {
+                    var row = netRows[i];
+                    var responseBody = FW.FBL.getElementByClass(row.nextSibling,
+                        "netInfoResponseText", "netInfoText");
+                    FBTest.compare(responses[i], responseBody.textContent,
+                        "Test response must match");
+                }
+
+                // Finish test
+                FBTest.setPref("showXMLHttpRequests", prefOrigValue);
+                FBTest.testDone("issue846.DONE");
+            });
+
+            FBTest.click(win.document.getElementById("Button"));
+        });
+    });
+}
+

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