Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…s clicked- is fixed
  • Loading branch information...
commit f109552818672e5a017ecf22a6bf02a2f7c54565 1 parent e85aea1
Farshid Beheshti authored August 09, 2012 SebastianZ committed August 09, 2012

Showing 42 changed files with 3,578 additions and 3,575 deletions. Show diff stats Hide diff stats

  1. 11  extension/content/firebug/html/htmlPanel.js
  2. 14  extension/locale/en-US/firebug-amo.properties
  3. 198  extension/locale/en-US/firebug-tracing.properties
  4. 3,328  extension/locale/en-US/firebug.properties
  5. 26  extension/skin/classic/migrationArrow.svg
  6. 58  tests/content/commandLine/5130/issue5130.html
  7. 44  tests/content/commandLine/5130/issue5130.js
  8. 92  tests/content/console/2271/issue2271.html
  9. 68  tests/content/console/3042/issue3042.html
  10. 76  tests/content/console/3042/issue3042.js
  11. 62  tests/content/cookies/general/cookiesPanel.html
  12. 28  tests/content/css/2967/issue2967.js
  13. 106  tests/content/css/2967/issue2967.xml
  14. 108  tests/content/css/3303/issue3303.html
  15. 142  tests/content/css/3303/issue3303.js
  16. 100  tests/content/css/5438/issue5438.html
  17. 88  tests/content/css/5438/issue5438.js
  18. 82  tests/content/css/5461/issue5461.html
  19. 84  tests/content/css/5461/issue5461.js
  20. 66  tests/content/css/computed/5451/issue5451.html
  21. 40  tests/content/css/computed/5451/issue5451.js
  22. 4  tests/content/dom/5247/external/externalStylesheet.css
  23. 172  tests/content/dom/5247/issue5247.html
  24. 150  tests/content/dom/5247/issue5247.js
  25. 66  tests/content/firebug/5349/issue5349.html
  26. 26  tests/content/firebug/5349/issue5349.js
  27. 80  tests/content/html/3296/issue3296.html
  28. 58  tests/content/html/3296/issue3296.js
  29. 60  tests/content/net/4805/issue4805.html
  30. 80  tests/content/net/4805/issue4805.js
  31. 66  tests/content/script/4724/issue4724.html
  32. 118  tests/content/script/4724/issue4724.js
  33. 136  tests/templates/default/issueXXXX.html
  34. 50  tests/templates/default/issueXXXX.js
  35. 170  tests/templates/default/issueXXXXSeveralCases.html
  36. 96  tests/templates/default/issueXXXXSeveralCases.js
  37. 284  tests/templates/default/testcase.css
  38. 122  tests/templates/firebugLite/issueXXXX.html
  39. 360  tests/templates/firebugLite/testcase.css
  40. 168  tests/templates/net/issueXXXX.html
  41. 60  tests/templates/net/issueXXXX.js
  42. 6  tests/templates/net/issueXXXX.php
11  extension/content/firebug/html/htmlPanel.js
@@ -2268,14 +2268,17 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
2268 2268
     {
2269 2269
         if (value == "")
2270 2270
             return value;
2271  
-
2272 2271
         var element = Firebug.getRepObject(target);
2273 2272
         if (element && element instanceof window.Element)
2274 2273
         {
2275  
-            var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
2276  
-            return element.getAttribute(attributeName);
  2274
+            // If object that was clicked to edit was
  2275
+            // attribute value, not attribute name.
  2276
+            if (Css.hasClass(target, "nodeValue"))
  2277
+            {
  2278
+                var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
  2279
+                return element.getAttribute(attributeName);
  2280
+            }
2277 2281
         }
2278  
-
2279 2282
         return value;
2280 2283
     }
2281 2284
 });
14  extension/locale/en-US/firebug-amo.properties
... ...
@@ -1,7 +1,7 @@
1  
-# LOCALIZATION NOTE (firebug.amo.summary, firebug.amo.description, firebug.amo.developer.comments):
2  
-# These texts are used on Mozilla Add-on site: https://addons.mozilla.org/en-US/firefox/addon/1843
3  
-# They are not direct part of Firebug extension and so, you can't see them in Firebug's UI.
4  
-# Note that firebug.amo.summary must not exceed 250 characters (limitation by AMO site)
5  
-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.
6  
-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
7  
-firebug.amo.developer.comments=If you have any problems, please read the FireBug FAQ.\n\nhttp://getfirebug.com/faq.html
  1
+# LOCALIZATION NOTE (firebug.amo.summary, firebug.amo.description, firebug.amo.developer.comments):
  2
+# These texts are used on Mozilla Add-on site: https://addons.mozilla.org/en-US/firefox/addon/1843
  3
+# They are not direct part of Firebug extension and so, you can't see them in Firebug's UI.
  4
+# Note that firebug.amo.summary must not exceed 250 characters (limitation by AMO site)
  5
+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.
  6
+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
  7
