Changeset 27766 in webkit
- Timestamp:
- Nov 13, 2007, 4:49:21 PM (18 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r27757 r27766 1 2007-11-13 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Darin Adler. 4 5 - fix <http://bugs.webkit.org/show_bug.cgi?id=13371> 6 DumpRenderTree --pixel-tests renders each test twice 7 8 * DumpRenderTree/mac/DumpRenderTree.mm: 9 (dumpRenderTree): Removed the --paint option because the painting code 10 is always exercised as a result of 11 -[FrameLoadDelegate webView:didFinishLoadFromFrame:] 12 calling -displayIfNeeded. 13 (dump): Changed to always grab the image from the window since the view 14 is always displayed. 15 (runTest): 16 (displayWebView): 17 * Scripts/run-webkit-tests: No need to pass --paint to DumpRenderTree 18 because it always paints. 19 1 20 2007-11-12 Antti Koivisto <antti@apple.com> 2 21 -
trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm
r27676 r27766 126 126 127 127 static int dumpPixels; 128 static int paint;129 128 static int dumpAllPixels; 130 129 static int threaded; 131 static BOOL readFromWindow;132 130 static int testRepaintDefault; 133 131 static int repaintSweepHorizontallyDefault; … … 442 440 {"notree", no_argument, &dumpTree, NO}, 443 441 {"pixel-tests", no_argument, &dumpPixels, YES}, 444 {"paint", no_argument, &paint, YES},445 442 {"repaint", no_argument, &testRepaintDefault, YES}, 446 443 {"tree", no_argument, &dumpTree, YES}, … … 903 900 [NSGraphicsContext setCurrentContext:nsContext]; 904 901 905 if ( readFromWindow) {902 if (!layoutTestController->testRepaint()) { 906 903 NSBitmapImageRep *imageRep; 907 904 [view displayIfNeeded]; … … 911 908 [imageRep draw]; 912 909 [imageRep release]; 913 } else if (!layoutTestController->testRepaint()) 914 [view displayRectIgnoringOpacity:NSMakeRect(0, 0, webViewSize.width, webViewSize.height) inContext:nsContext]; 915 else if (!layoutTestController->testRepaintSweepHorizontally()) { 910 } else if (!layoutTestController->testRepaintSweepHorizontally()) { 916 911 NSRect line = NSMakeRect(0, 0, webViewSize.width, 1); 917 912 while (line.origin.y < webViewSize.height) { … … 977 972 printf("#EOF\n"); 978 973 } 979 974 980 975 fflush(stdout); 981 976 982 if (paint)983 displayWebView();984 985 977 done = YES; 986 978 } … … 1024 1016 1025 1017 done = NO; 1026 readFromWindow = NO;1027 1018 1028 1019 if (disallowedURLs) … … 1133 1124 NSRectFillUsingOperation([webView frame], NSCompositeSourceOver); 1134 1125 [webView unlockFocus]; 1135 readFromWindow = YES;1136 1126 } 1137 1127 -
trunk/WebKitTools/Scripts/run-webkit-tests
r27757 r27766 418 418 push @toolArgs, "--horizontal-sweep" if $repaintSweepHorizontally; 419 419 push @toolArgs, "--threaded" if $threaded; 420 push @toolArgs, "--paint" if $shouldCheckLeaks; # Otherwise, DRT won't exercise painting leaks.421 420 push @toolArgs, "-"; 422 421
Note:
See TracChangeset
for help on using the changeset viewer.