Closed Bug 377696 Opened 18 years ago Closed 18 years ago

general.xml cleanup

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta1

People

(Reporter: enndeakin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 3 obsolete files)

- setters should return values - statusbarpanel should use image not src property
Blocks: 377253
Attached patch cleanup (obsolete) — Splinter Review
Target Milestone: --- → mozilla1.9beta2
Attached patch include testsSplinter Review
Attachment #261852 - Attachment is obsolete: true
Attachment #275116 - Flags: review?(mano)
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');" ?
(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 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+
> + <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.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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>
This broke numerous extensions using an icon in the statusbar
(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.)
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.?
Attached patch fix bustage (obsolete) — Splinter Review
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
Attached patch oopsSplinter Review
Attachment #279348 - Attachment is obsolete: true
Attachment #279349 - Attachment is patch: true
Attachment #279349 - Attachment mime type: application/octet-stream → text/plain
Attachment #279349 - Flags: approval-thunderbird2?
Attachment #279349 - Flags: approval-thunderbird2?
Attachment #279591 - Flags: review?(mano)
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?
(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.
Attachment #279591 - Attachment is obsolete: true
Attachment #279592 - Flags: review?(mano)
Attachment #279591 - Flags: review?(mano)
Comment on attachment 279592 [details] [diff] [review] add attribute test r=mano
Attachment #279592 - Flags: review?(mano) → review+
Checked in the last patch.
Flags: in-testsuite+
(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)
(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.

Attachment

General

Creator:
Created:
Updated:
Size: