Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

the side effected bug- Opening editor but empty when attribute name i…

…s clicked- is fixed
  • Loading branch information...
commit f109552818672e5a017ecf22a6bf02a2f7c54565 1 parent e85aea1
@farshidbeheshti farshidbeheshti authored SebastianZ committed
Showing with 3,578 additions and 3,575 deletions.
  1. +7 −4 extension/content/firebug/html/htmlPanel.js
  2. +7 −7 extension/locale/en-US/firebug-amo.properties
  3. +99 −99 extension/locale/en-US/firebug-tracing.properties
  4. +1,664 −1,664 extension/locale/en-US/firebug.properties
  5. +13 −13 extension/skin/classic/migrationArrow.svg
  6. +29 −29 tests/content/commandLine/5130/issue5130.html
  7. +22 −22 tests/content/commandLine/5130/issue5130.js
  8. +46 −46 tests/content/console/2271/issue2271.html
  9. +34 −34 tests/content/console/3042/issue3042.html
  10. +38 −38 tests/content/console/3042/issue3042.js
  11. +31 −31 tests/content/cookies/general/cookiesPanel.html
  12. +14 −14 tests/content/css/2967/issue2967.js
  13. +53 −53 tests/content/css/2967/issue2967.xml
  14. +54 −54 tests/content/css/3303/issue3303.html
  15. +71 −71 tests/content/css/3303/issue3303.js
  16. +50 −50 tests/content/css/5438/issue5438.html
  17. +44 −44 tests/content/css/5438/issue5438.js
  18. +41 −41 tests/content/css/5461/issue5461.html
  19. +42 −42 tests/content/css/5461/issue5461.js
  20. +33 −33 tests/content/css/computed/5451/issue5451.html
  21. +20 −20 tests/content/css/computed/5451/issue5451.js
  22. +2 −2 tests/content/dom/5247/external/externalStylesheet.css
  23. +86 −86 tests/content/dom/5247/issue5247.html
  24. +75 −75 tests/content/dom/5247/issue5247.js
  25. +33 −33 tests/content/firebug/5349/issue5349.html
  26. +13 −13 tests/content/firebug/5349/issue5349.js
  27. +40 −40 tests/content/html/3296/issue3296.html
  28. +29 −29 tests/content/html/3296/issue3296.js
  29. +30 −30 tests/content/net/4805/issue4805.html
  30. +40 −40 tests/content/net/4805/issue4805.js
  31. +33 −33 tests/content/script/4724/issue4724.html
  32. +59 −59 tests/content/script/4724/issue4724.js
  33. +68 −68 tests/templates/default/issueXXXX.html
  34. +25 −25 tests/templates/default/issueXXXX.js
  35. +85 −85 tests/templates/default/issueXXXXSeveralCases.html
  36. +48 −48 tests/templates/default/issueXXXXSeveralCases.js
  37. +142 −142 tests/templates/default/testcase.css
  38. +61 −61 tests/templates/firebugLite/issueXXXX.html
  39. +180 −180 tests/templates/firebugLite/testcase.css
  40. +84 −84 tests/templates/net/issueXXXX.html
  41. +30 −30 tests/templates/net/issueXXXX.js
  42. +3 −3 tests/templates/net/issueXXXX.php