+firebug.amo.developer.comments=If you have any problems, please read the FireBug FAQ.\n\nhttp://getfirebug.com/faq.html
198  extension/locale/en-US/firebug-tracing.properties
... ...
@@ -1,100 +1,100 @@
1  
-# LOCALIZATION NOTE (Open_Firebug_Tracing, Always_Open_Firebug_Tracing):
2  
-# Firebug tracing console menu items (located in Firebug's menu).
3  
-Open_Firebug_Tracing=Open Firebug Tracing
4  
-Always_Open_Firebug_Tracing=Always Open Firebug Tracing
5  
-
6  
-# LOCALIZATION NOTE (title.Tracing): Title for Firebug tracing console window (verb).
7  
-title.Tracing=Tracing
8  
-
9  
-tracing.Show_Scope_Variables=Show Scope Variables
10  
-tracing.Show_Time=Show Time
11  
-tracing.tab.Stack=Stack
12  
-tracing.tab.Exception=Exception
13  
-tracing.tab.Properties=Properties
14  
-tracing.tab.Scope=Scope
15  
-tracing.tab.Response=Response
16  
-tracing.tab.Source=Source
17  
-tracing.tab.Interfaces=Interfaces
18  
-tracing.tab.Object=Object
19  
-tracing.tab.Event=Event
20  
-tracing.cmd.Clear=Clear
21  
-tracing.cmd.tip.Clear=Remove All Messages
22  
-tracing.cmd.Find=Find
23  
-tracing.cmd.tip.Find=Find Text
24  
-tracing.cmd.Bookmark=Bookmark
25  
-tracing.cmd.tip.Bookmark=Insert Bookmark
26  
-tracing.cmd.Restart=Restart Firefox
27  
-tracing.cmd.tip.Restart=Restart Firefox
28  
-tracing.cmd.Exit=Exit Firefox
29  
-tracing.cmd.tip.Exit=Exit Firefox
30  
-tracing.cmd.Save=Save to File
31  
-tracing.cmd.tip.Save=Save logs into a file
32  
-tracing.cmd.Load=Load from File
33  
-tracing.cmd.tip.Load=Load logs from a file
34  
-tracing.cmd.Expand_All=Expand All
35  
-tracing.cmd.Collapse_All=Collapse All
36  
-tracing.cmd.Tools=Tools
37  
-tracing.cmd.tip.Tools=Tools
38  
-tracing.cmd.Clear_Browser_Cache=Clear Browser Cache
39  
-tracing.cmd.tip.Clear_Browser_Cache=Clear Browser Cache
40  
-tracing.cmd.Force_Garbage_Collector=Force Garbage Collector
41  
-tracing.cmd.tip.Force_Garbage_Collector=Force Garbage Collector
42  
-tracing.cmd.Open_Profile_Directory=Open Profile Directory
43  
-tracing.cmd.tip.Open_Profile_Directory=Open Profile Directory
44  
-tracing.option.A11Y_Description=Accessibility issues
45  
-tracing.option.ACTIVATION_Description=Firebug activation
46  
-tracing.option.ACTIVITYOBSERVER_Description=Firebug activity observer
47  
-tracing.option.ANNOTATIONS_Description=Firebug website annotation
48  
-tracing.option.BP_Description=Breakpoints
49  
-tracing.option.CACHE_Description=Source cache
50  
-tracing.option.COMMANDLINE_Description=Command Line & Command Line Popup
51  
-tracing.option.COMPILATION_UNITS_Description=Script compilation units
52  
-tracing.option.CONSOLE_Description=Console Panel
53  
-tracing.option.CSS_Description=CSS parsing
54  
-
55  
-tracing.option.DISPATCH_Description=Event dispatching
56  
-tracing.option.DOM_Description=DOM
57  
-tracing.option.DOMPLATE_Description=Domplate creation
58  
-tracing.option.EDITOR_Description=Inline Editor & Autocompleter
59  
-tracing.option.ERRORLOG_Description=Error log of JS, CSS, XML etc.
60  
-tracing.option.ERRORS_Description=Internal Firebug errors
61  
-tracing.option.EVAL_Description=Script evaluation
62  
-tracing.option.FBS_BP_Description=Firebug service breakpoints
63  
-tracing.option.FBS_CREATION_Description=Firebug service script creation
64  
-tracing.option.FBS_ERRORS_Description=Firebug service errors
65  
-
66  
-tracing.option.FBS_FINDDEBUGGER_Description=Firebug service find debugger
67  
-
68  
-tracing.option.FBS_FUNCTION_Description=Firebug service function
69  
-tracing.option.FBS_JSDCONTEXT_Description=Firebug service JavaScript Debugger context
70  
-tracing.option.FBS_SRCUNITS_Description=Firebug service source units
71  
-tracing.option.FBS_STEP_Description=Firebug service JavaScript Debugger stepping
72  
-tracing.option.FBS_TRACKFILES_Description=Firebug service tracked files
73  
-tracing.option.FUNCTION_NAMES_Description=JavaScript function names
74  
-tracing.option.HISTORY_Description=Firebug Navigation History
75  
-tracing.option.HTML_Description=HTML
76  
-tracing.option.HTTPOBSERVER_Description=HTTP request observer
77  
-tracing.option.INFOTIP_Description=Infotip
78  
-tracing.option.INITIALIZE_Description=Firebug initialization
79  
-tracing.option.INSPECT_Description=Inspector
80  
-tracing.option.JSONVIEWER_Description=JSON viewer
81  
-tracing.option.LINETABLE_Description=Script line table
82  
-tracing.option.LOCALE_Description=Localization
83  
-tracing.option.LOCATIONS_Description=Source locations
84  
-
85  
-tracing.option.NET_Description=Net Panel
86  
-tracing.option.NET_EVENTS_Description=Network events
87  
-tracing.option.OPTIONS_Description=Firebug preferences
88  
-tracing.option.PANELS_Description=Panels
89  
-tracing.option.SHORTCUTS_Description=Keyboard shortcuts
90  
-tracing.option.SOURCEFILES_Description=JavaScript source files
91  
-tracing.option.SPY_Description=XMLHttpRequests observer
92  
-tracing.option.STACK_Description=JavaScript call stack
93  
-tracing.option.STORAGE_Description=Settings storage
94  
-tracing.option.SVGVIEWER_Description=SVG viewer
95  
-tracing.option.FONTS_Description=Fonts information and font viewer
96  
-tracing.option.TOOLTIP_Description=Start Button tooltip
97  
-tracing.option.TOPLEVEL_Description=Top level JavaScript
98  
-tracing.option.UI_LOOP_Description=JavaScript debugging user interface
99  
-tracing.option.WINDOWS_Description=Firebug windows & Tab Watcher
  1
+# LOCALIZATION NOTE (Open_Firebug_Tracing, Always_Open_Firebug_Tracing):
  2
+# Firebug tracing console menu items (located in Firebug's menu).
  3
+Open_Firebug_Tracing=Open Firebug Tracing
  4
+Always_Open_Firebug_Tracing=Always Open Firebug Tracing
  5
+
  6
+# LOCALIZATION NOTE (title.Tracing): Title for Firebug tracing console window (verb).
  7
+title.Tracing=Tracing
  8
+
  9
+tracing.Show_Scope_Variables=Show Scope Variables
  10
+tracing.Show_Time=Show Time
  11
+tracing.tab.Stack=Stack
  12
+tracing.tab.Exception=Exception
  13
+tracing.tab.Properties=Properties
  14
+tracing.tab.Scope=Scope
  15
+tracing.tab.Response=Response
  16
+tracing.tab.Source=Source
  17
+tracing.tab.Interfaces=Interfaces
  18
+tracing.tab.Object=Object
  19
+tracing.tab.Event=Event
  20
+tracing.cmd.Clear=Clear
  21
+tracing.cmd.tip.Clear=Remove All Messages
  22
+tracing.cmd.Find=Find
  23
+tracing.cmd.tip.Find=Find Text
  24
+tracing.cmd.Bookmark=Bookmark
  25
+tracing.cmd.tip.Bookmark=Insert Bookmark
  26
+tracing.cmd.Restart=Restart Firefox
  27
+tracing.cmd.tip.Restart=Restart Firefox
  28
+tracing.cmd.Exit=Exit Firefox
  29
+tracing.cmd.tip.Exit=Exit Firefox
  30
