Closed
Bug 418175
Opened 16 years ago
Closed 16 years ago
popup attribute test fails if context menu is too big
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
People
(Reporter: ajschult784, Assigned: ajschult784)
Details
Attachments
(3 files, 2 obsolete files)
24.41 KB,
image/png
|
Details | |
4.26 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
598 bytes,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
One on of my boxes, the native theme seems to space the context menu items out a lot and then context menu in test_popup_attribute is too tall to fit in the bottom half of the window (see attached screenshot). This causes failures on multiple parts of the test. The simple solution is to make the window taller. 620px is sufficient for me, but perhaps it ought to be 700px or something to ensure it works in cases where other things (large system font perhaps) cause similar problems. The other solution would be to have the window resize itself based on the size of the popup.
Assignee | ||
Comment 1•16 years ago
|
||
this from a point where the popup should be below
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #303965 -
Flags: review?(enndeakin)
Assignee | ||
Comment 3•16 years ago
|
||
popup_button needs the same fix. I also made the margins bigger to recenter the text/button.
Attachment #303965 -
Attachment is obsolete: true
Attachment #304160 -
Flags: review?(enndeakin)
Attachment #303965 -
Flags: review?(enndeakin)
Comment 4•16 years ago
|
||
Comment on attachment 304160 [details] [diff] [review] fix test_popup_button too This is the patch for some other bug.
Attachment #304160 -
Flags: review?(enndeakin) → review-
Assignee | ||
Comment 5•16 years ago
|
||
Attachment #304160 -
Attachment is obsolete: true
Attachment #304245 -
Flags: review?(enndeakin)
Comment 6•16 years ago
|
||
Comment on attachment 304245 [details] [diff] [review] the right patch Looks OK, but you will probably want to check if any of the test machines are running on a resolution 1024x768 or less. It's possible that the screen height minus the taskbar/menubar/etc + and window titlebar are less than 700 and would cause this to fail.
Attachment #304245 -
Flags: review?(enndeakin) → review+
Comment 7•16 years ago
|
||
The Windows test boxes are a little weird, in that the desktop inherits the properties of the RDP client that last connected to them (see: my headaches in bug 405384 and bug 414720). It would probably be best to add an explicit check to |screen.width| and/or |screen.height|, and fail if you're below the minimum size. At least then the reason for the test failure will be obvious, after when someone (inevitably) connects at 640x400.
Assignee | ||
Comment 8•16 years ago
|
||
OK, I landed the patch as-is and the tinderboxen didn't have a problem with it. I'd be happy to add checks for resolution, although I'm not sure a) what min resolution to check for b) how to warn the user and/or get something into the logs about.
Comment 9•16 years ago
|
||
I'd say: 1. Just pick a resolution that's known to work to start with. 2. Treat a lower resolution as a test failure. I'd expect the effect of #2 to be that you'd see an error about needing a larger resolution, and then you'd see errors about the popup tests failing (because the screen really is too small). Bonus points for trying the tests with your desktop at a couple different resolutions, to confirm that 800x600 or whatever is really too small. The check doesn't need to be precise to the exact dimension that starts to cause a failure.
Assignee | ||
Comment 10•16 years ago
|
||
For me, the popup attribute tests pass at 1024x768 and fails at 800x600.
Attachment #305124 -
Flags: review?(enndeakin)
Updated•16 years ago
|
Attachment #305124 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 11•16 years ago
|
||
OK, resolution check is in too
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•