Closed
Bug 374050
Opened 18 years ago
Closed 18 years ago
Add printing test mode to reftests
Categories
(Core :: Printing: Output, defect)
Core
Printing: Output
Tracking
()
RESOLVED
FIXED
People
(Reporter: sharparrow1, Assigned: sharparrow1)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
12.92 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
Per description; I have a patch almost finished.
Not sure what component this should go in... whatever.
Assignee | ||
Comment 1•18 years ago
|
||
I'll admit this patch not especially pretty, but I think it's worthwhile because the functionality is needed.
Note that this isn't a perfect clone of what you'd get from print preview, but it's good enough to test pagination.
I got rid of the headers/footers because they could cause false positives. The page size is small so that pagination can be tested without lots of repetitions.
Attachment #258658 -
Flags: review?(roc)
Comment on attachment 258658 [details] [diff] [review]
Patch
cool!
Attachment #258658 -
Flags: superreview+
Attachment #258658 -
Flags: review?(roc)
Attachment #258658 -
Flags: review+
It would be nice if we had a way to run existing tests in print mode as well. But not lots of tests would fail in print mode, and many of those probably are expected failures. I'm not sure what direction we want to take with print-mode reftests in the long term.
Assignee | ||
Comment 4•18 years ago
|
||
Checked in. (hope it doesn't break the tree)
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 5•18 years ago
|
||
Is there a followup bug on dealing with that #if 0 hunk (and the "I'm leaving this in a broken state" comment)?
Comment 6•17 years ago
|
||
(In reply to comment #5)
> Is there a followup bug on dealing with that #if 0 hunk (and the "I'm leaving
> this in a broken state" comment)?
I couldn't find one so I filed bug 402399.
This bug broke printing a selection on Linux and MacOSX, bug 402264.
Comment 7•17 years ago
|
||
I just tried using this, and ran into a problem: I have no way to tell what the actual printable area (available height) of the page is, so I can't create a reference for my test...
Is there something I'm missing? Or should we be setting some margins to 0 or some such? I tried setting ps.margin* and ps.edge* to 0, but I see nothing that actually _reads_ the marginTop value, say, on Mac.
Updated•17 years ago
|
OS: Windows XP → All
Hardware: PC → All
You need to log in
before you can comment on or make changes to this bug.
Description
•