Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FBTest for issue 5430 (Show @namespace rules inside CSS panel)

  • Loading branch information...
commit 785f17cc25ec8e16aeb65c031b187080a7d1dc32 1 parent 29d1f19
@SebastianZ SebastianZ authored
View
38 tests/content/css/5430/issue5430.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 5430: Show @namespace rules inside CSS panel</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">
+ @namespace "http://www.w3.org/1999/xhtml";
+ @namespace svg "http://www.w3.org/2000/svg";
+ </style>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5430">Issue 5430</a>: Show @namespace rules inside CSS panel</h1>
+ </header>
+ <div>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug</li>
+ <li>Switch to the <em>CSS</em> panel</li>
+ <li>Select <em>issue5430.html</em> from the Location Menu</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>
+ There should be two <code>@namespace</code> rules listed inside the <em>CSS</em> panel:
+ <code>
+@namespace "http://www.w3.org/1999/xhtml";
+@namespace svg "http://www.w3.org/2000/svg";
+ </code>
+ </li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmx.de</footer>
+ </div>
+ </body>
+</html>
View
23 tests/content/css/5430/issue5430.js
@@ -0,0 +1,23 @@
+function runTest()
+{
+ FBTest.sysout("issue5430.START");
+
+ FBTest.openNewTab(basePath + "css/5430/issue5430.html", function(win)
+ {
+ FBTest.openFirebug();
+ var panel = FBTest.selectPanel("stylesheet");
+
+ FBTest.selectPanelLocationByName(panel, "issue5430.html");
+
+ var rows = FW.FBL.getElementsByClass(panel.panelNode, "cssNamespaceRule");
+ if (FBTest.compare(2, rows.length, "There must be two @namespace rules"))
+ {
+ FBTest.compare(/@namespace\s\"http:\/\/www\.w3\.org\/1999\/xhtml\";/, rows[0].textContent,
+ "The namespace rule must be correct");
+ FBTest.compare(/@namespace\ssvg\s\"http:\/\/www\.w3\.org\/2000\/svg\";/, rows[1].textContent,
+ "The namespace rule must be correct");
+ }
+
+ FBTest.testDone("issue5430.DONE");
+ });
+}
View
1  tests/content/firebug.html
@@ -199,6 +199,7 @@
{group: "css", uri: "css/5262/issue5262.js", desc: "Show @charset rules inside CSS panel", testPage: "css/5262/issue5262.html"},
{group: "css", uri: "css/5277/issue5277.js", desc: "Display @import rule media queries and allow editing them", testPage: "css/5277/issue5277.html"},
{group: "css", uri: "css/5412/issue5412.js", desc: "Auto-completion for CSS selectors", testPage: "css/5412/issue5412.html"},
+ {group: "css", uri: "css/5430/issue5430.js", desc: "Show @namespace rules inside CSS panel", testPage: "css/5430/issue5430.html"},
{group: "css/computed", uri: "css/computed/5449/issue5449.js", desc: "Show infotips in Computed side panel", testPage: "css/computed/5449/issue5449.html"},
{group: "css/computed", uri: "css/computed/5451/issue5451.js", desc: "Persist scrolling in Computed side panel", testPage: "css/computed/5451/issue5451.html"},
{group: "script", uri: "script/debuggerKeyword/testDriver1.6.js", desc: "Break on debugger keyword in various contexts.", testPage: "script/debuggerKeyword/testPage.html"},
Please sign in to comment.
Something went wrong with that request. Please try again.