View
11 extension/content/firebug/html/htmlPanel.js
@@ -2268,14 +2268,17 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
{
if (value == "")
return value;
-
var element = Firebug.getRepObject(target);
if (element && element instanceof window.Element)
{
- var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
- return element.getAttribute(attributeName);
+ // If object that was clicked to edit was
+ // attribute value, not attribute name.
+ if (Css.hasClass(target, "nodeValue"))
+ {
+ var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
+ return element.getAttribute(attributeName);
+ }
}
-
return value;
}
});
View
14 extension/locale/en-US/firebug-amo.properties
@@ -1,7 +1,7 @@
-# LOCALIZATION NOTE (firebug.amo.summary, firebug.amo.description, firebug.amo.developer.comments):
-# These texts are used on Mozilla Add-on site: https://addons.mozilla.org/en-US/firefox/addon/1843
-# They are not direct part of Firebug extension and so, you can't see them in Firebug's UI.
-# Note that firebug.amo.summary must not exceed 250 characters (limitation by AMO site)
-firebug.amo.summary1.6=Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page...\n\nFirebug 1.6 requires Firefox 3.6 or higher.
-firebug.amo.description=Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.\n\nVisit the Firebug website for documentation, screen shots, and discussion forums: http://getfirebug.com
-firebug.amo.developer.comments=If you have any problems, please read the FireBug FAQ.\n\nhttp://getfirebug.com/faq.html
+# LOCALIZATION NOTE (firebug.amo.summary, firebug.amo.description, firebug.amo.developer.comments):
+# These texts are used on Mozilla Add-on site: https://addons.mozilla.org/en-US/firefox/addon/1843
+# They are not direct part of Firebug extension and so, you can't see them in Firebug's UI.
+# Note that firebug.amo.summary must not exceed 250 characters (limitation by AMO site)
+firebug.amo.summary1.6=Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page...\n\nFirebug 1.6 requires Firefox 3.6 or higher.
+firebug.amo.description=Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.\n\nVisit the Firebug website for documentation, screen shots, and discussion forums: http://getfirebug.com
+firebug.amo.developer.comments=If you have any problems, please read the FireBug FAQ.\n\nhttp://getfirebug.com/faq.html
View
198 extension/locale/en-US/firebug-tracing.properties
@@ -1,100 +1,100 @@
-# LOCALIZATION NOTE (Open_Firebug_Tracing, Always_Open_Firebug_Tracing):
-# Firebug tracing console menu items (located in Firebug's menu).
-Open_Firebug_Tracing=Open Firebug Tracing
-Always_Open_Firebug_Tracing=Always Open Firebug Tracing
-
-# LOCALIZATION NOTE (title.Tracing): Title for Firebug tracing console window (verb).
-title.Tracing=Tracing
-
-tracing.Show_Scope_Variables=Show Scope Variables
-tracing.Show_Time=Show Time
-tracing.tab.Stack=Stack
-tracing.tab.Exception=Exception
-tracing.tab.Properties=Properties
-tracing.tab.Scope=Scope
-tracing.tab.Response=Response
-tracing.tab.Source=Source
-tracing.tab.Interfaces=Interfaces
-tracing.tab.Object=Object
-tracing.tab.Event=Event
-tracing.cmd.Clear=Clear
-tracing.cmd.tip.Clear=Remove All Messages
-tracing.cmd.Find=Find
-tracing.cmd.tip.Find=Find Text
-tracing.cmd.Bookmark=Bookmark
-tracing.cmd.tip.Bookmark=Insert Bookmark
-tracing.cmd.Restart=Restart Firefox
-tracing.cmd.tip.Restart=Restart Firefox
-tracing.cmd.Exit=Exit Firefox
-tracing.cmd.tip.Exit=Exit Firefox
-tracing.cmd.Save=Save to File
-tracing.cmd.tip.Save=Save logs into a file
-tracing.cmd.Load=Load from File
-tracing.cmd.tip.Load=Load logs from a file
-tracing.cmd.Expand_All=Expand All
-tracing.cmd.Collapse_All=Collapse All
-tracing.cmd.Tools=Tools
-tracing.cmd.tip.Tools=Tools
-tracing.cmd.Clear_Browser_Cache=Clear Browser Cache
-tracing.cmd.tip.Clear_Browser_Cache=Clear Browser Cache
-tracing.cmd.Force_Garbage_Collector=Force Garbage Collector
-tracing.cmd.tip.Force_Garbage_Collector=Force Garbage Collector
-tracing.cmd.Open_Profile_Directory=Open Profile Directory
-tracing.cmd.tip.Open_Profile_Directory=Open Profile Directory
-tracing.option.A11Y_Description=Accessibility issues
-tracing.option.ACTIVATION_Description=Firebug activation
-tracing.option.ACTIVITYOBSERVER_Description=Firebug activity observer
-tracing.option.ANNOTATIONS_Description=Firebug website annotation
-tracing.option.BP_Description=Breakpoints
-tracing.option.CACHE_Description=Source cache
-tracing.option.COMMANDLINE_Description=Command Line & Command Line Popup
-tracing.option.COMPILATION_UNITS_Description=Script compilation units
-tracing.option.CONSOLE_Description=Console Panel
-tracing.option.CSS_Description=CSS parsing
-
-tracing.option.DISPATCH_Description=Event dispatching
-tracing.option.DOM_Description=DOM
-tracing.option.DOMPLATE_Description=Domplate creation
-tracing.option.EDITOR_Description=Inline Editor & Autocompleter
-tracing.option.ERRORLOG_Description=Error log of JS, CSS, XML etc.
-tracing.option.ERRORS_Description=Internal Firebug errors
-tracing.option.EVAL_Description=Script evaluation
-tracing.option.FBS_BP_Description=Firebug service breakpoints
-tracing.option.FBS_CREATION_Description=Firebug service script creation
-tracing.option.FBS_ERRORS_Description=Firebug service errors
-
-tracing.option.FBS_FINDDEBUGGER_Description=Firebug service find debugger
-
-tracing.option.FBS_FUNCTION_Description=Firebug service function
-tracing.option.FBS_JSDCONTEXT_Description=Firebug service JavaScript Debugger context
-tracing.option.FBS_SRCUNITS_Description=Firebug service source units
-tracing.option.FBS_STEP_Description=Firebug service JavaScript Debugger stepping
-tracing.option.FBS_TRACKFILES_Description=Firebug service tracked files
-tracing.option.FUNCTION_NAMES_Description=JavaScript function names
-tracing.option.HISTORY_Description=Firebug Navigation History
-tracing.option.HTML_Description=HTML
-tracing.option.HTTPOBSERVER_Description=HTTP request observer
-tracing.option.INFOTIP_Description=Infotip
-tracing.option.INITIALIZE_Description=Firebug initialization
-tracing.option.INSPECT_Description=Inspector
-tracing.option.JSONVIEWER_Description=JSON viewer
-tracing.option.LINETABLE_Description=Script line table
-tracing.option.LOCALE_Description=Localization
-tracing.option.LOCATIONS_Description=Source locations
-
-tracing.option.NET_Description=Net Panel
-tracing.option.NET_EVENTS_Description=Network events
-tracing.option.OPTIONS_Description=Firebug preferences
-tracing.option.PANELS_Description=Panels
-tracing.option.SHORTCUTS_Description=Keyboard shortcuts
-tracing.option.SOURCEFILES_Description=JavaScript source files
-tracing.option.SPY_Description=XMLHttpRequests observer
-tracing.option.STACK_Description=JavaScript call stack
-tracing.option.STORAGE_Description=Settings storage
-tracing.option.SVGVIEWER_Description=SVG viewer
-tracing.option.FONTS_Description=Fonts information and font viewer
-tracing.option.TOOLTIP_Description=Start Button tooltip
-tracing.option.TOPLEVEL_Description=Top level JavaScript
-tracing.option.UI_LOOP_Description=JavaScript debugging user interface
-tracing.option.WINDOWS_Description=Firebug windows & Tab Watcher
+# LOCALIZATION NOTE (Open_Firebug_Tracing, Always_Open_Firebug_Tracing):
+# Firebug tracing console menu items (located in Firebug's menu).
+Open_Firebug_Tracing=Open Firebug Tracing
+Always_Open_Firebug_Tracing=Always Open Firebug Tracing
+
+# LOCALIZATION NOTE (title.Tracing): Title for Firebug tracing console window (verb).
+title.Tracing=Tracing
+
+tracing.Show_Scope_Variables=Show Scope Variables
+tracing.Show_Time=Show Time
+tracing.tab.Stack=Stack
+tracing.tab.Exception=Exception
+tracing.tab.Properties=Properties
+tracing.tab.Scope=Scope
+tracing.tab.Response=Response
+tracing.tab.Source=Source
+tracing.tab.Interfaces=Interfaces
+tracing.tab.Object=Object
+tracing.tab.Event=Event
+tracing.cmd.Clear=Clear
+tracing.cmd.tip.Clear=Remove All Messages
+tracing.cmd.Find=Find
+tracing.cmd.tip.Find=Find Text
+tracing.cmd.Bookmark=Bookmark
+tracing.cmd.tip.Bookmark=Insert Bookmark
+tracing.cmd.Restart=Restart Firefox
+tracing.cmd.tip.Restart=Restart Firefox
+tracing.cmd.Exit=Exit Firefox
+tracing.cmd.tip.Exit=Exit Firefox
+tracing.cmd.Save=Save to File
+tracing.cmd.tip.Save=Save logs into a file
+tracing.cmd.Load=Load from File
+tracing.cmd.tip.Load=Load logs from a file
+tracing.cmd.Expand_All=Expand All
+tracing.cmd.Collapse_All=Collapse All
+tracing.cmd.Tools=Tools
+tracing.cmd.tip.Tools=Tools
+tracing.cmd.Clear_Browser_Cache=Clear Browser Cache
+tracing.cmd.tip.Clear_Browser_Cache=Clear Browser Cache
+tracing.cmd.Force_Garbage_Collector=Force Garbage Collector
+tracing.cmd.tip.Force_Garbage_Collector=Force Garbage Collector
+tracing.cmd.Open_Profile_Directory=Open Profile Directory
+tracing.cmd.tip.Open_Profile_Directory=Open Profile Directory
+tracing.option.A11Y_Description=Accessibility issues
+tracing.option.ACTIVATION_Description=Firebug activation
+tracing.option.ACTIVITYOBSERVER_Description=Firebug activity observer
+tracing.option.ANNOTATIONS_Description=Firebug website annotation
+tracing.option.BP_Description=Breakpoints
+tracing.option.CACHE_Description=Source cache
+tracing.option.COMMANDLINE_Description=Command Line & Command Line Popup
+tracing.option.COMPILATION_UNITS_Description=Script compilation units
+tracing.option.CONSOLE_Description=Console Panel
+tracing.option.CSS_Description=CSS parsing
+
+tracing.option.DISPATCH_Description=Event dispatching
+tracing.option.DOM_Description=DOM
+tracing.option.DOMPLATE_Description=Domplate creation
+tracing.option.EDITOR_Description=Inline Editor & Autocompleter
+tracing.option.ERRORLOG_Description=Error log of JS, CSS, XML etc.
+tracing.option.ERRORS_Description=Internal Firebug errors
+tracing.option.EVAL_Description=Script evaluation
+tracing.option.FBS_BP_Description=Firebug service breakpoints
+tracing.option.FBS_CREATION_Description=Firebug service script creation
+tracing.option.FBS_ERRORS_Description=Firebug service errors
+
+tracing.option.FBS_FINDDEBUGGER_Description=Firebug service find debugger
+
+tracing.option.FBS_FUNCTION_Description=Firebug service function
+tracing.option.FBS_JSDCONTEXT_Description=Firebug service JavaScript Debugger context
+tracing.option.FBS_SRCUNITS_Description=Firebug service source units
+tracing.option.FBS_STEP_Description=Firebug service JavaScript Debugger stepping
+tracing.option.FBS_TRACKFILES_Description=Firebug service tracked files
+tracing.option.FUNCTION_NAMES_Description=JavaScript function names
+tracing.option.HISTORY_Description=Firebug Navigation History
+tracing.option.HTML_Description=HTML
+tracing.option.HTTPOBSERVER_Description=HTTP request observer
+tracing.option.INFOTIP_Description=Infotip
+tracing.option.INITIALIZE_Description=Firebug initialization
+tracing.option.INSPECT_Description=Inspector
+tracing.option.JSONVIEWER_Description=JSON viewer
+tracing.option.LINETABLE_Description=Script line table
+tracing.option.LOCALE_Description=Localization
+tracing.option.LOCATIONS_Description=Source locations
+
+tracing.option.NET_Description=Net Panel
+tracing.option.NET_EVENTS_Description=Network events
+tracing.option.OPTIONS_Description=Firebug preferences
+tracing.option.PANELS_Description=Panels
+tracing.option.SHORTCUTS_Description=Keyboard shortcuts
+tracing.option.SOURCEFILES_Description=JavaScript source files
+tracing.option.SPY_Description=XMLHttpRequests observer
+tracing.option.STACK_Description=JavaScript call stack
+tracing.option.STORAGE_Description=Settings storage
+tracing.option.SVGVIEWER_Description=SVG viewer
+tracing.option.FONTS_Description=Fonts information and font viewer
+tracing.option.TOOLTIP_Description=Start Button tooltip
+tracing.option.TOPLEVEL_Description=Top level JavaScript
+tracing.option.UI_LOOP_Description=JavaScript debugging user interface
+tracing.option.WINDOWS_Description=Firebug windows & Tab Watcher
tracing.option.XMLVIEWER_Description=XML viewer
View
3,328 extension/locale/en-US/firebug.properties
1,664 additions, 1,664 deletions not shown
View
26 extension/skin/classic/migrationArrow.svg
@@ -1,14 +1,14 @@
-<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
- <defs>
- <marker id="Triangle"
- viewBox="0 0 10 10" refX="3" refY="5"
- markerUnits="strokeWidth"
- markerWidth="3" markerHeight="3"
- style="stroke:#FF9933;"
- orient="auto">
- <path d="M 0 0 L 10 5 L 0 10 z" />
- </marker>
- </defs>
- <line id="migrationPath" x1="0" x2="80" y1="0" y2="80" style="background-color:transparent;z-index:2;fill:none;stroke:#FF9933;stroke-width:4;" marker-end="url(#Triangle)"/>
-
+<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
+ <defs>
+ <marker id="Triangle"
+ viewBox="0 0 10 10" refX="3" refY="5"
+ markerUnits="strokeWidth"
+ markerWidth="3" markerHeight="3"
+ style="stroke:#FF9933;"
+ orient="auto">
+ <path d="M 0 0 L 10 5 L 0 10 z" />
+ </marker>
+ </defs>
+ <line id="migrationPath" x1="0" x2="80" y1="0" y2="80" style="background-color:transparent;z-index:2;fill:none;stroke:#FF9933;stroke-width:4;" marker-end="url(#Triangle)"/>
+
</svg>
View
58 tests/content/commandLine/5130/issue5130.html
@@ -1,29 +1,29 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Issue 5130: Array indices are sorted alphabetically instead of numerically</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
-</head>
-<body>
-<header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5130">Issue 5130</a>:
- Array indices are sorted alphabetically instead of numerically</h1>
-</header>
-<div>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Select and enable the Console panel</li>
- <li>Execute following expression in the command line:<br/>
- <code style="color:green">console.dir([0,1,2,3,4,5,6,7,8,9,10]);</code>
- </li>
- <li>The output should be sorted according to the index (not alphabetically).</li>
- </ol>
- </section>
- <footer>
- Jan Odvarko &lt;odvarko@gmail.com&gt;
- </footer>
-</div>
-</body>
-</html>
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Issue 5130: Array indices are sorted alphabetically instead of numerically</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+</head>
+<body>
+<header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5130">Issue 5130</a>:
+ Array indices are sorted alphabetically instead of numerically</h1>
+</header>
+<div>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Select and enable the Console panel</li>
+ <li>Execute following expression in the command line:<br/>
+ <code style="color:green">console.dir([0,1,2,3,4,5,6,7,8,9,10]);</code>
+ </li>
+ <li>The output should be sorted according to the index (not alphabetically).</li>
+ </ol>
+ </section>
+ <footer>
+ Jan Odvarko &lt;odvarko@gmail.com&gt;
+ </footer>
+</div>
+</body>
+</html>
View
44 tests/content/commandLine/5130/issue5130.js
@@ -1,22 +1,22 @@
-function runTest()
-{
- FBTest.sysout("issue5130.START");
- FBTest.openNewTab(basePath + "commandLine/5130/issue5130.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.clearCache();
- FBTest.enableConsolePanel(function(win)
- {
- var tasks = new FBTest.TaskList();
-
- var expr = "console.dir([0,1,2,3,4,5,6,7,8,9,10]);";
- var expected = /\s*00\s*11\s*22\s*33\s*44\s*55\s*66\s*77\s*88\s*99\s*1010/;
- tasks.push(FBTest.executeCommandAndVerify, expr, expected,
- "div", "logRow logRow-dir");
-
- tasks.run(function() {
- FBTest.testDone("issue5130.DONE");
- });
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue5130.START");
+ FBTest.openNewTab(basePath + "commandLine/5130/issue5130.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.clearCache();
+ FBTest.enableConsolePanel(function(win)
+ {
+ var tasks = new FBTest.TaskList();
+
+ var expr = "console.dir([0,1,2,3,4,5,6,7,8,9,10]);";
+ var expected = /\s*00\s*11\s*22\s*33\s*44\s*55\s*66\s*77\s*88\s*99\s*1010/;
+ tasks.push(FBTest.executeCommandAndVerify, expr, expected,
+ "div", "logRow logRow-dir");
+
+ tasks.run(function() {
+ FBTest.testDone("issue5130.DONE");
+ });
+ });
+ });
+}
View
92 tests/content/console/2271/issue2271.html
@@ -1,49 +1,49 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
- <title>Test Case for Issue #2271</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-</head>
-<body>
-
-<h1>Issue #2271</h1>
-
-<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2271">Issue #2271</a>
-- <span class="h3">JS errors in AJAX callback functions are not shown</span>.
-<br/>
-<i>Jan Odvarko, odvarko@gmail.com</i>
-</p>
-
-<ol>
-<li>Open Firebug and enable the Console panel. Make sure the <i>Show XMLHttpRequests</i> option is on.</li>
-<li>Click on the <code>Execute Test</code> button below.</li>
-<li>See Firefox Error Console. There should be following error:</li>
-<code style="color:red">Error: document.getElementId is not a function<br/>
-Source File: http://legoas/firebug/tests/2271/issue2271.html
-Line: 35</code>
-<li>See also Firebug's Console panel. The error should also be there.</li>
-<li>If the error isn't there -> BUG</li>
-</ol>
-
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+ <title>Test Case for Issue #2271</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+</head>
+<body>
+
+<h1>Issue #2271</h1>
+
+<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2271">Issue #2271</a>
+- <span class="h3">JS errors in AJAX callback functions are not shown</span>.
+<br/>
+<i>Jan Odvarko, odvarko@gmail.com</i>
+</p>
+
+<ol>
+<li>Open Firebug and enable the Console panel. Make sure the <i>Show XMLHttpRequests</i> option is on.</li>
+<li>Click on the <code>Execute Test</code> button below.</li>
+<li>See Firefox Error Console. There should be following error:</li>
+<code style="color:red">Error: document.getElementId is not a function<br/>
+Source File: http://legoas/firebug/tests/2271/issue2271.html
+Line: 35</code>
+<li>See also Firebug's Console panel. The error should also be there.</li>
+<li>If the error isn't there -> BUG</li>
+</ol>
+
<button id="testButton" onclick="onExecuteTest()">Execute Test</button>
-<script type="text/javascript">
-function onExecuteTest()
-{
- var request = new XMLHttpRequest();
- request.open("GET", "issue2271.php", true);
-
- request.onreadystatechange = function()
- {
- if (request.readyState == 4 && request.status == 200)
- {
- document.getElementId("something").innerText = request.responseText;
- }
- }
-
- request.send(null);
-}
-</script>
+<script type="text/javascript">
+function onExecuteTest()
+{
+ var request = new XMLHttpRequest();
+ request.open("GET", "issue2271.php", true);
+
+ request.onreadystatechange = function()
+ {
+ if (request.readyState == 4 && request.status == 200)
+ {
+ document.getElementId("something").innerText = request.responseText;
+ }
+ }
+
+ request.send(null);
+}
+</script>
-</body>
-</html>
+</body>
+</html>
View
68 tests/content/console/3042/issue3042.html
@@ -1,34 +1,34 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 3042: Show syntax error position like in error console of Firefox</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- <script type="text/javascript">
- window.addEventListener("load", function()
- {
- var incorrectVarDef = {hello: "Hello Firebug user!"; issueNo: 3042};
- }, false);
- </script>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=3042">Issue 3042</a>: Show syntax error position like in error console of Firefox</h1>
- </header>
- <div>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Open Firebug</li>
- <li>Enable and switch to the <em>Console</em> panel</li>
- <li>Reload the page</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>A syntax error should be listed inside the console having an indicator for the column where the error occurred</li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 3042: Show syntax error position like in error console of Firefox</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ <script type="text/javascript">
+ window.addEventListener("load", function()
+ {
+ var incorrectVarDef = {hello: "Hello Firebug user!"; issueNo: 3042};
+ }, false);
+ </script>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=3042">Issue 3042</a>: Show syntax error position like in error console of Firefox</h1>
+ </header>
+ <div>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug</li>
+ <li>Enable and switch to the <em>Console</em> panel</li>
+ <li>Reload the page</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>A syntax error should be listed inside the console having an indicator for the column where the error occurred</li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
76 tests/content/console/3042/issue3042.js
@@ -1,38 +1,38 @@
-function runTest()
-{
- FBTest.sysout("issue3042.START");
-
- FBTest.openNewTab(basePath + "console/3042/issue3042.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.selectPanel("console");
-
- FBTest.enableConsolePanel(function(win)
- {
- var config = {
- tagName: "div",
- classes: "logRow logRow-errorMessage"
- };
-
- FBTest.waitForDisplayedElement("console", config, function(row)
- {
- var errorIndicatorLeftPart = row.getElementsByClassName("errorColPosition");
- if (FBTest.compare(1, errorIndicatorLeftPart.length,
- "There must be an error indicator"))
- {
- FBTest.compare("---------------------------------------------------",
- errorIndicatorLeftPart.item(0).textContent,
- "The left part of the error indicator must be shown as dashes");
- var errorIndicatorRightPart = errorIndicatorLeftPart.item(0).parentNode.
- getElementsByClassName("errorColCaret").item(0);
- var backgroundImage = win.getComputedStyle(errorIndicatorRightPart, "").
- getPropertyValue("background-image");
- FBTest.compare("url(\"chrome://firebug/skin/console-error-caret.png\")",
- backgroundImage, "The right part of the error indicator must be shown as an arrow");
-
- FBTest.testDone("issue3042.DONE");
- }
- });
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue3042.START");
+
+ FBTest.openNewTab(basePath + "console/3042/issue3042.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("console");
+
+ FBTest.enableConsolePanel(function(win)
+ {
+ var config = {
+ tagName: "div",
+ classes: "logRow logRow-errorMessage"
+ };
+
+ FBTest.waitForDisplayedElement("console", config, function(row)
+ {
+ var errorIndicatorLeftPart = row.getElementsByClassName("errorColPosition");
+ if (FBTest.compare(1, errorIndicatorLeftPart.length,
+ "There must be an error indicator"))
+ {
+ FBTest.compare("---------------------------------------------------",
+ errorIndicatorLeftPart.item(0).textContent,
+ "The left part of the error indicator must be shown as dashes");
+ var errorIndicatorRightPart = errorIndicatorLeftPart.item(0).parentNode.
+ getElementsByClassName("errorColCaret").item(0);
+ var backgroundImage = win.getComputedStyle(errorIndicatorRightPart, "").
+ getPropertyValue("background-image");
+ FBTest.compare("url(\"chrome://firebug/skin/console-error-caret.png\")",
+ backgroundImage, "The right part of the error indicator must be shown as an arrow");
+
+ FBTest.testDone("issue3042.DONE");
+ }
+ });
+ });
+ });
+}
View
62 tests/content/cookies/general/cookiesPanel.html
@@ -1,31 +1,31 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Cookie Panel</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <header>
- <h1>Cookie Panel</h1>
- </header>
- <div>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>
- Open Firebug<br/>
- <span class="ok">&rArr; There must be a <em>Cookies</em> panel</span>
- </li>
- <li>Enable and switch to the <em>Cookies panel</em></li>
- <li>Refresh the page</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>The <em>Cookies</em> panel must exist and work</li>
- </ul>
- </section>
- <footer>Jan Odvarko, odvarko@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Cookie Panel</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ </head>
+ <body>
+ <header>
+ <h1>Cookie Panel</h1>
+ </header>
+ <div>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>
+ Open Firebug<br/>
+ <span class="ok">&rArr; There must be a <em>Cookies</em> panel</span>
+ </li>
+ <li>Enable and switch to the <em>Cookies panel</em></li>
+ <li>Refresh the page</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>The <em>Cookies</em> panel must exist and work</li>
+ </ul>
+ </section>
+ <footer>Jan Odvarko, odvarko@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
28 tests/content/css/2967/issue2967.js
@@ -1,15 +1,15 @@
-function runTest()
-{
- FBTest.sysout("issue2967.START");
-
- FBTest.openNewTab(basePath + "css/2967/issue2967.xml", function(win)
- {
- FBTest.openFirebug();
- var panel = FBTest.selectPanel("stylesheet");
-
- if (FBTest.ok(FBTest.selectPanelLocationByName(panel, "issue2967.xml"), "The CSS Location Menu should contain an entry for 'issue2967.xml'"))
- FBTest.compare(/#rect\s*\{\s*fill:\s*url\("#linearGradient"\)\s*#000000;\s*\}/, panel.panelNode.textContent, "The panel should contain one SVG CSS rule");
-
- FBTest.testDone("issue2967.DONE");
- });
+function runTest()
+{
+ FBTest.sysout("issue2967.START");
+
+ FBTest.openNewTab(basePath + "css/2967/issue2967.xml", function(win)
+ {
+ FBTest.openFirebug();
+ var panel = FBTest.selectPanel("stylesheet");
+
+ if (FBTest.ok(FBTest.selectPanelLocationByName(panel, "issue2967.xml"), "The CSS Location Menu should contain an entry for 'issue2967.xml'"))
+ FBTest.compare(/#rect\s*\{\s*fill:\s*url\("#linearGradient"\)\s*#000000;\s*\}/, panel.panelNode.textContent, "The panel should contain one SVG CSS rule");
+
+ FBTest.testDone("issue2967.DONE");
+ });
}
View
106 tests/content/css/2967/issue2967.xml
@@ -1,53 +1,53 @@
-<?xml version="1.0"?>
-<!DOCTYPE html [
- <!ENTITY rArr "">
-]>
-<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title>Issue 2967: CSS on in SVG placed in a mixed XHTML+SVG document does not show up on CSS tab</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=2967">Issue 2967</a>: CSS on in SVG placed in a mixed XHTML+SVG document does not show up on CSS tab</h1>
- </header>
- <div>
- <section id="content">
- <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100" id="rect">
- <style type="text/css">
- #rect {
- fill: url(#linearGradient) #000000;
- }
- </style>
- <linearGradient id="linearGradient" x1="100" y1="100" x2="0" y2="0" gradientUnits="userSpaceOnUse">
- <stop style="stop-color: #788cff;" offset="0"/>
- <stop style="stop-color: #b4c8ff;" offset="1"/>
- </linearGradient>
- <rect width="100" height="100" x="0" y="0" id="rect"/>
- </svg>
- </section>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Open Firebug</li>
- <li>Switch to the <em>CSS</em> panel</li>
- <li>
- Open the CSS Location Menu<br/>
- <span class="ok">&rArr; There should be an entry <em>issue2967.xml</em></span>
- </li>
- <li>
- Select that entry<br/>
- <span class="ok">&rArr; The SVG stylesheet inside <em>issue2967.xml</em> should be shown inside the CSS panel</span>
- </li>
- <li>Select that entry</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>The <em>CSS</em> panel should be able to handle CSS of SVGs embedded into XHTML files</li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<?xml version="1.0"?>
+<!DOCTYPE html [
+ <!ENTITY rArr "">
+]>
+<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+ <head>
+ <title>Issue 2967: CSS on in SVG placed in a mixed XHTML+SVG document does not show up on CSS tab</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=2967">Issue 2967</a>: CSS on in SVG placed in a mixed XHTML+SVG document does not show up on CSS tab</h1>
+ </header>
+ <div>
+ <section id="content">
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100" id="rect">
+ <style type="text/css">
+ #rect {
+ fill: url(#linearGradient) #000000;
+ }
+ </style>
+ <linearGradient id="linearGradient" x1="100" y1="100" x2="0" y2="0" gradientUnits="userSpaceOnUse">
+ <stop style="stop-color: #788cff;" offset="0"/>
+ <stop style="stop-color: #b4c8ff;" offset="1"/>
+ </linearGradient>
+ <rect width="100" height="100" x="0" y="0" id="rect"/>
+ </svg>
+ </section>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug</li>
+ <li>Switch to the <em>CSS</em> panel</li>
+ <li>
+ Open the CSS Location Menu<br/>
+ <span class="ok">&rArr; There should be an entry <em>issue2967.xml</em></span>
+ </li>
+ <li>
+ Select that entry<br/>
+ <span class="ok">&rArr; The SVG stylesheet inside <em>issue2967.xml</em> should be shown inside the CSS panel</span>
+ </li>
+ <li>Select that entry</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>The <em>CSS</em> panel should be able to handle CSS of SVGs embedded into XHTML files</li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
108 tests/content/css/3303/issue3303.html
@@ -1,54 +1,54 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 3303: Up/Down key working incorrectly for fonts when editing CSS</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">
- #font {
- font-family: Arial, serif;
- }
- </style>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=3303">Issue 3303</a>: Up/Down key working incorrectly for fonts when editing CSS</h1>
- </header>
- <div>
- <section id="content">
- <p id="font">Hello Firebug user!</p>
- </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 paragraph above (<code>#font</code>)</li>
- <li>Click on the value of the <code>font-family</code> property inside the <code>#font</code> rule</li>
- <li>Set the text cursor between the <code>A</code> and the <code>l</code> of <code>Arial</code></li>
- <li>
- Press <code class="key">Down</code> until you reach a font with spaces in it<br/>
- <span class="ok">The value should now be something like <code>&lt;font with spaces&gt;,serif</code> with the font with spaces being selected</span>
- </li>
- <li>
- Press <code class="key">Down</code> until you reach a font without spaces in it<br/>
- <span class="ok">The value should now be something like <code>&lt;fontwithoutspaces&gt;,serif</code> with the font without spaces being selected</span>
- </li>
- <li>
- Press <code class="key">Up</code> until you reach the font with spaces again<br/>
- <span class="ok">The value should now be <code>&lt;font with spaces&gt;,serif</code> again with the font with spaces being selected</span>
- </li>
- <li>
- Press <code class="key">Up</code> until you reach <code>Arial</code> again<br/>
- <span class="ok">The value should now be <code>Arial,serif</code> again with <code>Arial</code> being selected</span>
- </li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>Auto-completion should work correctly on space-separated font names when pressing <code class="key">Up</code>/<code class="key">Down</code></li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 3303: Up/Down key working incorrectly for fonts when editing CSS</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">
+ #font {
+ font-family: Arial, serif;
+ }
+ </style>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=3303">Issue 3303</a>: Up/Down key working incorrectly for fonts when editing CSS</h1>
+ </header>
+ <div>
+ <section id="content">
+ <p id="font">Hello Firebug user!</p>
+ </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 paragraph above (<code>#font</code>)</li>
+ <li>Click on the value of the <code>font-family</code> property inside the <code>#font</code> rule</li>
+ <li>Set the text cursor between the <code>A</code> and the <code>l</code> of <code>Arial</code></li>
+ <li>
+ Press <code class="key">Down</code> until you reach a font with spaces in it<br/>
+ <span class="ok">The value should now be something like <code>&lt;font with spaces&gt;,serif</code> with the font with spaces being selected</span>
+ </li>
+ <li>
+ Press <code class="key">Down</code> until you reach a font without spaces in it<br/>
+ <span class="ok">The value should now be something like <code>&lt;fontwithoutspaces&gt;,serif</code> with the font without spaces being selected</span>
+ </li>
+ <li>
+ Press <code class="key">Up</code> until you reach the font with spaces again<br/>
+ <span class="ok">The value should now be <code>&lt;font with spaces&gt;,serif</code> again with the font with spaces being selected</span>
+ </li>
+ <li>
+ Press <code class="key">Up</code> until you reach <code>Arial</code> again<br/>
+ <span class="ok">The value should now be <code>Arial,serif</code> again with <code>Arial</code> being selected</span>
+ </li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>Auto-completion should work correctly on space-separated font names when pressing <code class="key">Up</code>/<code class="key">Down</code></li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
142 tests/content/css/3303/issue3303.js
@@ -1,71 +1,71 @@
-function runTest()
-{
- FBTest.sysout("issue3303.START");
-
- FBTest.openNewTab(basePath + "css/3303/issue3303.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.selectPanel("html");
-
- FBTest.selectElementInHtmlPanel("font", function(node)
- {
- const MAX_TIMES = 30;
- var panel = FBTest.selectSidePanel("css");
- var values = panel.panelNode.querySelectorAll(".cssPropValue");
-
- // Click the CSS value of the height property to open the inline editor
- FBTest.synthesizeMouse(values[0]);
-
- var editor = panel.panelNode.querySelector(".textEditorInner");
-
- // Press 'Down' until a font with spaces is reached
- i = 0;
- do {
- FBTest.sendShortcut("VK_DOWN");
- } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
-
- if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
- {
- var firstFont = editor.value.match(/.*?(?=,)/)[0];
- FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
- }
-
- // Press 'Down' until a font without spaces is reached
- i = 0;
- do {
- FBTest.sendShortcut("VK_DOWN");
- } while(editor.value.search(" ") != -1 && ++i < MAX_TIMES);
-
- if (FBTest.compare(/^\S+$/, editor.value, "Property value must contain a font without spaces now"))
- {
- var firstFont = editor.value.match(/.*?(?=,)/)[0];
- FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
- }
-
- // Press 'Up' until a font with spaces is reached
- i = 0;
- do {
- FBTest.sendShortcut("VK_UP");
- } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
-
- if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
- {
- var firstFont = editor.value.match(/.*?(?=,)/)[0];
- FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
- }
-
- // Press 'Up' until 'Arial' is reached again
- i = 0;
- do {
- FBTest.sendShortcut("VK_UP");
- } while(editor.value.search("Arial") == -1 && ++i < MAX_TIMES);
-
- if (FBTest.compare(/Arial/, editor.value, "Property value must contain 'Arial' now"))
- {
- FBTest.compare("Arial", editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
- }
-
- FBTest.testDone("issue3303.DONE");
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue3303.START");
+
+ FBTest.openNewTab(basePath + "css/3303/issue3303.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("html");
+
+ FBTest.selectElementInHtmlPanel("font", function(node)
+ {
+ const MAX_TIMES = 30;
+ var panel = FBTest.selectSidePanel("css");
+ var values = panel.panelNode.querySelectorAll(".cssPropValue");
+
+ // Click the CSS value of the height property to open the inline editor
+ FBTest.synthesizeMouse(values[0]);
+
+ var editor = panel.panelNode.querySelector(".textEditorInner");
+
+ // Press 'Down' until a font with spaces is reached
+ i = 0;
+ do {
+ FBTest.sendShortcut("VK_DOWN");
+ } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
+
+ if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
+ {
+ var firstFont = editor.value.match(/.*?(?=,)/)[0];
+ FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
+ }
+
+ // Press 'Down' until a font without spaces is reached
+ i = 0;
+ do {
+ FBTest.sendShortcut("VK_DOWN");
+ } while(editor.value.search(" ") != -1 && ++i < MAX_TIMES);
+
+ if (FBTest.compare(/^\S+$/, editor.value, "Property value must contain a font without spaces now"))
+ {
+ var firstFont = editor.value.match(/.*?(?=,)/)[0];
+ FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
+ }
+
+ // Press 'Up' until a font with spaces is reached
+ i = 0;
+ do {
+ FBTest.sendShortcut("VK_UP");
+ } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
+
+ if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
+ {
+ var firstFont = editor.value.match(/.*?(?=,)/)[0];
+ FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
+ }
+
+ // Press 'Up' until 'Arial' is reached again
+ i = 0;
+ do {
+ FBTest.sendShortcut("VK_UP");
+ } while(editor.value.search("Arial") == -1 && ++i < MAX_TIMES);
+
+ if (FBTest.compare(/Arial/, editor.value, "Property value must contain 'Arial' now"))
+ {
+ FBTest.compare("Arial", editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
+ }
+
+ FBTest.testDone("issue3303.DONE");
+ });
+ });
+}
View
100 tests/content/css/5438/issue5438.html
@@ -1,50 +1,50 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 5438: Allow jumping from web font usage in Style side panel to its definition</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">
- @font-face {
- font-family: TestFont;
- src: url(testFont.woff) format("woff");
- }
-
- #element {
- font-family: TestFont;
- }
- </style>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5438">Issue 5438</a>: Allow jumping from web font usage in Style side panel to its definition</h1>
- </header>
- <div>
- <section id="content">
- <p id="element">Hello Firebug user!</p>
- </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 text <em>Hello Firebug user!</em> above</li>
- <li>
- Inside the <em>Style</em> side panel right-click on the value (<code>TestFont</code>)
- of the <code>font-family</code> property inside the <code>#element</code> rule<br/>
- <span class="ok">&rArr; There should be an option <em>Inspect Declaration</em></span>
- </li>
- <li>Click that menu item</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>
- Firebug should switch to the <em>CSS</em> panel and highlight the <code>@font-face</code> rule,
- in which the <code>TestFont</code> is defined
- </li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 5438: Allow jumping from web font usage in Style side panel to its definition</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">
+ @font-face {
+ font-family: TestFont;
+ src: url(testFont.woff) format("woff");
+ }
+
+ #element {
+ font-family: TestFont;
+ }
+ </style>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5438">Issue 5438</a>: Allow jumping from web font usage in Style side panel to its definition</h1>
+ </header>
+ <div>
+ <section id="content">
+ <p id="element">Hello Firebug user!</p>
+ </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 text <em>Hello Firebug user!</em> above</li>
+ <li>
+ Inside the <em>Style</em> side panel right-click on the value (<code>TestFont</code>)
+ of the <code>font-family</code> property inside the <code>#element</code> rule<br/>
+ <span class="ok">&rArr; There should be an option <em>Inspect Declaration</em></span>
+ </li>
+ <li>Click that menu item</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>
+ Firebug should switch to the <em>CSS</em> panel and highlight the <code>@font-face</code> rule,
+ in which the <code>TestFont</code> is defined
+ </li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
88 tests/content/css/5438/issue5438.js
@@ -1,44 +1,44 @@
-function runTest()
-{
- FBTest.sysout("issue5438.START");
-
- FBTest.openNewTab(basePath + "css/5438/issue5438.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.selectPanel("html");
-
- FBTest.selectElementInHtmlPanel("element", function(node)
- {
- var panel = FBTest.selectSidePanel("css");
- var values = panel.panelNode.getElementsByClassName("cssPropValue");
-
- for (var i = 0; i < values.length; ++i)
- {
- if (values[i].textContent == "TestFont")
- {
- FBTest.executeContextMenuCommand(values[i], "fbInspectDeclaration", function()
- {
- // Firebug should switch to the CSS panel.
- var panel = FBTest.getSelectedPanel();
- if (FBTest.compare("stylesheet", panel.name, "The CSS panel must be selected"))
- {
- var highlightedRule = panel.panelNode.
- getElementsByClassName("jumpHighlight").item(0);
- if (FBTest.ok(highlightedRule, "A rule must be highlighted"))
- {
- FBTest.compare(new RegExp("@font-face\\s+\\{[\\r\\n\\s]+"+
- "font-family:\\s+\"TestFont\";[\\r\\n\\s]+src:\\s+"+
- "url\\(\"testFont\.woff\"\\)\\s+format\\(\"woff\"\\);"+
- "[\\r\\n\\s]*\\}"), highlightedRule.textContent,
- "The rule must be the correct @font-face definition");
- }
- }
-
- FBTest.testDone("issue5438.DONE");
- });
- break;
- }
- }
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue5438.START");
+
+ FBTest.openNewTab(basePath + "css/5438/issue5438.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("html");
+
+ FBTest.selectElementInHtmlPanel("element", function(node)
+ {
+ var panel = FBTest.selectSidePanel("css");
+ var values = panel.panelNode.getElementsByClassName("cssPropValue");
+
+ for (var i = 0; i < values.length; ++i)
+ {
+ if (values[i].textContent == "TestFont")
+ {
+ FBTest.executeContextMenuCommand(values[i], "fbInspectDeclaration", function()
+ {
+ // Firebug should switch to the CSS panel.
+ var panel = FBTest.getSelectedPanel();
+ if (FBTest.compare("stylesheet", panel.name, "The CSS panel must be selected"))
+ {
+ var highlightedRule = panel.panelNode.
+ getElementsByClassName("jumpHighlight").item(0);
+ if (FBTest.ok(highlightedRule, "A rule must be highlighted"))
+ {
+ FBTest.compare(new RegExp("@font-face\\s+\\{[\\r\\n\\s]+"+
+ "font-family:\\s+\"TestFont\";[\\r\\n\\s]+src:\\s+"+
+ "url\\(\"testFont\.woff\"\\)\\s+format\\(\"woff\"\\);"+
+ "[\\r\\n\\s]*\\}"), highlightedRule.textContent,
+ "The rule must be the correct @font-face definition");
+ }
+ }
+
+ FBTest.testDone("issue5438.DONE");
+ });
+ break;
+ }
+ }
+ });
+ });
+}
View
82 tests/content/css/5461/issue5461.html
@@ -1,41 +1,41 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 5461: When copying selected parts from Style side panel don't copy source link or inherited styles header</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">
- #element {
- width: 100px;
- height: 100px;
- background: #8C8CFF -moz-linear-gradient(135deg, #788CFF, #B4C8FF);
- }
- </style>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5461">Issue 5461</a>: When copying selected parts from Style side panel don't copy source link or inherited styles header</h1>
- </header>
- <div>
- <section id="content">
- <div id="element"></div>
- </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 blue <code>&lt;div&gt;</code> (<code>#element</code>) above</li>
- <li>Mark everything inside the <em>Style</em> side panel via <code class="key">Ctrl/&#8984;+A</code></li>
- <li>Copy the selection to the clipboard via Ctrl/&#8984;+C</li>
- <li>Paste the content of the clipboard to a text editor</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>The copied contents shouldn't contain source links or inherited styles headers</li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 5461: When copying selected parts from Style side panel don't copy source link or inherited styles header</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">
+ #element {
+ width: 100px;
+ height: 100px;
+ background: #8C8CFF -moz-linear-gradient(135deg, #788CFF, #B4C8FF);
+ }
+ </style>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5461">Issue 5461</a>: When copying selected parts from Style side panel don't copy source link or inherited styles header</h1>
+ </header>
+ <div>
+ <section id="content">
+ <div id="element"></div>
+ </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 blue <code>&lt;div&gt;</code> (<code>#element</code>) above</li>
+ <li>Mark everything inside the <em>Style</em> side panel via <code class="key">Ctrl/&#8984;+A</code></li>
+ <li>Copy the selection to the clipboard via Ctrl/&#8984;+C</li>
+ <li>Paste the content of the clipboard to a text editor</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>The copied contents shouldn't contain source links or inherited styles headers</li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
84 tests/content/css/5461/issue5461.js
@@ -1,42 +1,42 @@
-function runTest()
-{
- FBTest.sysout("issue5461.START");
-
- FBTest.openNewTab(basePath + "css/5461/issue5461.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.selectPanel("html");
-
- FBTest.selectElementInHtmlPanel("element", function(node)
- {
- var panel = FBTest.selectSidePanel("css");
-
- FBTest.synthesizeMouse(panel.panelNode);
- FBTest.sendShortcut("a", {ctrlKey: true});
-
- // Reset clipboard content
- FBTest.clearClipboard();
- var expected = new RegExp("#element\\s+\\{[\\r\\n]{1,2}"+
- "\\s+background:\\s+-moz-linear-gradient\\(135deg, #788CFF, #B4C8FF\\) repeat "+
- "scroll 0 0 #8C8CFF;[\\r\\n]{1,2}"+
- "\\s+height:\\s+100px;[\\r\\n]{1,2}"+
- "\\s+width:\\s+100px;[\\r\\n]{1,2}"+
- "\\}[\\r\\n]{1,2}"+
- "\\*\\s+\{[\\r\\n]{1,2}"+
- "\\s+position: relative;[\\r\\n]{1,2}"+
- "\\}[\\r\\n]{1,2}"+
- "body\\s+\\\{[\\r\\n]{1,2}"+
- "\\s+font-family:\\s+\\\"Trebuchet MS\\\",Helvetica,sans-serif;[\\r\\n]{1,2}"+
- "\\s+font-size:\\s+0.9em;[\\r\\n]{1,2}"+
- "\\}");
- FBTest.waitForClipboard(expected, function(cssDecl)
- {
- FBTest.compare(expected, cssDecl,
- "CSS declaration must be properly copied into the clipboard");
- FBTest.testDone("issue5461.DONE");
- });
-
- FBTest.sendShortcut("c", {ctrlKey: true});
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue5461.START");
+
+ FBTest.openNewTab(basePath + "css/5461/issue5461.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("html");
+
+ FBTest.selectElementInHtmlPanel("element", function(node)
+ {
+ var panel = FBTest.selectSidePanel("css");
+
+ FBTest.synthesizeMouse(panel.panelNode);
+ FBTest.sendShortcut("a", {ctrlKey: true});
+
+ // Reset clipboard content
+ FBTest.clearClipboard();
+ var expected = new RegExp("#element\\s+\\{[\\r\\n]{1,2}"+
+ "\\s+background:\\s+-moz-linear-gradient\\(135deg, #788CFF, #B4C8FF\\) repeat "+
+ "scroll 0 0 #8C8CFF;[\\r\\n]{1,2}"+
+ "\\s+height:\\s+100px;[\\r\\n]{1,2}"+
+ "\\s+width:\\s+100px;[\\r\\n]{1,2}"+
+ "\\}[\\r\\n]{1,2}"+
+ "\\*\\s+\{[\\r\\n]{1,2}"+
+ "\\s+position: relative;[\\r\\n]{1,2}"+
+ "\\}[\\r\\n]{1,2}"+
+ "body\\s+\\\{[\\r\\n]{1,2}"+
+ "\\s+font-family:\\s+\\\"Trebuchet MS\\\",Helvetica,sans-serif;[\\r\\n]{1,2}"+
+ "\\s+font-size:\\s+0.9em;[\\r\\n]{1,2}"+
+ "\\}");
+ FBTest.waitForClipboard(expected, function(cssDecl)
+ {
+ FBTest.compare(expected, cssDecl,
+ "CSS declaration must be properly copied into the clipboard");
+ FBTest.testDone("issue5461.DONE");
+ });
+
+ FBTest.sendShortcut("c", {ctrlKey: true});
+ });
+ });
+}
View
66 tests/content/css/computed/5451/issue5451.html
@@ -1,33 +1,33 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 5451: Persist scrolling in Computed side panel</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5451">Issue 5451</a>: Persist scrolling in Computed side panel</h1>
- </header>
- <div>
- <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>Computed</em> side panel</li>
- <li>
- Check the panel option <em>Show User Agent CSS</em><br/>
- <span class="ok">&rArr; The panel should display CSS properties and a scrollbar to scroll through them</span>
- </li>
- <li>Scroll the panel down to the <em>Background</em> group</li>
- <li>Reload the page</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>The panel should be scrolled to the <em>Background</em> group again</li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 5451: Persist scrolling in Computed side panel</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5451">Issue 5451</a>: Persist scrolling in Computed side panel</h1>
+ </header>
+ <div>
+ <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>Computed</em> side panel</li>
+ <li>
+ Check the panel option <em>Show User Agent CSS</em><br/>
+ <span class="ok">&rArr; The panel should display CSS properties and a scrollbar to scroll through them</span>
+ </li>
+ <li>Scroll the panel down to the <em>Background</em> group</li>
+ <li>Reload the page</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>The panel should be scrolled to the <em>Background</em> group again</li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
40 tests/content/css/computed/5451/issue5451.js
@@ -1,20 +1,20 @@
-function runTest()
-{
- FBTest.sysout("issue5451.START");
-
- FBTest.openNewTab(basePath + "css/computed/5451/issue5451.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.selectPanel("html");
-
- var panel = FBTest.selectSidePanel("computed");
- panel.panelNode.scrollTop = 100;
-
- FBTest.reload(function() {
- var panel = FBTest.selectSidePanel("computed");
- FBTest.compare(100, panel.panelNode.scrollTop, "Panel must be scrolled down 100 pixels");
-
- FBTest.testDone("issue5451.DONE");
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue5451.START");
+
+ FBTest.openNewTab(basePath + "css/computed/5451/issue5451.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("html");
+
+ var panel = FBTest.selectSidePanel("computed");
+ panel.panelNode.scrollTop = 100;
+
+ FBTest.reload(function() {
+ var panel = FBTest.selectSidePanel("computed");
+ FBTest.compare(100, panel.panelNode.scrollTop, "Panel must be scrolled down 100 pixels");
+
+ FBTest.testDone("issue5451.DONE");
+ });
+ });
+}
View
4 tests/content/dom/5247/external/externalStylesheet.css
@@ -1,3 +1,3 @@
-#externalRule {
- color: blue;
+#externalRule {
+ color: blue;
}
View
172 tests/content/dom/5247/issue5247.html
@@ -1,86 +1,86 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 5247: Add reps for different types of CSSRules</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">
- @charset "utf-8";
-
- @import "external/externalStylesheet.css";
-
- @media (min-width: 500px) and (max-width: 700px) {
- #mediaSpecificRule {
- color: green;
- }
- }
-
- @font-face {
- font-family: "TitilliumMaps";
- src: url(/fonts/TitilliumMaps26L002.eot), url(/fonts/TitilliumMaps26L002.woff) format("woff"), url(/fonts/TitilliumMaps26L002.ttf) format("truetype");
- }
-
- @-moz-keyframes slidein {
- from {
- margin-left: 100%;
- width: 300%;
- }
-
- to {
- margin-left: 0%;
- width: 100%;
- }
- }
-
- #internalRule {
- color: red;
- }
- </style>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5247">Issue 5247</a>: Add reps for different types of CSSRules</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>issue5247.html</em> from the Location Menu</li>
- <li>
- Right-click the Location Button and choose <em>Inspect in DOM panel</em> from the context menu<br/>
- <span class="ok">&rArr; Firebug should switch to the <em>DOM</em> panel and display the stylesheet</span>
- </li>
- <li>
- Expand the <code>cssRules</code> property<br/>
- <span class="ok">
- &rArr; There should be 6 rules listed:<br/>
- <code>CSSCharsetRule utf-8
-CSSImportRule externalStylesheet.css
-CSSMediaRule (min-width: 500px) and (max-width: 700px)
-CSSFontFaceRule "TitilliumMaps"
-CSSKeyframesRule slidein
-CSSStyleRule #internalRule
-</code>
- </span>
- </li>
- <li>
- Expand the <em>CSSKeyframesRule</em> and the <code>cssRules</code> property in it<br/>
- <span class="ok">
- &rArr; There should be 2 <em>CSSKeyframeRule</em>s listed:<br/>
-<code>CSSKeyframeRule 0%
-CSSKeyframeRule 100%
-</code>
- </span>
- </li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>Each CSSRule should have its own </li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 5247: Add reps for different types of CSSRules</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">
+ @charset "utf-8";
+
+ @import "external/externalStylesheet.css";
+
+ @media (min-width: 500px) and (max-width: 700px) {
+ #mediaSpecificRule {
+ color: green;
+ }
+ }
+
+ @font-face {
+ font-family: "TitilliumMaps";
+ src: url(/fonts/TitilliumMaps26L002.eot), url(/fonts/TitilliumMaps26L002.woff) format("woff"), url(/fonts/TitilliumMaps26L002.ttf) format("truetype");
+ }
+
+ @-moz-keyframes slidein {
+ from {
+ margin-left: 100%;
+ width: 300%;
+ }
+
+ to {
+ margin-left: 0%;
+ width: 100%;
+ }
+ }
+
+ #internalRule {
+ color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5247">Issue 5247</a>: Add reps for different types of CSSRules</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>issue5247.html</em> from the Location Menu</li>
+ <li>
+ Right-click the Location Button and choose <em>Inspect in DOM panel</em> from the context menu<br/>
+ <span class="ok">&rArr; Firebug should switch to the <em>DOM</em> panel and display the stylesheet</span>
+ </li>
+ <li>
+ Expand the <code>cssRules</code> property<br/>
+ <span class="ok">
+ &rArr; There should be 6 rules listed:<br/>
+ <code>CSSCharsetRule utf-8
+CSSImportRule externalStylesheet.css
+CSSMediaRule (min-width: 500px) and (max-width: 700px)
+CSSFontFaceRule "TitilliumMaps"
+CSSKeyframesRule slidein
+CSSStyleRule #internalRule
+</code>
+ </span>
+ </li>
+ <li>
+ Expand the <em>CSSKeyframesRule</em> and the <code>cssRules</code> property in it<br/>
+ <span class="ok">
+ &rArr; There should be 2 <em>CSSKeyframeRule</em>s listed:<br/>
+<code>CSSKeyframeRule 0%
+CSSKeyframeRule 100%
+</code>
+ </span>
+ </li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>Each CSSRule should have its own </li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
150 tests/content/dom/5247/issue5247.js
@@ -1,75 +1,75 @@
-function runTest()
-{
- FBTest.sysout("issue5247.START");
-
- FBTest.openNewTab(basePath + "dom/5247/issue5247.html", function(win)
- {
- FBTest.openFirebug();
- var panel = FBTest.selectPanel("stylesheet");
-
- if (FBTest.selectPanelLocationByName(panel, "issue5247.html"))
- {
- FBTest.executeContextMenuCommand(FW.Firebug.chrome.$("fbLocationList"),
- "InspectIndomPanel", function()
- {
- var panel = FBTest.getSelectedPanel();
- if (FBTest.compare("dom", panel.name, "DOM panel must be selected now"))
- {
- var props = panel.panelNode.getElementsByClassName("memberLabel");
- var prop;
-
- for (var i=0; i<props.length; i++)
- {
- if (props[i].textContent == "cssRules")
- {
- prop = props[i];
- break;
- }
- }
-
- var config = {tagName: "tr", classes: "memberRow ordinalRow", counter: 6};
- FBTest.waitForDisplayedElement("dom", config, function(row)
- {
- var cssRulesLabels = panel.panelNode.
- querySelectorAll(".memberRow.ordinalRow[level=\"1\"] .memberLabel");
- var cssRules = [];
- for (var i=0; i<cssRulesLabels.length; i++)
- {
- var cssRulesLabel = cssRulesLabels[i];
- cssRules.push(FW.FBL.getAncestorByClass(cssRulesLabel, "memberRow").
- getElementsByClassName("memberValueCell").item(0));
- }
-
- if (FBTest.compare(6, cssRules.length, "There must be 6 CSS rules"))
- {
- var expectedCSSRules =
- [
- "CSSCharsetRule utf-8",
- "CSSImportRule external/externalStylesheet.css",
- "CSSMediaRule (min-width: 500px) and (max-width: 700px)",
- "CSSFontFaceRule \"TitilliumMaps\"",
- "CSSKeyframesRule slidein",
- "CSSStyleRule #internalRule"
- ];
-
- // xxxsz: We don't check the tooltips yet
- for (var i=0; i<cssRules.length; i++)
- {
- FBTest.compare(expectedCSSRules[i], cssRules[i].textContent, (i+1)+
- ". rule must be '"+expectedCSSRules[i]+"'");
- }
- }
-
- FBTest.testDone("issue5247.DONE");
- });
-
- FBTest.click(prop);
- }
- });
- }
- else
- {
- FBTest.testDone("issue5247.DONE");
- }
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue5247.START");
+
+ FBTest.openNewTab(basePath + "dom/5247/issue5247.html", function(win)
+ {
+ FBTest.openFirebug();
+ var panel = FBTest.selectPanel("stylesheet");
+
+ if (FBTest.selectPanelLocationByName(panel, "issue5247.html"))
+ {
+ FBTest.executeContextMenuCommand(FW.Firebug.chrome.$("fbLocationList"),
+ "InspectIndomPanel", function()
+ {
+ var panel = FBTest.getSelectedPanel();
+ if (FBTest.compare("dom", panel.name, "DOM panel must be selected now"))
+ {
+ var props = panel.panelNode.getElementsByClassName("memberLabel");
+ var prop;
+
+ for (var i=0; i<props.length; i++)
+ {
+ if (props[i].textContent == "cssRules")
+ {
+ prop = props[i];
+ break;
+ }
+ }
+
+ var config = {tagName: "tr", classes: "memberRow ordinalRow", counter: 6};
+ FBTest.waitForDisplayedElement("dom", config, function(row)
+ {
+ var cssRulesLabels = panel.panelNode.
+ querySelectorAll(".memberRow.ordinalRow[level=\"1\"] .memberLabel");
+ var cssRules = [];
+ for (var i=0; i<cssRulesLabels.length; i++)
+ {
+ var cssRulesLabel = cssRulesLabels[i];
+ cssRules.push(FW.FBL.getAncestorByClass(cssRulesLabel, "memberRow").
+ getElementsByClassName("memberValueCell").item(0));
+ }
+
+ if (FBTest.compare(6, cssRules.length, "There must be 6 CSS rules"))
+ {
+ var expectedCSSRules =
+ [
+ "CSSCharsetRule utf-8",
+ "CSSImportRule external/externalStylesheet.css",
+ "CSSMediaRule (min-width: 500px) and (max-width: 700px)",
+ "CSSFontFaceRule \"TitilliumMaps\"",
+ "CSSKeyframesRule slidein",
+ "CSSStyleRule #internalRule"
+ ];
+
+ // xxxsz: We don't check the tooltips yet
+ for (var i=0; i<cssRules.length; i++)
+ {
+ FBTest.compare(expectedCSSRules[i], cssRules[i].textContent, (i+1)+
+ ". rule must be '"+expectedCSSRules[i]+"'");
+ }
+ }
+
+ FBTest.testDone("issue5247.DONE");
+ });
+
+ FBTest.click(prop);
+ }
+ });
+ }
+ else
+ {
+ FBTest.testDone("issue5247.DONE");
+ }
+ });
+}
View
66 tests/content/firebug/5349/issue5349.html
@@ -1,33 +1,33 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 5349: Context menu in select, radio, check, not work</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5349">Issue 5349</a>: Context menu in select, radio, check, not work</h1>
- </header>
- <div>
- <section id="content">
- <select id="selectbox">
- <option>Hello</option>
- <option>Firebug</option>
- <option>user!</option>
- </select>
- </section>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Right-click the selectbox above</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>The context menu should appear including the option <em>Inspect Element with Firebug</em></li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 5349: Context menu in select, radio, check, not work</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5349">Issue 5349</a>: Context menu in select, radio, check, not work</h1>
+ </header>
+ <div>
+ <section id="content">
+ <select id="selectbox">
+ <option>Hello</option>
+ <option>Firebug</option>
+ <option>user!</option>
+ </select>
+ </section>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Right-click the selectbox above</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>The context menu should appear including the option <em>Inspect Element with Firebug</em></li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
26 tests/content/firebug/5349/issue5349.js
@@ -1,13 +1,13 @@
-function runTest()
-{
- FBTest.sysout("issue5349.START");
-
- FBTest.openNewTab(basePath + "firebug/5349/issue5349.html", function(win)
- {
- var target = win.document.getElementById("selectbox");
- FBTest.executeContextMenuCommand(target, "menu_firebug_firebugInspect", function()
- {
- FBTest.testDone("issue5349.DONE");
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue5349.START");
+
+ FBTest.openNewTab(basePath + "firebug/5349/issue5349.html", function(win)
+ {
+ var target = win.document.getElementById("selectbox");
+ FBTest.executeContextMenuCommand(target, "menu_firebug_firebugInspect", function()
+ {
+ FBTest.testDone("issue5349.DONE");
+ });
+ });
+}
View
80 tests/content/html/3296/issue3296.html
@@ -1,40 +1,40 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 3296: Form's action doesn't change and it isn't shown in HTML panel</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- <script type="text/javascript">
- window.addEventListener("load", function()
- {
- document.getElementsByTagName("form").item(0).setAttribute("action", "issue3296.html");
- }, false);
- </script>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=3296">Issue 3296</a>: Form's action doesn't change and it isn't shown in HTML panel</h1>
- </header>
- <div>
- <section id="content">
- <form action="">
- <input type="text" id="formField"/>
- </form>
- </section>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Open Firebug</li>
- <li>Switch to the <em>HTML</em> panel</li>
- <li>Inspect the text field above (<code>#formField</code>)</li>
- <li>Reload the page</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li><code>issue3296.html</code> should be displayed as value for the <code>action</code> attribute of the <code>&lt;form&gt;</code> tag.</li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 3296: Form's action doesn't change and it isn't shown in HTML panel</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ <script type="text/javascript">
+ window.addEventListener("load", function()
+ {
+ document.getElementsByTagName("form").item(0).setAttribute("action", "issue3296.html");
+ }, false);
+ </script>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=3296">Issue 3296</a>: Form's action doesn't change and it isn't shown in HTML panel</h1>
+ </header>
+ <div>
+ <section id="content">
+ <form action="">
+ <input type="text" id="formField"/>
+ </form>
+ </section>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug</li>
+ <li>Switch to the <em>HTML</em> panel</li>
+ <li>Inspect the text field above (<code>#formField</code>)</li>
+ <li>Reload the page</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li><code>issue3296.html</code> should be displayed as value for the <code>action</code> attribute of the <code>&lt;form&gt;</code> tag.</li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
58 tests/content/html/3296/issue3296.js
@@ -1,29 +1,29 @@
-function runTest()
-{
- FBTest.sysout("issue3296.START");
-
- FBTest.openNewTab(basePath + "html/3296/issue3296.html", function(win)
- {
- FBTest.openFirebug();
- FBTest.selectPanel("html");
- var actionValue = "issue3296.html";
-
- FBTest.selectElementInHtmlPanel("formField", function(node)
- {
- FBTest.reload(function()
- {
- var parentElement = FW.FBL.getAncestorByClass(node.parentNode, "nodeBox");
- var attribute = parentElement.getElementsByClassName("nodeAttr").item(0);
- if (FBTest.compare("action",
- attribute.getElementsByClassName("nodeName").item(0).textContent,
- "Form tag must contain an 'action' attribute"))
- {
- FBTest.compare(actionValue,
- attribute.getElementsByClassName("nodeValue").item(0).textContent,
- "The value of the 'action' attribute must be '"+actionValue+"'")
- }
- FBTest.testDone("issue3296.DONE");
- });
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue3296.START");
+
+ FBTest.openNewTab(basePath + "html/3296/issue3296.html", function(win)
+ {
+ FBTest.openFirebug();
+ FBTest.selectPanel("html");
+ var actionValue = "issue3296.html";
+
+ FBTest.selectElementInHtmlPanel("formField", function(node)
+ {
+ FBTest.reload(function()
+ {
+ var parentElement = FW.FBL.getAncestorByClass(node.parentNode, "nodeBox");
+ var attribute = parentElement.getElementsByClassName("nodeAttr").item(0);
+ if (FBTest.compare("action",
+ attribute.getElementsByClassName("nodeName").item(0).textContent,
+ "Form tag must contain an 'action' attribute"))
+ {
+ FBTest.compare(actionValue,
+ attribute.getElementsByClassName("nodeValue").item(0).textContent,
+ "The value of the 'action' attribute must be '"+actionValue+"'")
+ }
+ FBTest.testDone("issue3296.DONE");
+ });
+ });
+ });
+}
View
60 tests/content/net/4805/issue4805.html
@@ -1,30 +1,30 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 4805: Distinguish or Highlight HTTPS protocol requests in Net panel</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=4805">Issue 4805</a>: Distinguish or Highlight HTTPS protocol requests in Net panel</h1>
- </header>
- <div>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Open Firebug</li>
- <li>Enable and switch to the <em>Net</em> panel</li>
- <li>Right-click the request list header and choose <em>Protocol</em> from the context menu</li>
- <li>Reload the page</li>
- </ol>
- <h3>Expected result</h3>
- <ul>
- <li>A <em>Protocol</em> column should be available</li>
- <li>The column should list the network protocol used for the request</li>
- </ul>
- </section>
- <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
- </div>
- </body>
-</html>
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Issue 4805: Distinguish or Highlight HTTPS protocol requests in Net panel</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
+ </head>
+ <body>
+ <header>
+ <h1><a href="http://code.google.com/p/fbug/issues/detail?id=4805">Issue 4805</a>: Distinguish or Highlight HTTPS protocol requests in Net panel</h1>
+ </header>
+ <div>
+ <section id="description">
+ <h3>Steps to reproduce</h3>
+ <ol>
+ <li>Open Firebug</li>
+ <li>Enable and switch to the <em>Net</em> panel</li>
+ <li>Right-click the request list header and choose <em>Protocol</em> from the context menu</li>
+ <li>Reload the page</li>
+ </ol>
+ <h3>Expected result</h3>
+ <ul>
+ <li>A <em>Protocol</em> column should be available</li>
+ <li>The column should list the network protocol used for the request</li>
+ </ul>
+ </section>
+ <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
+ </div>
+ </body>
+</html>
View
80 tests/content/net/4805/issue4805.js
@@ -1,40 +1,40 @@
-function runTest()
-{
- FBTest.sysout("issue4805.START");
-
- FBTest.openNewTab(basePath + "net/4805/issue4805.html", function(win)
- {
- FBTest.openFirebug();
-
- FBTest.enableNetPanel(function(win)
- {
- var panel = FBTest.selectPanel("net");
- var netPanelHeader = panel.panelNode.getElementsByClassName("netHeaderCell").item(0);
- FBTest.executeContextMenuCommand(netPanelHeader, {label: "Protocol"}, function()
- {
- panel.clear();
-
- var options =
- {
- tagName: "tr",
- classes: "netRow hasHeaders loaded",
- counter: 2
- };
-
- FBTest.waitForDisplayedElement("net", options, function(row)
- {
- var panelNode = FBTest.selectPanel("net").panelNode;
- var urls = panelNode.getElementsByClassName("netFullHrefLabel");
- var protocols = panelNode.getElementsByClassName("netProtocolLabel");
-
- for (var i=0; i<protocols.length; i++)
- FBTest.compare(urls[i].textContent.replace(/^(.*?):.*/, "$1"), protocols[i].textContent, "The protocol of the "+(i+1)+". request must be correctly displayed");
-
- FBTest.testDone("issue4805.DONE");
- });
-
- FBTest.reload();
- });
- });
- });
-}
+function runTest()
+{
+ FBTest.sysout("issue4805.START");
+
+ FBTest.openNewTab(basePath + "net/4805/issue4805.html", function(win)
+ {
+ FBTest.openFirebug();
+
+ FBTest.enableNetPanel(function(win)
+ {
+ var panel = FBTest.selectPanel("net");
+ var netPanelHeader = panel.panelNode.getElementsByClassName("netHeaderCell").item(0);
+ FBTest.executeContextMenuCommand(netPanelHeader, {label: "Protocol"}, function()
+ {
+ panel.clear();
+
+ var options =
+ {
+ tagName: "tr",
+ classes: "netRow hasHeaders loaded",
+ counter: 2
+ };
+
+ FBTest.waitForDisplayedElement("net", options, function(row)
+ {
+ var panelNode = FBTest.selectPanel("net").panelNode;
+ var urls = panelNode.getElementsByClassName("netFullHrefLabel");
+ var protocols = panelNode.getElementsByClassName("netProtocolLabel");
+
+ for (var i=0; i<protocols.length; i++)
+ FBTest.compare(urls[i].textContent.replace(/^(.*?):.*/, "$1"), protocols[i].textContent, "The protocol of the "+(i+1)+". request must be correctly displayed");
+
+ FBTest.testDone("issue4805.DONE");
+ });
+
+ FBTest.reload();
+ });
+ });
+ });
+}
View
66 tests/content/script/4724/issue4724.html
@@ -1,33 +1,33 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Issue 4724: &quot;Disable Breakpoint&quot; is not checked on disabled breakpoints</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
- <script type="text/javascript">
- var test = "Hello Firebug user!";
- </script>
- </head>
- <body>
- <header>
- <h1><a href="http://code.google.com/p/fbug/issues/detail?id=4724">Issue 4724</a>: &quot;Disable Breakpoint&quot; is not checked on disabled breakpoints</h1>
- </header>
- <div>
- <section id="description">
- <h3>Steps to reproduce</h3>
- <ol>
- <li>Open Firebug</li>
- <li>Enable and switch to the <em>Script</em> panel</li>
- <li>Reload the page</li>
- <li>Click the breakpoint column at line 8 (<code>var test = "Hello Firebug user!";</code>) to create a breakpoint</li>
- <li>Right-click line 8</li>
- </ol>