+tracing.cmd.Save=Save to File
  31
+tracing.cmd.tip.Save=Save logs into a file
  32
+tracing.cmd.Load=Load from File
  33
+tracing.cmd.tip.Load=Load logs from a file
  34
+tracing.cmd.Expand_All=Expand All
  35
+tracing.cmd.Collapse_All=Collapse All
  36
+tracing.cmd.Tools=Tools
  37
+tracing.cmd.tip.Tools=Tools
  38
+tracing.cmd.Clear_Browser_Cache=Clear Browser Cache
  39
+tracing.cmd.tip.Clear_Browser_Cache=Clear Browser Cache
  40
+tracing.cmd.Force_Garbage_Collector=Force Garbage Collector
  41
+tracing.cmd.tip.Force_Garbage_Collector=Force Garbage Collector
  42
+tracing.cmd.Open_Profile_Directory=Open Profile Directory
  43
+tracing.cmd.tip.Open_Profile_Directory=Open Profile Directory
  44
+tracing.option.A11Y_Description=Accessibility issues
  45
+tracing.option.ACTIVATION_Description=Firebug activation
  46
+tracing.option.ACTIVITYOBSERVER_Description=Firebug activity observer
  47
+tracing.option.ANNOTATIONS_Description=Firebug website annotation
  48
+tracing.option.BP_Description=Breakpoints
  49
+tracing.option.CACHE_Description=Source cache
  50
+tracing.option.COMMANDLINE_Description=Command Line & Command Line Popup
  51
+tracing.option.COMPILATION_UNITS_Description=Script compilation units
  52
+tracing.option.CONSOLE_Description=Console Panel
  53
+tracing.option.CSS_Description=CSS parsing
  54
+
  55
+tracing.option.DISPATCH_Description=Event dispatching
  56
+tracing.option.DOM_Description=DOM
  57
+tracing.option.DOMPLATE_Description=Domplate creation
  58
+tracing.option.EDITOR_Description=Inline Editor & Autocompleter
  59
+tracing.option.ERRORLOG_Description=Error log of JS, CSS, XML etc.
  60
+tracing.option.ERRORS_Description=Internal Firebug errors
  61
+tracing.option.EVAL_Description=Script evaluation
  62
+tracing.option.FBS_BP_Description=Firebug service breakpoints
  63
+tracing.option.FBS_CREATION_Description=Firebug service script creation
  64
+tracing.option.FBS_ERRORS_Description=Firebug service errors
  65
+
  66
+tracing.option.FBS_FINDDEBUGGER_Description=Firebug service find debugger
  67
+
  68
+tracing.option.FBS_FUNCTION_Description=Firebug service function
  69
+tracing.option.FBS_JSDCONTEXT_Description=Firebug service JavaScript Debugger context
  70
+tracing.option.FBS_SRCUNITS_Description=Firebug service source units
  71
+tracing.option.FBS_STEP_Description=Firebug service JavaScript Debugger stepping
  72
+tracing.option.FBS_TRACKFILES_Description=Firebug service tracked files
  73
+tracing.option.FUNCTION_NAMES_Description=JavaScript function names
  74
+tracing.option.HISTORY_Description=Firebug Navigation History
  75
+tracing.option.HTML_Description=HTML
  76
+tracing.option.HTTPOBSERVER_Description=HTTP request observer
  77
+tracing.option.INFOTIP_Description=Infotip
  78
+tracing.option.INITIALIZE_Description=Firebug initialization
  79
+tracing.option.INSPECT_Description=Inspector
  80
+tracing.option.JSONVIEWER_Description=JSON viewer
  81
+tracing.option.LINETABLE_Description=Script line table
  82
+tracing.option.LOCALE_Description=Localization
  83
+tracing.option.LOCATIONS_Description=Source locations
  84
+
  85
+tracing.option.NET_Description=Net Panel
  86
+tracing.option.NET_EVENTS_Description=Network events
  87
+tracing.option.OPTIONS_Description=Firebug preferences
  88
+tracing.option.PANELS_Description=Panels
  89
+tracing.option.SHORTCUTS_Description=Keyboard shortcuts
  90
+tracing.option.SOURCEFILES_Description=JavaScript source files
  91
+tracing.option.SPY_Description=XMLHttpRequests observer
  92
+tracing.option.STACK_Description=JavaScript call stack
  93
+tracing.option.STORAGE_Description=Settings storage
  94
+tracing.option.SVGVIEWER_Description=SVG viewer
  95
+tracing.option.FONTS_Description=Fonts information and font viewer
  96
+tracing.option.TOOLTIP_Description=Start Button tooltip
  97
+tracing.option.TOPLEVEL_Description=Top level JavaScript
  98
+tracing.option.UI_LOOP_Description=JavaScript debugging user interface
  99
+tracing.option.WINDOWS_Description=Firebug windows & Tab Watcher
100 100
 tracing.option.XMLVIEWER_Description=XML viewer
3,328  extension/locale/en-US/firebug.properties
1664 additions, 1664 deletions not shown
26  extension/skin/classic/migrationArrow.svg
... ...
@@ -1,14 +1,14 @@
1  
-<svg  xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
2  
-     <defs>
3  
-          <marker id="Triangle"
4  
-            viewBox="0 0 10 10" refX="3" refY="5"
5  
-            markerUnits="strokeWidth"
6  
-            markerWidth="3" markerHeight="3"
7  
-            style="stroke:#FF9933;"
8  
-            orient="auto">
9  
-            <path d="M 0 0 L 10 5 L 0 10 z" />
10  
-            </marker>
11  
-     </defs>
12  
-     <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)"/>
13  
-
  1
+<svg  xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
  2
+     <defs>
  3
+          <marker id="Triangle"
  4
+            viewBox="0 0 10 10" refX="3" refY="5"
  5
+            markerUnits="strokeWidth"
  6
+            markerWidth="3" markerHeight="3"
  7
+            style="stroke:#FF9933;"
  8
+            orient="auto">
  9
+            <path d="M 0 0 L 10 5 L 0 10 z" />
  10
+            </marker>
  11
+     </defs>
  12
+     <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)"/>
  13
+
14 14
 </svg>
