Closed Bug 99633 Opened 24 years ago Closed 24 years ago

printing regression tests ask for a printer

Categories

(Core :: Layout: Tables, defect)

x86
Other
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: bernd_mozilla, Assigned: rods)

References

Details

(Whiteboard: [PDT+])

Attachments

(1 file, 1 obsolete file)

with a current CVS under win98 if I run rtest baseline in the table/printing directory it creates only rgd files for the first two files and ask's for a printer at file:///s|/mozilla/layout/html/tests/table/printing/bug54829.html. If I dismiss the dialog it stalles.
Attached patch hack to ease the pain (obsolete) — Splinter Review
This is a hack as usual, the problem is that we start a print job even if we are in regression tests. Further in DoPrint we check for the regression output, but this is already to late as we started already a print job.
taking the bug
Assignee: dcone → bernd.mielke
*** Bug 102763 has been marked as a duplicate of this bug. ***
Attachment #50387 - Attachment is obsolete: true
r=rods for the patch
Actually now that I think of it, shouldn't we also skip the EndDocument call and there is a file pointer?
OnEndPrinting(NS_OK); // removes listener >>>> NS_ASSERTION(0!=0, "gotcha"); if (mPrintPS) { mPrintDC->EndDocument(); #ifdef DEBUG_PRINTING fprintf(mDebugFD, "****************** End Document ************************\n"); #endif } I added an assertion its never called during regression tests so it looks that the patch is sufficient
Comment on attachment 51854 [details] [diff] [review] should use NS_OK instead of '0' and it includes a small debug fix for me. sr=attinasi
Attachment #51854 - Flags: superreview+
Comment on attachment 51854 [details] [diff] [review] should use NS_OK instead of '0' and it includes a small debug fix for me. r=karnaze
Attachment #51854 - Flags: review+
Adding nsbranch keyword, since printing regression testing is mandatory prior to layout checkins.
Severity: normal → critical
Keywords: nsbranch
Target Milestone: --- → mozilla0.9.6
Marking nsbranch+. Needed to make printing regression tests work.
Keywords: nsbranchnsbranch+
Marking [PDT] for tracking.
Whiteboard: [PDT]
fix checked in into trunk, reassigning the bug to rods, as I do not build branch
Assignee: bernd.mielke → rods
This looks like a candidate for the branch. Can we talk about it in the PDT today?
pls check this into the branch - PDT+
Whiteboard: [PDT] → [PDT+]
checked into the branch
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
can someone verify this bug.. I do not have a debug build on win98.. Thanks
bernd.mielke@snafu.de (Bernd Mielke) - can you help to verify this? Thank you.
I got a debug build and ran the regression tests(rtests) in the directory /mozilla/layout/html/tests/table/printing.. It did create all the baselines for all the testcases in that directory but finally it gave an asserstion "NS_ENSURE_TRUE() in file \mozilla\docshell\base\nsWebShell.cpp But I think this is different form this bug Marking verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: