[Pkg-mozext-commits] [firebug] 11/68: Changed the test case to just get all style rules matching the given selector instead of searching for them

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:50 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 ea01393455d40e3f536dc1665002d5ceb5f7f3d6
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Wed Feb 27 13:27:24 2013 +0100

    Changed the test case to just get all style rules matching the given
    selector instead of searching for them
    
    Conflicts:
    	tests/content/css/6282/issue6282.js
---
 tests/content/css/6282/issue6282.html | 6 +++++-
 tests/content/css/6282/issue6282.js   | 8 ++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/tests/content/css/6282/issue6282.html b/tests/content/css/6282/issue6282.html
index b29c455..72fad79 100644
--- a/tests/content/css/6282/issue6282.html
+++ b/tests/content/css/6282/issue6282.html
@@ -5,10 +5,14 @@
         <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">
-        #style1 {
+        #teststyle1 {
             background-color: green;
         }
 
+        #teststyle2 {
+            background-color: red;
+        }
+
         @page {
             margin: 0.5cm;
         }
diff --git a/tests/content/css/6282/issue6282.js b/tests/content/css/6282/issue6282.js
index e5ce2ef..590333c 100644
--- a/tests/content/css/6282/issue6282.js
+++ b/tests/content/css/6282/issue6282.js
@@ -9,9 +9,9 @@ function runTest()
 
         FBTest.selectPanelLocationByName(panel, "issue6282.html");
 
-        FBTest.searchInCssPanel("style1", function(node)
-	    {
-            FBTest.testDone("issue6282; DONE");
-	    });
+        var rules = FBTest.getStyleRulesBySelector("#teststyle");
+
+        FBTest.compare(2, rules.length, "There must be two style rules shown");
+        FBTest.testDone("issue6282; DONE");
     });
 }

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