58  tests/content/commandLine/5130/issue5130.html
... ...
@@ -1,29 +1,29 @@
1  
-<!DOCTYPE html>
2  
-<html>
3  
-<head>
4  
-    <title>Issue 5130: Array indices are sorted alphabetically instead of numerically</title>
5  
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6  
-    <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
7  
-</head>
8  
-<body>
9  
-<header>
10  
-    <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5130">Issue 5130</a>:
11  
-        Array indices are sorted alphabetically instead of numerically</h1>
12  
-</header>
13  
-<div>
14  
-    <section id="description">
15  
-        <h3>Steps to reproduce</h3>
16  
-        <ol>
17  
-            <li>Select and enable the Console panel</li>
18  
-            <li>Execute following expression in the command line:<br/>
19  
-                <code style="color:green">console.dir([0,1,2,3,4,5,6,7,8,9,10]);</code>
20  
-            </li>
21  
-            <li>The output should be sorted according to the index (not alphabetically).</li>
22  
-        </ol>
23  
-    </section>
24  
-    <footer>
25  
-        Jan Odvarko &lt;odvarko@gmail.com&gt;
26  
-    </footer>
27  
-</div>
28  
-</body>
29  
-</html>
  1
+<!DOCTYPE html>
  2
+<html>
  3
+<head>
  4
+    <title>Issue 5130: Array indices are sorted alphabetically instead of numerically</title>
  5
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6
+    <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
  7
+</head>
  8
+<body>
  9
+<header>
  10
+    <h1><a href="http://code.google.com/p/fbug/issues/detail?id=5130">Issue 5130</a>:
  11
+        Array indices are sorted alphabetically instead of numerically</h1>
  12
+</header>
  13
+<div>
  14
+    <section id="description">
  15
+        <h3>Steps to reproduce</h3>
  16
+        <ol>
  17
+            <li>Select and enable the Console panel</li>
  18
+            <li>Execute following expression in the command line:<br/>
  19
+                <code style="color:green">console.dir([0,1,2,3,4,5,6,7,8,9,10]);</code>
  20
+            </li>
  21
+            <li>The output should be sorted according to the index (not alphabetically).</li>
  22
+        </ol>
  23
+    </section>
  24
+    <footer>
  25
+        Jan Odvarko &lt;odvarko@gmail.com&gt;
  26
+    </footer>
  27
+</div>
  28
+</body>
  29
+</html>
44  tests/content/commandLine/5130/issue5130.js
... ...
@@ -1,22 +1,22 @@
1  
-function runTest()
2  
-{
3  
-    FBTest.sysout("issue5130.START");
4  
-    FBTest.openNewTab(basePath + "commandLine/5130/issue5130.html", function(win)
5  
-    {
6  
-        FBTest.openFirebug();
7  
-        FBTest.clearCache();
8  
-        FBTest.enableConsolePanel(function(win)
9  
-        {
10  
-            var tasks = new FBTest.TaskList();
11  
-
12  
-            var expr = "console.dir([0,1,2,3,4,5,6,7,8,9,10]);";
13  
-            var expected = /\s*00\s*11\s*22\s*33\s*44\s*55\s*66\s*77\s*88\s*99\s*1010/;
14  
-            tasks.push(FBTest.executeCommandAndVerify, expr, expected,
15  
-                "div", "logRow logRow-dir");
16  
-
17  
-            tasks.run(function() {
18  
-                FBTest.testDone("issue5130.DONE");
19  
-            });
20  
-        });
21  
-    });
22  
-}
  1
+function runTest()
  2
+{
  3
+    FBTest.sysout("issue5130.START");
  4
+    FBTest.openNewTab(basePath + "commandLine/5130/issue5130.html", function(win)
  5
+    {
  6
+        FBTest.openFirebug();
  7
+        FBTest.clearCache();
  8
+        FBTest.enableConsolePanel(function(win)
  9
+        {
  10
+            var tasks = new FBTest.TaskList();
  11
+
  12
+            var expr = "console.dir([0,1,2,3,4,5,6,7,8,9,10]);";
  13
+            var expected = /\s*00\s*11\s*22\s*33\s*44\s*55\s*66\s*77\s*88\s*99\s*1010/;
  14
+            tasks.push(FBTest.executeCommandAndVerify, expr, expected,
  15
+                "div", "logRow logRow-dir");
  16
+
  17
+            tasks.run(function() {
  18
+                FBTest.testDone("issue5130.DONE");
  19
+            });
  20
+        });
  21
+    });
  22
+}
92  tests/content/console/2271/issue2271.html
... ...
@@ -1,49 +1,49 @@
1  
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2  
-<html>
3  
-<head>
4  
-  <title>Test Case for Issue #2271</title>
5  
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6  
-</head>
7  
-<body>
8  
-
9  
-<h1>Issue #2271</h1>
10  
-
11  
-<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2271">Issue #2271</a>
12  
-- <span class="h3">JS errors in AJAX callback functions are not shown</span>.
13  
-<br/>
14  
-<i>Jan Odvarko, odvarko@gmail.com</i>
15  
-</p>
16  
-
17  
-<ol>
18  
-<li>Open Firebug and enable the Console panel. Make sure the <i>Show XMLHttpRequests</i> option is on.</li>
19  
-<li>Click on the <code>Execute Test</code> button below.</li>
20  
-<li>See Firefox Error Console. There should be following error:</li>
21  
-<code style="color:red">Error: document.getElementId is not a function<br/>
22  
-Source File: http://legoas/firebug/tests/2271/issue2271.html
23  
-Line: 35</code>
24  
-<li>See also Firebug's Console panel. The error should also be there.</li>
25  
-<li>If the error isn't there -> BUG</li>
26  
-</ol>
27  
-
  1
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2
+<html>
  3
+<head>
  4
+  <title>Test Case for Issue #2271</title>
  5
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6
+</head>
  7
+<body>
  8
+
  9
+<h1>Issue #2271</h1>
  10
+
  11
+<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=2271">Issue #2271</a>
  12
+- <span class="h3">JS errors in AJAX callback functions are not shown</span>.
  13
+<br/>
  14
+<i>Jan Odvarko, odvarko@gmail.com</i>
  15
+</p>
  16
+
  17
+<ol>
  18
+<li>Open Firebug and enable the Console panel. Make sure the <i>Show XMLHttpRequests</i> option is on.</li>
  19
+<li>Click on the <code>Execute Test</code> button below.</li>
  20
+<li>See Firefox Error Console. There should be following error:</li>
  21
+<code style="color:red">Error: document.getElementId is not a function<br/>
  22
+Source File: http://legoas/firebug/tests/2271/issue2271.html
  23
+Line: 35</code>
  24
+<li>See also Firebug's Console panel. The error should also be there.</li>
  25
+<li>If the error isn't there -> BUG</li>
  26
+</ol>
  27
+
28 28
 <button id="testButton" onclick="onExecuteTest()">Execute Test</button>
29 29
 
