Closed Bug 640957 Opened 15 years ago Closed 14 years ago

Write tests for thumbnail generation

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wesj, Assigned: wesj)

Details

Attachments

(1 file, 1 obsolete file)

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: nobody → wjohnston
Flags: in-testsuite?
Attached patch Simple Tests (obsolete) — Splinter Review
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 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-
Attached patch Patch v2Splinter Review
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 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+
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.

Attachment

General

Created:
Updated:
Size: