Changeset 88598 in webkit


Ignore:
Timestamp:
Jun 10, 2011, 11:04:28 PM (14 years ago)
Author:
rniwa@webkit.org
Message:

2011-06-10 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Ojan Vafai.

new-run-webkit-tests: 'images' links on results.html don't work
https://bugs.webkit.org/show_bug.cgi?id=62194

Use relative path when generating images-diffs.html

  • Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py: Added _output_testname.
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r88589 r88598  
     12011-06-10  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        new-run-webkit-tests: 'images' links on results.html don't work
     6        https://bugs.webkit.org/show_bug.cgi?id=62194
     7
     8        Use relative path when generating images-diffs.html
     9
     10        * Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:
     11        Added _output_testname.
     12
    1132011-06-10  Lucas Forschler  <lforschler@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py

    r85610 r88598  
    133133        return fs.splitext(output_filename)[0] + modifier
    134134
     135    def _output_testname(self, modifier):
     136        fs = self._port._filesystem
     137        return fs.splitext(fs.basename(self._testname))[0] + modifier
     138
    135139    def write_output_files(self, file_type, output, expected):
    136140        """Writes the test output, the expected output in the results directory.
     
    242246    setInterval(toggleImages, 2000)
    243247</script>
    244 """ % { 'title': self._testname, 'diff_filename': self.output_filename('-diff.png'), 'prefix': self.output_filename('') }
     248""" % { 'title': self._testname, 'diff_filename': self._output_testname('-diff.png'), 'prefix': self._output_testname('') }
    245249        self._port._filesystem.write_binary_file(diffs_html_filename, html)
    246250
Note: See TracChangeset for help on using the changeset viewer.