Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2010-07-15 Shinichiro Hamaji <hamaji@chromium.org>
Reviewed by Darin Adler. Printing test results differ between machines, we should use ImageDiff instead https://bugs.webkit.org/show_bug.cgi?id=20011 Added printing/setPrinting.html to check there is the page boundary. Enabled printing/composite-layer-printing.html with setPrinting. The result of printing/media-queries-print.html shrunk because of PrintingMinimumShrinkFactor in PrintContext::begin(). * platform/mac/Skipped: * platform/mac/printing/compositing-layer-printing-expected.checksum: Added. * platform/mac/printing/compositing-layer-printing-expected.png: Added. * platform/mac/printing/compositing-layer-printing-expected.txt: Added. * platform/mac/printing/media-queries-print-expected.checksum: * platform/mac/printing/media-queries-print-expected.png: * platform/mac/printing/setPrinting-expected.checksum: Added. * platform/mac/printing/setPrinting-expected.png: Added. * platform/mac/printing/setPrinting-expected.txt: Added. * printing/compositing-layer-printing.html: * printing/setPrinting.html: Added. 2010-07-15 Shinichiro Hamaji <hamaji@chromium.org> Reviewed by Darin Adler. Printing test results differ between machines, we should use ImageDiff instead https://bugs.webkit.org/show_bug.cgi?id=20011 Added spoolAllPagesWithBoundaries into PrintContext. Test: printing/setPrinting.html * WebCore.base.exp: * page/PrintContext.cpp: (WebCore::PrintContext::spoolAllPagesWithBoundaries): * page/PrintContext.h: 2010-07-15 Shinichiro Hamaji <hamaji@chromium.org> Reviewed by Darin Adler. Printing test results differ between machines, we should use ImageDiff instead https://bugs.webkit.org/show_bug.cgi?id=20011 * Misc/WebCoreStatistics.h: * Misc/WebCoreStatistics.mm: (-[WebFrame printToCGContext:cgContext:pageWidthInPixels:]): 2010-07-15 Shinichiro Hamaji <hamaji@chromium.org> Reviewed by Darin Adler. Printing test results differ between machines, we should use ImageDiff instead https://bugs.webkit.org/show_bug.cgi?id=20011 * DumpRenderTree/PixelDumpSupport.cpp: (dumpWebViewAsPixelsAndCompareWithExpected): * DumpRenderTree/PixelDumpSupport.h: * DumpRenderTree/mac/PixelDumpSupportMac.mm: (createBitmapContext): This function was added to share bitmap context creation code. (createBitmapContextFromWebView): (createPagedBitmapContext): Canonical link: https://commits.webkit.org/54361@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Shinichiro Hamaji
committed
Jul 16, 2010
1 parent
76c411b
commit 3a898c6
Showing
26 changed files
with
228 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/platform/mac/printing/compositing-layer-printing-expected.checksum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
590ebb52f9258d18c8e95839d2823f84 |
Binary file added
BIN
+16.6 KB
LayoutTests/platform/mac/printing/compositing-layer-printing-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
LayoutTests/platform/mac/printing/compositing-layer-printing-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
layer at (0,0) size 1000x270 | ||
RenderView at (0,0) size 1000x270 | ||
layer at (0,0) size 1000x270 | ||
RenderBlock {HTML} at (0,0) size 1000x270 | ||
RenderBody {BODY} at (8,16) size 984x244 | ||
RenderBlock {P} at (0,0) size 984x18 | ||
RenderText {#text} at (0,0) size 454x18 | ||
text run at (0,0) width 454: "You should see two green squares below on screen, and when printed." | ||
RenderBlock {DIV} at (10,34) size 100x100 [bgcolor=#008000] | ||
layer at (18,160) size 100x100 | ||
RenderBlock {DIV} at (10,144) size 100x100 [bgcolor=#008000] |
2 changes: 1 addition & 1 deletion
2
LayoutTests/platform/mac/printing/media-queries-print-expected.checksum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6090d2b0a19649aba8a379f982a345d3 | ||
9ea3bf56e7033cfee8a2beb3a800d85f |
Binary file modified
BIN
-230 Bytes
(99%)
LayoutTests/platform/mac/printing/media-queries-print-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
LayoutTests/platform/mac/printing/setPrinting-expected.checksum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
acb402590109e72d730b68ed674c8708 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions
12
LayoutTests/platform/mac/printing/setPrinting-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
layer at (0,0) size 982x785 | ||
RenderView at (0,0) size 982x785 | ||
layer at (0,0) size 982x785 | ||
RenderBlock {HTML} at (0,0) size 982x785 | ||
RenderBody {BODY} at (0,0) size 982x785 | ||
RenderBlock {DIV} at (0,0) size 800x749 [bgcolor=#008000] | ||
RenderText {#text} at (0,0) size 237x18 | ||
text run at (0,0) width 237: "This test case should output 2 pages." | ||
RenderBlock (anonymous) at (0,749) size 982x36 | ||
RenderText {#text} at (0,0) size 972x36 | ||
text run at (0,0) width 972: "There should be a blue line above this test. This line is the boundary of 2 pages. As the height of green box is shorter than the height of a page by one" | ||
text run at (0,18) width 485: "pixel, there should be a white line between the green box and the blue line." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<html> | ||
<head> | ||
<script> | ||
if (window.layoutTestController) | ||
layoutTestController.setPrinting(); | ||
</script> | ||
</head> | ||
|
||
<body style="margin: 0px;"> | ||
<div style="width: 800px; height: 749px; background-color: green;"> | ||
This test case should output 2 pages. | ||
</div> | ||
There should be a blue line above this test. | ||
This line is the boundary of 2 pages. | ||
As the height of green box is shorter than the height of a page by one pixel, | ||
there should be a white line between the green box and the blue line. | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters