Changeset 140258 in webkit


Ignore:
Timestamp:
Jan 19, 2013 1:11:31 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[WK2] svg/dom/fuzz-path-parser.html is failing
https://bugs.webkit.org/show_bug.cgi?id=107133

Patch by Zan Dobersek <zdobersek@igalia.com> on 2013-01-19
Reviewed by Alexey Proskuryakov.

Tools:

Console messages can contain null characters before the end of string.
Appending such message to the StringBuilder as a WTFString appends the
complete string, including the null character. This later cuts off everything
after the null character when the string is being printed out to the test
output.

To avoid this, truncate the string up to the first null character. This
preserves the newline character appended immediately after this and
stops giving incorrect output.

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::willAddMessageToConsole):

LayoutTests:

Unskip the now-passing test.

  • platform/gtk-wk2/TestExpectations:
  • platform/wk2/TestExpectations:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r140257 r140258  
     12013-01-19  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [WK2] svg/dom/fuzz-path-parser.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=107133
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Unskip the now-passing test.
     9
     10        * platform/gtk-wk2/TestExpectations:
     11        * platform/wk2/TestExpectations:
     12
    1132013-01-19  Dominik Röttsches  <dominik.rottsches@intel.com>
    214
  • trunk/LayoutTests/platform/gtk-wk2/TestExpectations

    r140144 r140258  
    339339Bug(GTK) svg/custom/pointer-events-on-svg-with-pointer.xhtml [ Failure Pass ]
    340340Bug(GTK) svg/custom/pointer-events-on-svg-without-pointer.xhtml [ Failure Pass ]
    341 Bug(WK2) svg/dom/fuzz-path-parser.html [ Failure ]
    342341Bug(WK2) svg/hixie/cascade/002.xml [ Failure ]
    343342Bug(GTK) svg/stroke/non-scaling-stroke-pattern.svg [ ImageOnlyFailure Pass ]
  • trunk/LayoutTests/platform/wk2/TestExpectations

    r139866 r140258  
    682682storage/websql/open-database-while-transaction-in-progress.html
    683683svg/custom/clip-path-referencing-use2.svg
    684 svg/dom/fuzz-path-parser.html
    685684svg/hixie/cascade/002.xml
    686685tables/mozilla_expected_failures/bugs/bug8499.html
  • trunk/Tools/ChangeLog

    r140241 r140258  
     12013-01-19  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [WK2] svg/dom/fuzz-path-parser.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=107133
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Console messages can contain null characters before the end of string.
     9        Appending such message to the StringBuilder as a WTFString appends the
     10        complete string, including the null character. This later cuts off everything
     11        after the null character when the string is being printed out to the test
     12        output.
     13
     14        To avoid this, truncate the string up to the first null character. This
     15        preserves the newline character appended immediately after this and
     16        stops giving incorrect output.
     17
     18        * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
     19        (WTR::InjectedBundlePage::willAddMessageToConsole):
     20
    1212013-01-19  Eric Seidel  <eric@webkit.org>
    222
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

    r138232 r140258  
    14311431
    14321432    WTF::String messageString = toWTFString(message);
     1433    unsigned nullCharPos = messageString.find(UChar(0));
     1434    if (nullCharPos != WTF::notFound)
     1435        messageString.truncate(nullCharPos);
     1436
    14331437    size_t fileProtocolStart = messageString.find("file://");
    14341438    if (fileProtocolStart != WTF::notFound)
Note: See TracChangeset for help on using the changeset viewer.