30  
-<script type="text/javascript">
31  
-function onExecuteTest()
32  
-{
33  
-    var request = new XMLHttpRequest();
34  
-    request.open("GET", "issue2271.php", true);
35  
-
36  
-    request.onreadystatechange = function()
37  
-    {
38  
-        if (request.readyState == 4 && request.status == 200)
39  
-        {
40  
-            document.getElementId("something").innerText = request.responseText;
41  
-        }
42  
-    }
43  
-
44  
-    request.send(null);
45  
-}
46  
-</script>
  30
+<script type="text/javascript">
  31
+function onExecuteTest()
  32
+{
  33
+    var request = new XMLHttpRequest();
  34
+    request.open("GET", "issue2271.php", true);
  35
+
  36
+    request.onreadystatechange = function()
  37
+    {
  38
+        if (request.readyState == 4 && request.status == 200)
  39
+        {
  40
+            document.getElementId("something").innerText = request.responseText;
  41
+        }
  42
+    }
  43
+
  44
+    request.send(null);
  45
+}
  46
+</script>
47 47
   
48  
-</body>
49  
-</html>
  48
+</body>
  49
+</html>
68  tests/content/console/3042/issue3042.html
... ...
@@ -1,34 +1,34 @@
1  
-<!DOCTYPE html>
2  
-<html>
3  
-    <head>
4  
-        <title>Issue 3042: Show syntax error position like in error console of Firefox</title>
5  
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6  
-        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
7  
-        <script type="text/javascript">
8  
-        window.addEventListener("load", function()
9  
-        {
10  
-            var incorrectVarDef = {hello: "Hello Firebug user!"; issueNo: 3042};
11  
-        }, false);
12  
-        </script>
13  
-    </head>
14  
-    <body>
15  
-        <header>
16  
-            <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>
17  
-        </header>
18  
-        <div>
19  
-            <section id="description">
20  
-                <h3>Steps to reproduce</h3>
21  
-                <ol>
22  
-                    <li>Open Firebug</li>
23  
-                    <li>Enable and switch to the <em>Console</em> panel</li>
24  
-                    <li>Reload the page</li>
25  
-                </ol>
26  
-                <h3>Expected result</h3>
27  
-                <ul>
28  
-                    <li>A syntax error should be listed inside the console having an indicator for the column where the error occurred</li>
29  
-                </ul>
30  
-            </section>
31  
-            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
32  
-        </div>
33  
-    </body>
34  
-</html>
  1
+<!DOCTYPE html>
  2
+<html>
  3
+    <head>
  4
+        <title>Issue 3042: Show syntax error position like in error console of Firefox</title>
  5
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6
+        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
  7
+        <script type="text/javascript">
  8
+        window.addEventListener("load", function()
  9
+        {
  10
+            var incorrectVarDef = {hello: "Hello Firebug user!"; issueNo: 3042};
  11
+        }, false);
  12
+        </script>
  13
+    </head>
  14
+    <body>
  15
+        <header>
  16
+            <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>
  17
+        </header>
  18
+        <div>
  19
+            <section id="description">
  20
+                <h3>Steps to reproduce</h3>
  21
+                <ol>
  22
+                    <li>Open Firebug</li>
  23
+                    <li>Enable and switch to the <em>Console</em> panel</li>
  24
+                    <li>Reload the page</li>
  25
+                </ol>
  26
+                <h3>Expected result</h3>
  27
+                <ul>
  28
+                    <li>A syntax error should be listed inside the console having an indicator for the column where the error occurred</li>
  29
+                </ul>
  30
+            </section>
  31
+            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
  32
+        </div>
  33
+    </body>
  34
+</html>
76  tests/content/console/3042/issue3042.js
... ...
@@ -1,38 +1,38 @@
1  
-function runTest()
2  
-{
3  
-    FBTest.sysout("issue3042.START");
4  
-
5  
-    FBTest.openNewTab(basePath + "console/3042/issue3042.html", function(win)
6  
-    {
7  
-        FBTest.openFirebug();
8  
-        FBTest.selectPanel("console");
9  
-
10  
-        FBTest.enableConsolePanel(function(win)
11  
-        {
12  
-            var config = {
13  
-                tagName: "div",
14  
-                classes: "logRow logRow-errorMessage"
15  
-            };
16  
-
17  
-            FBTest.waitForDisplayedElement("console", config, function(row)
18  
-            {
19  
-                var errorIndicatorLeftPart = row.getElementsByClassName("errorColPosition");
20  
-                if (FBTest.compare(1, errorIndicatorLeftPart.length,
21  
-                    "There must be an error indicator"))
22  
-                {
23  
-                    FBTest.compare("---------------------------------------------------",
24  
-                        errorIndicatorLeftPart.item(0).textContent,
25  
-                        "The left part of the error indicator must be shown as dashes");
26  
-                   var errorIndicatorRightPart = errorIndicatorLeftPart.item(0).parentNode.
27  
-                       getElementsByClassName("errorColCaret").item(0);
28  
-                   var backgroundImage = win.getComputedStyle(errorIndicatorRightPart, "").
29  
-                       getPropertyValue("background-image");
30  
-                   FBTest.compare("url(\"chrome://firebug/skin/console-error-caret.png\")",
31  
-                       backgroundImage, "The right part of the error indicator must be shown as an arrow");
32  
-
33  
-                   FBTest.testDone("issue3042.DONE");
34  
-                }
35  
-            });
36  
-        });
37  
-    });
38  
-}
  1
+function runTest()
  2
