Changeset 27766 in webkit


Ignore:
Timestamp:
Nov 13, 2007, 4:49:21 PM (18 years ago)
Author:
mitz@apple.com
Message:

Reviewed by Darin Adler.

  • DumpRenderTree/mac/DumpRenderTree.mm: (dumpRenderTree): Removed the --paint option because the painting code is always exercised as a result of -[FrameLoadDelegate webView:didFinishLoadFromFrame:] calling -displayIfNeeded. (dump): Changed to always grab the image from the window since the view is always displayed. (runTest): (displayWebView):
  • Scripts/run-webkit-tests: No need to pass --paint to DumpRenderTree because it always paints.
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r27757 r27766  
     12007-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
    1202007-11-12  Antti Koivisto  <antti@apple.com>
    221
  • trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm

    r27676 r27766  
    126126
    127127static int dumpPixels;
    128 static int paint;
    129128static int dumpAllPixels;
    130129static int threaded;
    131 static BOOL readFromWindow;
    132130static int testRepaintDefault;
    133131static int repaintSweepHorizontallyDefault;
     
    442440        {"notree", no_argument, &dumpTree, NO},
    443441        {"pixel-tests", no_argument, &dumpPixels, YES},
    444         {"paint", no_argument, &paint, YES},
    445442        {"repaint", no_argument, &testRepaintDefault, YES},
    446443        {"tree", no_argument, &dumpTree, YES},
     
    903900            [NSGraphicsContext setCurrentContext:nsContext];
    904901
    905             if (readFromWindow) {
     902            if (!layoutTestController->testRepaint()) {
    906903                NSBitmapImageRep *imageRep;
    907904                [view displayIfNeeded];
     
    911908                [imageRep draw];
    912909                [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()) {
    916911                NSRect line = NSMakeRect(0, 0, webViewSize.width, 1);
    917912                while (line.origin.y < webViewSize.height) {
     
    977972        printf("#EOF\n");
    978973    }
    979    
     974
    980975    fflush(stdout);
    981976
    982     if (paint)
    983         displayWebView();
    984    
    985977    done = YES;
    986978}
     
    10241016
    10251017    done = NO;
    1026     readFromWindow = NO;
    10271018
    10281019    if (disallowedURLs)
     
    11331124    NSRectFillUsingOperation([webView frame], NSCompositeSourceOver);
    11341125    [webView unlockFocus];
    1135     readFromWindow = YES;
    11361126}
    11371127
  • trunk/WebKitTools/Scripts/run-webkit-tests

    r27757 r27766  
    418418push @toolArgs, "--horizontal-sweep" if $repaintSweepHorizontally;
    419419push @toolArgs, "--threaded" if $threaded;
    420 push @toolArgs, "--paint" if $shouldCheckLeaks; # Otherwise, DRT won't exercise painting leaks.
    421420push @toolArgs, "-";
    422421
Note: See TracChangeset for help on using the changeset viewer.