Changeset 70017 in webkit


Ignore:
Timestamp:
Oct 18, 2010 7:32:09 PM (13 years ago)
Author:
kbr@google.com
Message:

2010-10-18 Kenneth Russell <kbr@google.com>

Reviewed by Eric Seidel.

new-run-webkit-tests produces corrupt PNG baselines on Windows
https://bugs.webkit.org/show_bug.cgi?id=47867

  • Scripts/webkitpy/layout_tests/port/base.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70016 r70017  
     12010-10-18  Kenneth Russell  <kbr@google.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        new-run-webkit-tests produces corrupt PNG baselines on Windows
     6        https://bugs.webkit.org/show_bug.cgi?id=47867
     7
     8        * Scripts/webkitpy/layout_tests/port/base.py:
     9
    1102010-10-18  Eric Seidel  <eric@webkit.org>
    211
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/base.py

    r70013 r70017  
    398398            encoding: file encoding to use for the baseline.
    399399        """
    400         with codecs.open(path, "w", encoding=encoding) as file:
     400        write_mode = "w"
     401        if encoding is None:
     402            write_mode = "wb"
     403        with codecs.open(path, write_mode, encoding=encoding) as file:
    401404            file.write(data)
    402405
Note: See TracChangeset for help on using the changeset viewer.