+{
  3
+    FBTest.sysout("issue3042.START");
  4
+
  5
+    FBTest.openNewTab(basePath + "console/3042/issue3042.html", function(win)
  6
+    {
  7
+        FBTest.openFirebug();
  8
+        FBTest.selectPanel("console");
  9
+
  10
+        FBTest.enableConsolePanel(function(win)
  11
+        {
  12
+            var config = {
  13
+                tagName: "div",
  14
+                classes: "logRow logRow-errorMessage"
  15
+            };
  16
+
  17
+            FBTest.waitForDisplayedElement("console", config, function(row)
  18
+            {
  19
+                var errorIndicatorLeftPart = row.getElementsByClassName("errorColPosition");
  20
+                if (FBTest.compare(1, errorIndicatorLeftPart.length,
  21
+                    "There must be an error indicator"))
  22
+                {
  23
+                    FBTest.compare("---------------------------------------------------",
  24
+                        errorIndicatorLeftPart.item(0).textContent,
  25
+                        "The left part of the error indicator must be shown as dashes");
  26
+                   var errorIndicatorRightPart = errorIndicatorLeftPart.item(0).parentNode.
  27
+                       getElementsByClassName("errorColCaret").item(0);
  28
+                   var backgroundImage = win.getComputedStyle(errorIndicatorRightPart, "").
  29
+                       getPropertyValue("background-image");
  30
+                   FBTest.compare("url(\"chrome://firebug/skin/console-error-caret.png\")",
  31
+                       backgroundImage, "The right part of the error indicator must be shown as an arrow");
  32
+
  33
+                   FBTest.testDone("issue3042.DONE");
  34
+                }
  35
+            });
  36
+        });
  37
+    });
  38
+}
62  tests/content/cookies/general/cookiesPanel.html
... ...
@@ -1,31 +1,31 @@
1  
-<!DOCTYPE html>
2  
-<html>
3  
-    <head>
4  
-        <title>Cookie Panel</title>
5  
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6  
-        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
7  
-    </head>
8  
-    <body>
9  
-        <header>
10  
-            <h1>Cookie Panel</h1>
11  
-        </header>
12  
-        <div>
13  
-            <section id="description">
14  
-                <h3>Steps to reproduce</h3>
15  
-                <ol>
16  
-                    <li>
17  
-                        Open Firebug<br/>
18  
-                        <span class="ok">&rArr; There must be a <em>Cookies</em> panel</span>
19  
-                    </li>
20  
-                    <li>Enable and switch to the <em>Cookies panel</em></li>
21  
-                    <li>Refresh the page</li>
22  
-                </ol>
23  
-                <h3>Expected result</h3>
24  
-                <ul>
25  
-                    <li>The <em>Cookies</em> panel must exist and work</li>
26  
-                </ul>
27  
-            </section>
28  
-            <footer>Jan Odvarko, odvarko@gmail.com</footer>
29  
-        </div>
30  
-    </body>
31  
-</html>
  1
+<!DOCTYPE html>
  2
+<html>
  3
+    <head>
  4
+        <title>Cookie Panel</title>
  5
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6
+        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
  7
+    </head>
  8
+    <body>
  9
+        <header>
  10
+            <h1>Cookie Panel</h1>
  11
+        </header>
  12
+        <div>
  13
+            <section id="description">
  14
+                <h3>Steps to reproduce</h3>
  15
+                <ol>
  16
+                    <li>
  17
+                        Open Firebug<br/>
  18
+                        <span class="ok">&rArr; There must be a <em>Cookies</em> panel</span>
  19
+                    </li>
  20
+                    <li>Enable and switch to the <em>Cookies panel</em></li>
  21
+                    <li>Refresh the page</li>
  22
+                </ol>
  23
+                <h3>Expected result</h3>
  24
+                <ul>
  25
+                    <li>The <em>Cookies</em> panel must exist and work</li>
  26
+                </ul>
  27
+            </section>
  28
+            <footer>Jan Odvarko, odvarko@gmail.com</footer>
  29
+        </div>
  30
+    </body>
  31
