Changeset 106983 in webkit


Ignore:
Timestamp:
Feb 7, 2012 1:37:43 PM (12 years ago)
Author:
Nikolas Zimmermann
Message:

layoutTestController.display() is flaky for SVG tests
https://bugs.webkit.org/show_bug.cgi?id=78021

Reviewed by Dan Bernstein.

Fix race condition in repaint rect tracking. When running a test using the repaint.js
harness right after a test starting with "svg/W3C-SVG-1.1" the repaint test will fail,
the gray overlay isn't contained in the pixel dump anymore. This is because of a specific
hack that forces 480x360 instead of 800x600 pixel test dumps for any test starting with
svg/W3C-SVG-1.1. The resizing of the web view was done when dumping the render tree, after
the repaint test already run, thus invalidating the previously tracked repaint rects.

  • DumpRenderTree/mac/DumpRenderTree.mm:

(dump):
(runTest):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r106965 r106983  
     12012-02-07  Nikolas Zimmermann  <nzimmermann@rim.com>
     2
     3        layoutTestController.display() is flaky for SVG tests
     4        https://bugs.webkit.org/show_bug.cgi?id=78021
     5
     6        Reviewed by Dan Bernstein.
     7
     8        Fix race condition in repaint rect tracking. When running a test using the repaint.js
     9        harness right after a test starting with "svg/W3C-SVG-1.1" the repaint test will fail,
     10        the gray overlay isn't contained in the pixel dump anymore. This is because of a specific
     11        hack that forces 480x360 instead of 800x600 pixel test dumps for any test starting with
     12        svg/W3C-SVG-1.1. The resizing of the web view was done when dumping the render tree, after
     13        the repaint test already run, thus invalidating the previously tracked repaint rects.
     14
     15        * DumpRenderTree/mac/DumpRenderTree.mm:
     16        (dump):
     17        (runTest):
     18
    1192012-02-07  Hans Wennborg  <hans@chromium.org>
    220
  • trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm

    r105695 r106983  
    11471147            resultString = HardAutorelease(createXMLStringFromWebArchiveData((CFDataRef)[webArchive data]));
    11481148            resultMimeType = @"application/x-webarchive";
    1149         } else {
    1150             sizeWebViewForCurrentTest();
     1149        } else
    11511150            resultString = [mainFrame renderTreeAsExternalRepresentationForPrinting:gLayoutTestController->isPrinting()];
    1152         }
    11531151
    11541152        if (resultString && !resultData)
     
    13041302    done = NO;
    13051303
     1304    sizeWebViewForCurrentTest();
    13061305    gLayoutTestController->setIconDatabaseEnabled(false);
    13071306
Note: See TracChangeset for help on using the changeset viewer.