[Pkg-mozext-commits] [firebug] 10/68: FBTest for issue 6281 (Placeholder rules are no longer displayed in HTML Style tab.) http://code.google.com/p/fbug/issues/detail?id=6281

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:49 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 3a88becb18f5ec1daa68249fb6c821439c5df7aa
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Fri Feb 22 00:38:44 2013 +0100

    FBTest for issue 6281 (Placeholder rules are no longer displayed in
    HTML Style tab.)
    http://code.google.com/p/fbug/issues/detail?id=6281
    
    Conflicts:
    	tests/content/firebug.html
---
 tests/content/css/6281/issue6281.html | 39 +++++++++++++++++++++++++++++++++
 tests/content/css/6281/issue6281.js   | 41 +++++++++++++++++++++++++++++++++++
 tests/content/firebug.html            |  1 +
 3 files changed, 81 insertions(+)

diff --git a/tests/content/css/6281/issue6281.html b/tests/content/css/6281/issue6281.html
new file mode 100644
index 0000000..ca4a531
--- /dev/null
+++ b/tests/content/css/6281/issue6281.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <title>Issue 6281: Placeholder rules are no longer displayed in HTML Style tab.</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+        <style type="text/css">
+        #textinput::-moz-placeholder {
+            color: blue;
+        }
+        </style>
+    </head>
+    <body>
+        <header>
+            <h1><a href="http://code.google.com/p/fbug/issues/detail?id=6281">Issue 6281</a>: Placeholder rules are no longer displayed in HTML Style tab.</h1>
+        </header>
+        <div>
+            <section id="content">
+                <input id="textinput" type="text" placeholder="Placeholder"/>
+            </section>
+            <section id="description">
+                <h3>Steps to reproduce</h3>
+                <ol>
+                    <li>Open Firebug</li>
+                    <li>Switch to the <em>HTML</em> panel and there to the <em>Style</em> side panel</li>
+                    <li>Inspect the input field above (<code>#textinput</code>)</li>
+                </ol>
+                <h3>Expected result</h3>
+                <ul>
+                    <li>
+                        The <em>Style</em> side panel should contain a rule with the
+                        selector <code>#textinput::-moz-placeholder</code>.
+                    </li>
+                </ul>
+            </section>
+            <footer>Sebastian Zartner, sebastianzartner at gmail.com</footer>
+        </div>
+    </body>
+</html>
diff --git a/tests/content/css/6281/issue6281.js b/tests/content/css/6281/issue6281.js
new file mode 100644
index 0000000..1ba74a6
--- /dev/null
+++ b/tests/content/css/6281/issue6281.js
@@ -0,0 +1,41 @@
+function runTest()
+{
+    FBTest.sysout("issue6281.START");
+    FBTest.openNewTab(basePath + "css/6281/issue6281.html", function(win)
+    {
+    	var elementID = "textinput";
+        FBTest.openFirebug();
+        FBTest.selectPanel("html");
+
+        // Search for 'placeholder' within the HTML panel
+        FBTest.searchInHtmlPanel(elementID, function(sel)
+        {
+            FBTest.sysout("issue6281; selection:", sel);
+
+            // Click on the element to make sure it's selected.
+            var nodeLabelBox = FW.FBL.getAncestorByClass(sel.anchorNode, "nodeLabelBox");
+            var nodeTag = nodeLabelBox.getElementsByClassName("nodeTag").item(0);
+            FBTest.mouseDown(nodeTag);
+
+            var sidePanel = FBTest.selectSidePanel("css");
+            var rules = sidePanel.panelNode.getElementsByClassName("cssRule");
+
+            var ruleExists = false;
+            for (var i = 0; i < rules.length; i++)
+            {
+                var selector = rules[i].getElementsByClassName("cssSelector").item(0).textContent;
+                if (selector == "#" + elementID + "::-moz-placeholder")
+                {
+                	FBTest.ok(true, "::-moz-placeholder pseudo-element rule exists");
+                	ruleExists = true;
+                    break;
+                }
+            }
+
+            if (!ruleExists)
+            	FBTest.ok(false, "::-moz-placeholder pseudo-element rule does not exist");
+
+            FBTest.testDone("issue6281.DONE");
+        });
+    });
+}
diff --git a/tests/content/firebug.html b/tests/content/firebug.html
index 1e4a309..58bf09c 100644
--- a/tests/content/firebug.html
+++ b/tests/content/firebug.html
@@ -235,6 +235,7 @@ var testList = [
     {group: "css",                uri: "css/5461/issue5461.js",                   desc: "When copying selected parts from Style side panel don't copy source link or inherited styles header", testPage: "css/5461/issue5461.html"},
     {group: "css",                uri: "css/5469/issue5469.js",                   desc: "Add units when changing the length '0' with up/down keys", testPage: "css/5469/issue5469.html"},
     {group: "css",                uri: "css/5644/issue5644.js",                   desc: "Editing a disabled property makes another", testPage: "css/5644/issue5644.html"},
+    {group: "css",                uri: "css/6281/issue6281.js",                   desc: "Placeholder rules are no longer displayed in HTML Style tab.", testPage: "css/6281/issue6281.html"},
     {group: "css",                uri: "css/6282/issue6282.js",                   desc: "CSS panel fails on interpreting @page", testPage: "css/6282/issue6282.html"},
     {group: "css/computed",       uri: "css/computed/3207/issue3207.js",          desc: "CSS properties in the \"Computed\" tab are not updated correctly", testPage: "css/computed/3207/issue3207.html"},
     {group: "css/computed",       uri: "css/computed/4132/issue4132.js",          desc: "Only show applied styles in Computed side panel", testPage: "css/computed/4132/issue4132.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