Closed
Bug 640957
Opened 15 years ago
Closed 14 years ago
Write tests for thumbnail generation
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wesj, Assigned: wesj)
Details
Attachments
(1 file, 1 obsolete file)
|
6.16 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
We keep running into problems where thumbnails are drawn at sizes bigger than the browser, causing corruption to show up. We need tests to make sure we don't regress this again.
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → wjohnston
Updated•15 years ago
|
Flags: in-testsuite?
| Assignee | ||
Comment 1•15 years ago
|
||
These tests just check that when the call to draw thumbnail's occurs, the widths and heights given are within the bounds of the current browser's contentDocument. Most of the test cases are just stolen from the viewport tests.
Upated patch in bug 640768 required in order for these to pass.
Attachment #519489 -
Flags: review?(mark.finkle)
Comment 2•15 years ago
|
||
Comment on attachment 519489 [details] [diff] [review]
Simple Tests
The resizeTo() code in secondPass will only work on desktop. Normally, if the entire tests depended on running on desktop, I'd recommend putting a preproc test in the makefil, like browser_sidebars.js, but in this case, some of the test will work on a device.
Maybe you could check SysInfo to see what the "device" is. If null, it's desktop and you can play with resizeTo.
You could also preproc the test file and "make" it work both ways.
Looks good but lets get a new patch that handles desktop vs device
Attachment #519489 -
Flags: review?(mark.finkle) → review-
| Assignee | ||
Comment 3•15 years ago
|
||
Updated to check for a device using sysInfo. If not null, it will only run the tests in the current orientation.
Attachment #519489 -
Attachment is obsolete: true
Attachment #521554 -
Flags: review?(mark.finkle)
Comment 4•15 years ago
|
||
Comment on attachment 521554 [details] [diff] [review]
Patch v2
We can sue this approach for now. If it causes trouble, we can switch to a processed approach.
Attachment #521554 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
| Assignee | ||
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•