Closed
Bug 377696
Opened 18 years ago
Closed 18 years ago
general.xml cleanup
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: enndeakin, Assigned: enndeakin)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 3 obsolete files)
15.45 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
4.36 KB,
patch
|
Details | Diff | Splinter Review | |
2.02 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
- setters should return values
- statusbarpanel should use image not src property
Assignee | ||
Comment 1•18 years ago
|
||
Assignee | ||
Updated•18 years ago
|
Target Milestone: --- → mozilla1.9beta2
Assignee | ||
Comment 2•18 years ago
|
||
Attachment #261852 -
Attachment is obsolete: true
Attachment #275116 -
Flags: review?(mano)
Comment 3•18 years ago
|
||
Index: toolkit/content/tests/widgets/test_statusbar.xul
===================================================================
RCS file: toolkit/content/tests/widgets/test_statusbar.xul
diff -N toolkit/content/tests/widgets/test_statusbar.xul
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ toolkit/content/tests/widgets/test_statusbar.xul 3 Aug 2007 14:23:41 -0000
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
+<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
+<!--
+ XUL Widget Test for statusbar
+ -->
+<window title="Statusbar Test"
+oncommand="alert('aa');"
?
Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #3)
> Index: toolkit/content/tests/widgets/test_statusbar.xul
> ===================================================================
> RCS file: toolkit/content/tests/widgets/test_statusbar.xul
> diff -N toolkit/content/tests/widgets/test_statusbar.xul
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ toolkit/content/tests/widgets/test_statusbar.xul 3 Aug 2007 14:23:41
> -0000
> @@ -0,0 +1,42 @@
> +<?xml version="1.0"?>
> +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
> +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
> type="text/css"?>
> +<!--
> + XUL Widget Test for statusbar
> + -->
> +<window title="Statusbar Test"
> +oncommand="alert('aa');"
>
> ?
>
Oops, I'll remove that.
Comment 5•18 years ago
|
||
Comment on attachment 275116 [details] [diff] [review]
include tests
+ <xul:image .. xbl:inherits="image,image=src"/>
explain this again please.
r=mano otherwise.
Attachment #275116 -
Flags: review?(mano) → review+
Assignee | ||
Comment 6•18 years ago
|
||
> + <xul:image .. xbl:inherits="image,image=src"/>
>
> explain this again please.
The image attribute is the right attribute to use, yet I still allow src for backwards compatibility.
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 7•18 years ago
|
||
This turned qm-winxp01 red:
*** 39101 INFO Running /tests/toolkit/content/tests/widgets/test_deck.xul...
...
<a href="#tbend">
<p class="error">buildbot.slave.commands.TimeoutError: SIGKILL failed to kill process</p>
</a>
Comment 8•18 years ago
|
||
This broke numerous extensions using an icon in the statusbar
Comment 9•18 years ago
|
||
(In reply to comment #6)
> > + <xul:image .. xbl:inherits="image,image=src"/>
> >
> > explain this again please.
>
> The image attribute is the right attribute to use, yet I still allow src for
> backwards compatibility.
But you're removing the property, which is inconsistent and a little bit confusing. I'd support both the attribute and the property or remove them altogether (and I think I prefer the latter.)
Updated•18 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Version: unspecified → Trunk
(In reply to comment #7)
> This turned qm-winxp01 red:
Could the problem be that chrome mochitests were put into _tests/testing/mochitest/tests/ instead of _tests/testing/mochitest/chrome/ ?
... or that the tests shouldn't be chrome mochitests, but should instead use relative paths to load SimpleTest.js, etc.?
Comment 12•18 years ago
|
||
Comment 13•18 years ago
|
||
Checking in test_deck.xul;
/cvsroot/mozilla/toolkit/content/tests/widgets/test_deck.xul,v <-- test_deck.xul
new revision: 1.2; previous revision: 1.1
done
Checking in test_props.xul;
/cvsroot/mozilla/toolkit/content/tests/widgets/test_props.xul,v <-- test_props.xul
new revision: 1.2; previous revision: 1.1
done
Checking in test_statusbar.xul;
/cvsroot/mozilla/toolkit/content/tests/widgets/test_statusbar.xul,v <-- test_statusbar.xul
new revision: 1.2; previous revision: 1.1
done
Comment 14•18 years ago
|
||
Attachment #279348 -
Attachment is obsolete: true
Updated•18 years ago
|
Attachment #279349 -
Attachment is patch: true
Attachment #279349 -
Attachment mime type: application/octet-stream → text/plain
Attachment #279349 -
Flags: approval-thunderbird2?
Updated•18 years ago
|
Attachment #279349 -
Flags: approval-thunderbird2?
Assignee | ||
Comment 15•18 years ago
|
||
Attachment #279591 -
Flags: review?(mano)
Comment 16•18 years ago
|
||
Comment on attachment 279591 [details] [diff] [review]
yeah, didn't want to remove the src property
> function test_statusbar()
> {
> var panel = $("panel");
> ok(panel.label, "OK", "statusbarpanel label");
> ok(panel.image, "happy.png", "statusbarpanel image");
>+ panel.src = "sad.png";
>+ ok(panel.src, "sad.png", "statusbarpanel set src");
Hm, I'm not familiar with the testing frameworks ... doesn't this succeed no matter if panel supports that property?
Assignee | ||
Comment 17•18 years ago
|
||
(In reply to comment #16)
> >+ panel.src = "sad.png";
> >+ ok(panel.src, "sad.png", "statusbarpanel set src");
>
> Hm, I'm not familiar with the testing frameworks ... doesn't this succeed no
> matter if panel supports that property?
>
True, I'll add a second attribute check as well.
Assignee | ||
Comment 18•18 years ago
|
||
Attachment #279591 -
Attachment is obsolete: true
Attachment #279592 -
Flags: review?(mano)
Attachment #279591 -
Flags: review?(mano)
Comment 19•18 years ago
|
||
Comment on attachment 279592 [details] [diff] [review]
add attribute test
r=mano
Attachment #279592 -
Flags: review?(mano) → review+
Comment 21•18 years ago
|
||
(In reply to comment #8)
> This broke numerous extensions using an icon in the statusbar
>
So was this supposed to be backwards compatible or not? Stylish's status bar icon doesn't work with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007090701 Minefield/3.0a8pre
The code is:
<statusbarpanel id="stylish-panel" src="chrome://stylish/skin/smallicon.png" class="statusbarpanel-menu-iconic" tooltiptext="Stylish" onclick="stylishCommonOverlay.handleStatusClick(event)">(In reply to comment #8)
Comment 22•18 years ago
|
||
(In reply to comment #21)
> Stylish's status bar icon doesn't work with Mozilla/5.0 (X11; U; Linux i686;
> en-US; rv:1.9a8pre) Gecko/2007090701 Minefield/3.0a8pre
That's bug 395099.
Depends on: 395099
You need to log in
before you can comment on or make changes to this bug.
Description
•