+</html>
28  tests/content/css/2967/issue2967.js
... ...
@@ -1,15 +1,15 @@
1  
-function runTest()
2  
-{
3  
-    FBTest.sysout("issue2967.START");
4  
-
5  
-    FBTest.openNewTab(basePath + "css/2967/issue2967.xml", function(win)
6  
-    {
7  
-        FBTest.openFirebug();
8  
-        var panel = FBTest.selectPanel("stylesheet");
9  
-
10  
-        if (FBTest.ok(FBTest.selectPanelLocationByName(panel, "issue2967.xml"), "The CSS Location Menu should contain an entry for 'issue2967.xml'"))
11  
-            FBTest.compare(/#rect\s*\{\s*fill:\s*url\("#linearGradient"\)\s*#000000;\s*\}/, panel.panelNode.textContent, "The panel should contain one SVG CSS rule");
12  
-
13  
-        FBTest.testDone("issue2967.DONE");
14  
-   });
  1
+function runTest()
  2
+{
  3
+    FBTest.sysout("issue2967.START");
  4
+
  5
+    FBTest.openNewTab(basePath + "css/2967/issue2967.xml", function(win)
  6
+    {
  7
+        FBTest.openFirebug();
  8
+        var panel = FBTest.selectPanel("stylesheet");
  9
+
  10
+        if (FBTest.ok(FBTest.selectPanelLocationByName(panel, "issue2967.xml"), "The CSS Location Menu should contain an entry for 'issue2967.xml'"))
  11
+            FBTest.compare(/#rect\s*\{\s*fill:\s*url\("#linearGradient"\)\s*#000000;\s*\}/, panel.panelNode.textContent, "The panel should contain one SVG CSS rule");
  12
+
  13
+        FBTest.testDone("issue2967.DONE");
  14
+   });
15 15
 }
106  tests/content/css/2967/issue2967.xml
... ...
@@ -1,53 +1,53 @@
1  
-<?xml version="1.0"?>
2  
-<!DOCTYPE html [
3  
-  <!ENTITY rArr "⇒">
4  
-]>
5  
-<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6  
-    <head>
7  
-        <title>Issue 2967: CSS on in SVG placed in a mixed XHTML+SVG document does not show up on CSS tab</title>
8  
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
9  
-        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
10  
-    </head>
11  
-    <body>
12  
-        <header>
13  
-            <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>
14  
-        </header>
15  
-        <div>
16  
-            <section id="content">
17  
-                <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100" id="rect">
18  
-                    <style type="text/css">
19  
-                    #rect {
20  
-                        fill: url(#linearGradient) #000000;
21  
-                    }
22  
-                    </style>
23  
-                    <linearGradient id="linearGradient" x1="100" y1="100" x2="0" y2="0" gradientUnits="userSpaceOnUse">
24  
-                        <stop style="stop-color: #788cff;" offset="0"/>
25  
-                        <stop style="stop-color: #b4c8ff;" offset="1"/>
26  
-                    </linearGradient>
27  
-                    <rect width="100" height="100" x="0" y="0" id="rect"/>
28  
-                </svg>
29  
-            </section>
30  
-            <section id="description">
31  
-                <h3>Steps to reproduce</h3>
32  
-                <ol>
33  
-                    <li>Open Firebug</li>
34  
-                    <li>Switch to the <em>CSS</em> panel</li>
35  
-                    <li>
36  
-                        Open the CSS Location Menu<br/>
37  
-                        <span class="ok">&rArr; There should be an entry <em>issue2967.xml</em></span>
38  
-                    </li>
39  
-                    <li>
40  
-                        Select that entry<br/>
41  
-                        <span class="ok">&rArr; The SVG stylesheet inside <em>issue2967.xml</em> should be shown inside the CSS panel</span>
42  
-                    </li>
43  
-                    <li>Select that entry</li>
44  
-                </ol>
45  
-                <h3>Expected result</h3>
46  
-                <ul>
47  
-                    <li>The <em>CSS</em> panel should be able to handle CSS of SVGs embedded into XHTML files</li>
48  
-                </ul>
49  
-            </section>
50  
-            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
51  
-        </div>
52  
-    </body>
53  
-</html>
  1
+<?xml version="1.0"?>
  2
+<!DOCTYPE html [
  3
+  <!ENTITY rArr "⇒">
  4
+]>
  5
+<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  6
+    <head>
  7
+        <title>Issue 2967: CSS on in SVG placed in a mixed XHTML+SVG document does not show up on CSS tab</title>
  8
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  9
+        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
  10
+    </head>
  11
+    <body>
  12
+        <header>
  13
+            <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>
  14
+        </header>
  15
+        <div>
  16
+            <section id="content">
  17
+                <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100" id="rect">
  18
+                    <style type="text/css">
  19
+                    #rect {
  20
+                        fill: url(#linearGradient) #000000;
  21
+                    }
  22
+                    </style>
  23
+                    <linearGradient id="linearGradient" x1="100" y1="100" x2="0" y2="0" gradientUnits="userSpaceOnUse">
  24
+                        <stop style="stop-color: #788cff;" offset="0"/>
  25
+                        <stop style="stop-color: #b4c8ff;" offset="1"/>
  26
+                    </linearGradient>
  27
+                    <rect width="100" height="100" x="0" y="0" id="rect"/>
  28
+                </svg>
  29
+            </section>
  30
+            <section id="description">
  31
+                <h3>Steps to reproduce</h3>
  32
+                <ol>
  33
+                    <li>Open Firebug</li>
  34
+                    <li>Switch to the <em>CSS</em> panel</li>
  35
+                    <li>
  36
+                        Open the CSS Location Menu<br/>
  37
+                        <span class="ok">&rArr; There should be an entry <em>issue2967.xml</em></span>
  38
+                    </li>
  39
+                    <li>
  40
+                        Select that entry<br/>
  41
+                        <span class="ok">&rArr; The SVG stylesheet inside <em>issue2967.xml</em> should be shown inside the CSS panel</span>
  42
+                    </li>
  43
+                    <li>Select that entry</li>
  44
+                </ol>
  45
+                <h3>Expected result</h3>
  46
+                <ul>
  47
+                    <li>The <em>CSS</em> panel should be able to handle CSS of SVGs embedded into XHTML files</li>
  48
+                </ul>
  49
+            </section>
  50
+            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
  51
+        </div>
  52
+    </body>
  53
+</html>
108  tests/content/css/3303/issue3303.html
... ...
@@ -1,54 +1,54 @@
1  
-<!DOCTYPE html>
2  
-<html>
3  
-    <head>
4  
-        <title>Issue 3303: Up/Down key working incorrectly for fonts when editing CSS</title>
5  
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6  
-        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
7  
-        <style type="text/css">
8  
-        #font {
9  
-            font-family: Arial, serif;
10  
-        }
11  
-        </style>
12  
-    </head>
13  
-    <body>
14  
-        <header>
15  
-            <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>
16  
-        </header>
17  
-        <div>
18  
-            <section id="content">
19  
-              <p id="font">Hello Firebug user!</p>
20  
-            </section>
21  
-            <section id="description">
22  
-                <h3>Steps to reproduce</h3>
23  
-                <ol>
24  
-                    <li>Open Firebug</li>
25  
-                    <li>Switch to the <em>HTML</em> panel and there to the <em>Style</em> side panel</li>
26  
-                    <li>Inspect the paragraph above (<code>#font</code>)</li>
27  
-                    <li>Click on the value of the <code>font-family</code> property inside the <code>#font</code> rule</li>
28  
-                    <li>Set the text cursor between the <code>A</code> and the <code>l</code> of <code>Arial</code></li>
29  
-                    <li>
30  
-                        Press <code class="key">Down</code> until you reach a font with spaces in it<br/>
31  
-                        <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>
32  
-                    </li>
33  
-                    <li>
34  
-                        Press <code class="key">Down</code> until you reach a font without spaces in it<br/>
35  
-                        <span class="ok">The value should now be something like <code>&lt;fontwithoutspaces&gt;,serif</code> with the font without spaces being selected</span>
36  
-                    </li>
37  
-                    <li>
38  
-                        Press <code class="key">Up</code> until you reach the font with spaces again<br/>
39  
-                        <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>
40  
-                    </li>
41  
-                    <li>
42  
-                        Press <code class="key">Up</code> until you reach <code>Arial</code> again<br/>
43  
-                        <span class="ok">The value should now be <code>Arial,serif</code> again with <code>Arial</code> being selected</span>
44  
-                    </li>
45  
-                </ol>
46  
-                <h3>Expected result</h3>
47  
-                <ul>
48  
-                    <li>Auto-completion should work correctly on space-separated font names when pressing <code class="key">Up</code>/<code class="key">Down</code></li>
49  
-                </ul>
50  
-            </section>
51  
-            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
52  
-        </div>
53  
-    </body>
54  
-</html>
  1
+<!DOCTYPE html>
  2
+<html>
  3
+    <head>
  4
+        <title>Issue 3303: Up/Down key working incorrectly for fonts when editing CSS</title>
  5
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  6
+        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
  7
+        <style type="text/css">
  8
+        #font {
  9
+            font-family: Arial, serif;
  10
+        }
  11
+        </style>
  12
+    </head>
  13
+    <body>
  14
+        <header>
  15
+            <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>
  16
+        </header>
  17
+        <div>
  18
+            <section id="content">
  19
+              <p id="font">Hello Firebug user!</p>
  20
+            </section>
  21
+            <section id="description">
  22
+                <h3>Steps to reproduce</h3>
  23
+                <ol>
  24
+                    <li>Open Firebug</li>
  25
+                    <li>Switch to the <em>HTML</em> panel and there to the <em>Style</em> side panel</li>
  26
+                    <li>Inspect the paragraph above (<code>#font</code>)</li>
  27
+                    <li>Click on the value of the <code>font-family</code> property inside the <code>#font</code> rule</li>
  28
+                    <li>Set the text cursor between the <code>A</code> and the <code>l</code> of <code>Arial</code></li>
  29
+                    <li>
  30
+                        Press <code class="key">Down</code> until you reach a font with spaces in it<br/>
  31
+                        <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>
  32
+                    </li>
  33
+                    <li>
  34
+                        Press <code class="key">Down</code> until you reach a font without spaces in it<br/>
  35
+                        <span class="ok">The value should now be something like <code>&lt;fontwithoutspaces&gt;,serif</code> with the font without spaces being selected</span>
  36
+                    </li>
  37
+                    <li>
  38
+                        Press <code class="key">Up</code> until you reach the font with spaces again<br/>
  39
+                        <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>
  40
+                    </li>
  41
+                    <li>
  42
+                        Press <code class="key">Up</code> until you reach <code>Arial</code> again<br/>
  43
+                        <span class="ok">The value should now be <code>Arial,serif</code> again with <code>Arial</code> being selected</span>
  44
+                    </li>
  45
+                </ol>
  46
+                <h3>Expected result</h3>
  47
+                <ul>
  48
+                    <li>Auto-completion should work correctly on space-separated font names when pressing <code class="key">Up</code>/<code class="key">Down</code></li>
  49
+                </ul>
  50
+            </section>
  51
+            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
  52
+        </div>
  53
+    </body>
  54
+</html>
142  tests/content/css/3303/issue3303.js
... ...
@@ -1,71 +1,71 @@
1  
-function runTest()
2  
-{
3  
-    FBTest.sysout("issue3303.START");
4  
-
5  
-    FBTest.openNewTab(basePath + "css/3303/issue3303.html", function(win)
6  
-    {
7  
-        FBTest.openFirebug();
8  
-        FBTest.selectPanel("html");
9  
-
10  
-        FBTest.selectElementInHtmlPanel("font", function(node)
11  
-        {
12  
-            const MAX_TIMES = 30;
13  
-            var panel = FBTest.selectSidePanel("css");
14  
-            var values = panel.panelNode.querySelectorAll(".cssPropValue");
15  
-
16  
-            // Click the CSS value of the height property to open the inline editor
17  
-            FBTest.synthesizeMouse(values[0]);
18  
-
19  
-            var editor = panel.panelNode.querySelector(".textEditorInner");
20  
-
21  
-            // Press 'Down' until a font with spaces is reached
22  
-            i = 0;
23  
-            do {
24  
-                FBTest.sendShortcut("VK_DOWN");
25  
-            } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
26  
-
27  
-            if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
28  
-            {
29  
-                var firstFont = editor.value.match(/.*?(?=,)/)[0];
30  
-                FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
31  
-            }
32  
-
33  
-            // Press 'Down' until a font without spaces is reached
34  
-            i = 0;
35  
-            do {
36  
-                FBTest.sendShortcut("VK_DOWN");
37  
-            } while(editor.value.search(" ") != -1 && ++i < MAX_TIMES);
38  
-
39  
-            if (FBTest.compare(/^\S+$/, editor.value, "Property value must contain a font without spaces now"))
40  
-            {
41  
-                var firstFont = editor.value.match(/.*?(?=,)/)[0];
42  
-                FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
43  
-            }
44  
-
45  
-            // Press 'Up' until a font with spaces is reached
46  
-            i = 0;
47  
-            do {
48  
-                FBTest.sendShortcut("VK_UP");
49  
-            } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
50  
-
51  
-            if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
52  
-            {
53  
-                var firstFont = editor.value.match(/.*?(?=,)/)[0];
54  
-                FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
55  
-            }
56  
-
57  
-            // Press 'Up' until 'Arial' is reached again
58  
-            i = 0;
59  
-            do {
60  
-                FBTest.sendShortcut("VK_UP");
61  
-            } while(editor.value.search("Arial") == -1 && ++i < MAX_TIMES);
62  
-
63  
-            if (FBTest.compare(/Arial/, editor.value, "Property value must contain 'Arial' now"))
64  
-            {
65  
-                FBTest.compare("Arial", editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
66  
-            }
67  
-
68  
-            FBTest.testDone("issue3303.DONE");
69  
-        });
70  
-    });
71  
-}
  1
+function runTest()
  2
+{
  3
+    FBTest.sysout("issue3303.START");
  4
+
  5
+    FBTest.openNewTab(basePath + "css/3303/issue3303.html", function(win)
  6
+    {
  7
+        FBTest.openFirebug();
  8
+        FBTest.selectPanel("html");
  9
+
  10
+        FBTest.selectElementInHtmlPanel("font", function(node)
  11
+        {
  12
+            const MAX_TIMES = 30;
  13
+            var panel = FBTest.selectSidePanel("css");
  14
+            var values = panel.panelNode.querySelectorAll(".cssPropValue");
  15
+
  16
+            // Click the CSS value of the height property to open the inline editor
  17
+            FBTest.synthesizeMouse(values[0]);
  18
+
  19
+            var editor = panel.panelNode.querySelector(".textEditorInner");
  20
+
  21
+            // Press 'Down' until a font with spaces is reached
  22
+            i = 0;
  23
+            do {
  24
+                FBTest.sendShortcut("VK_DOWN");
  25
+            } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
  26
+
  27
+            if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
  28
+            {
  29
+                var firstFont = editor.value.match(/.*?(?=,)/)[0];
  30
+                FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
  31
+            }
  32
+
  33
+            // Press 'Down' until a font without spaces is reached
  34
+            i = 0;
  35
+            do {
  36
+                FBTest.sendShortcut("VK_DOWN");
  37
+            } while(editor.value.search(" ") != -1 && ++i < MAX_TIMES);
  38
+
  39
+            if (FBTest.compare(/^\S+$/, editor.value, "Property value must contain a font without spaces now"))
  40
+            {
  41
+                var firstFont = editor.value.match(/.*?(?=,)/)[0];
  42
+                FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
  43
+            }
  44
+
  45
+            // Press 'Up' until a font with spaces is reached
  46
+            i = 0;
  47
+            do {
  48
+                FBTest.sendShortcut("VK_UP");
  49
+            } while(editor.value.search(" ") == -1 && ++i < MAX_TIMES);
  50
+
  51
+            if (FBTest.compare(/ /, editor.value, "Property value must contain a font with spaces now"))
  52
+            {
  53
+                var firstFont = editor.value.match(/.*?(?=,)/)[0];
  54
+                FBTest.compare(firstFont, editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
  55
+            }
  56
+
  57
+            // Press 'Up' until 'Arial' is reached again
  58
+            i = 0;
  59
+            do {
  60
+                FBTest.sendShortcut("VK_UP");
  61
+            } while(editor.value.search("Arial") == -1 && ++i < MAX_TIMES);
  62
+
  63
+            if (FBTest.compare(/Arial/, editor.value, "Property value must contain 'Arial' now"))
  64
+            {
  65
+                FBTest.compare("Arial", editor.value.substring(editor.selectionStart, editor.selectionEnd), "The selection must extend up to the comma");
  66
+            }
  67
+
  68
+            FBTest.testDone("issue3303.DONE");
  69
+        });
  70
+    });
  71
+}
</