<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[161881] trunk/Tools</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/161881">161881</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-01-13 08:47:54 -0800 (Mon, 13 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove wdiff
https://bugs.webkit.org/show_bug.cgi?id=124766

Patch by Daniel Batyai &lt;dbatyai.u-szeged@partner.samsung.com&gt; on 2014-01-13
Reviewed by Ryosuke Niwa.

* Scripts/webkitpy/common/net/resultsjsonparser_unittest.py:
(ResultsJSONParserTest):
* Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
(TestResultWriter):
(TestResultWriter.create_text_diff_and_write_result):
* Scripts/webkitpy/layout_tests/models/test_run_results.py:
(summarize_results):
* Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
(RunTest.test_output_diffs):
* Scripts/webkitpy/port/base.py:
(Port.__init__):
(Port.driver_stop_timeout):
(Port.check_image_diff):
(Port.repository_paths):
(Port._path_to_lighttpd_php):
* Scripts/webkitpy/port/base_unittest.py:
(PortTest.test_default_child_processes):
(PortTest.test_pretty_patch_script_error):
* Scripts/webkitpy/port/port_testcase.py:
(PortTestCase.test_diff_image_crashed):
* Scripts/webkitpy/port/test.py:
(TestPort.operating_system):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsScriptswebkitpycommonnetresultsjsonparser_unittestpy">trunk/Tools/Scripts/webkitpy/common/net/resultsjsonparser_unittest.py</a></li>
<li><a href="#trunkToolsScriptswebkitpylayout_testscontrollerstest_result_writerpy">trunk/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py</a></li>
<li><a href="#trunkToolsScriptswebkitpylayout_testsmodelstest_run_resultspy">trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py</a></li>
<li><a href="#trunkToolsScriptswebkitpylayout_testsrun_webkit_tests_integrationtestpy">trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py</a></li>
<li><a href="#trunkToolsScriptswebkitpyportbasepy">trunk/Tools/Scripts/webkitpy/port/base.py</a></li>
<li><a href="#trunkToolsScriptswebkitpyportbase_unittestpy">trunk/Tools/Scripts/webkitpy/port/base_unittest.py</a></li>
<li><a href="#trunkToolsScriptswebkitpyportport_testcasepy">trunk/Tools/Scripts/webkitpy/port/port_testcase.py</a></li>
<li><a href="#trunkToolsScriptswebkitpyporttestpy">trunk/Tools/Scripts/webkitpy/port/test.py</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/ChangeLog        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2014-01-13  Daniel Batyai  &lt;dbatyai.u-szeged@partner.samsung.com&gt;
+
+        Remove wdiff
+        https://bugs.webkit.org/show_bug.cgi?id=124766
+
+        Reviewed by Ryosuke Niwa.
+
+        * Scripts/webkitpy/common/net/resultsjsonparser_unittest.py:
+        (ResultsJSONParserTest):
+        * Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
+        (TestResultWriter):
+        (TestResultWriter.create_text_diff_and_write_result):
+        * Scripts/webkitpy/layout_tests/models/test_run_results.py:
+        (summarize_results):
+        * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
+        (RunTest.test_output_diffs):
+        * Scripts/webkitpy/port/base.py:
+        (Port.__init__):
+        (Port.driver_stop_timeout):
+        (Port.check_image_diff):
+        (Port.repository_paths):
+        (Port._path_to_lighttpd_php):
+        * Scripts/webkitpy/port/base_unittest.py:
+        (PortTest.test_default_child_processes):
+        (PortTest.test_pretty_patch_script_error):
+        * Scripts/webkitpy/port/port_testcase.py:
+        (PortTestCase.test_diff_image_crashed):
+        * Scripts/webkitpy/port/test.py:
+        (TestPort.operating_system):
+
</ins><span class="cx"> 2014-01-13  Martin Robinson  &lt;mrobinson@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Build fix for the GTK+ CMake port
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpycommonnetresultsjsonparser_unittestpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/common/net/resultsjsonparser_unittest.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/common/net/resultsjsonparser_unittest.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/common/net/resultsjsonparser_unittest.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -80,8 +80,7 @@
</span><span class="cx">     &quot;has_pretty_patch&quot;: false,
</span><span class="cx">     &quot;fixable&quot;: 1220,
</span><span class="cx">     &quot;num_flaky&quot;: 0,
</span><del>-    &quot;uses_expectations_file&quot;: true,
-    &quot;has_wdiff&quot;: false
</del><ins>+    &quot;uses_expectations_file&quot;: true
</ins><span class="cx"> });&quot;&quot;&quot;
</span><span class="cx"> 
</span><span class="cx">     def test_basic(self):
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpylayout_testscontrollerstest_result_writerpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -57,7 +57,6 @@
</span><span class="cx">     FILENAME_SUFFIX_STDERR = &quot;-stderr&quot;
</span><span class="cx">     FILENAME_SUFFIX_CRASH_LOG = &quot;-crash-log&quot;
</span><span class="cx">     FILENAME_SUFFIX_SAMPLE = &quot;-sample&quot;
</span><del>-    FILENAME_SUFFIX_WDIFF = &quot;-wdiff.html&quot;
</del><span class="cx">     FILENAME_SUFFIX_PRETTY_PATCH = &quot;-pretty-diff.html&quot;
</span><span class="cx">     FILENAME_SUFFIX_IMAGE_DIFF = &quot;-diff.png&quot;
</span><span class="cx">     FILENAME_SUFFIX_IMAGE_DIFFS_HTML = &quot;-diffs.html&quot;
</span><span class="lines">@@ -153,12 +152,6 @@
</span><span class="cx">         diff_filename = self.output_filename(self.FILENAME_SUFFIX_DIFF + file_type)
</span><span class="cx">         self._write_binary_file(diff_filename, diff)
</span><span class="cx"> 
</span><del>-        # Shell out to wdiff to get colored inline diffs.
-        if self._port.wdiff_available():
-            wdiff = self._port.wdiff_text(expected_filename, actual_filename)
-            wdiff_filename = self.output_filename(self.FILENAME_SUFFIX_WDIFF)
-            self._write_binary_file(wdiff_filename, wdiff)
-
</del><span class="cx">         # Use WebKit's PrettyPatch.rb to get an HTML diff.
</span><span class="cx">         if self._port.pretty_patch.pretty_patch_available():
</span><span class="cx">             pretty_patch = self._port.pretty_patch.pretty_patch_text(diff_filename)
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpylayout_testsmodelstest_run_resultspy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -249,7 +249,6 @@
</span><span class="cx">     results['uses_expectations_file'] = port_obj.uses_test_expectations_file()
</span><span class="cx">     results['interrupted'] = initial_results.interrupted  # Does results.html have enough information to compute this itself? (by checking total number of results vs. total number of tests?)
</span><span class="cx">     results['layout_tests_dir'] = port_obj.layout_tests_dir()
</span><del>-    results['has_wdiff'] = port_obj.wdiff_available()
</del><span class="cx">     results['has_pretty_patch'] = port_obj.pretty_patch.pretty_patch_available()
</span><span class="cx">     results['pixel_tests_enabled'] = port_obj.get_option('pixel_tests')
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpylayout_testsrun_webkit_tests_integrationtestpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -794,18 +794,15 @@
</span><span class="cx">         self.assertFalse('platform/test-win-win7/http/test.html' in tests_run)
</span><span class="cx"> 
</span><span class="cx">     def test_output_diffs(self):
</span><del>-        # Test to ensure that we don't generate -wdiff.html or -pretty.html if wdiff and PrettyPatch
-        # aren't available.
</del><ins>+        # Test to ensure that we don't generate -pretty.html if PrettyPatch isn't available.
</ins><span class="cx">         host = MockHost()
</span><span class="cx">         _, err, _ = logging_run(['--pixel-tests', 'failures/unexpected/text-image-checksum.html'], tests_included=True, host=host)
</span><span class="cx">         written_files = host.filesystem.written_files
</span><span class="cx">         self.assertTrue(any(path.endswith('-diff.txt') for path in written_files.keys()))
</span><del>-        self.assertFalse(any(path.endswith('-wdiff.html') for path in written_files.keys()))
</del><span class="cx">         self.assertFalse(any(path.endswith('-pretty-diff.html') for path in written_files.keys()))
</span><span class="cx"> 
</span><span class="cx">         full_results_text = host.filesystem.read_text_file('/tmp/layout-test-results/full_results.json')
</span><span class="cx">         full_results = json.loads(full_results_text.replace(&quot;ADD_RESULTS(&quot;, &quot;&quot;).replace(&quot;);&quot;, &quot;&quot;))
</span><del>-        self.assertEqual(full_results['has_wdiff'], False)
</del><span class="cx">         self.assertEqual(full_results['has_pretty_patch'], False)
</span><span class="cx"> 
</span><span class="cx">     def test_unsupported_platform(self):
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpyportbasepy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/port/base.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/port/base.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/port/base.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -126,21 +126,6 @@
</span><span class="cx">         self._server_process_constructor = server_process.ServerProcess  # overridable for testing
</span><span class="cx">         self._http_lock = None  # FIXME: Why does this live on the port object?
</span><span class="cx"> 
</span><del>-        # Python's Popen has a bug that causes any pipes opened to a
-        # process that can't be executed to be leaked.  Since this
-        # code is specifically designed to tolerate exec failures
-        # to gracefully handle cases where wdiff is not installed,
-        # the bug results in a massive file descriptor leak. As a
-        # workaround, if an exec failure is ever experienced for
-        # wdiff, assume it's not available.  This will leak one
-        # file descriptor but that's better than leaking each time
-        # wdiff would be run.
-        #
-        # http://mail.python.org/pipermail/python-list/
-        #    2008-August/505753.html
-        # http://bugs.python.org/issue3210
-        self._wdiff_available = None
-
</del><span class="cx">         if not hasattr(options, 'configuration') or not options.configuration:
</span><span class="cx">             self.set_option_default('configuration', self.default_configuration())
</span><span class="cx">         self._test_configuration = None
</span><span class="lines">@@ -171,11 +156,6 @@
</span><span class="cx">         # well (for things like ASAN, Valgrind, etc.)
</span><span class="cx">         return 3.0 * float(self.get_option('time_out_ms', '0')) / self.default_timeout_ms()
</span><span class="cx"> 
</span><del>-    def wdiff_available(self):
-        if self._wdiff_available is None:
-            self._wdiff_available = self.check_wdiff(logging=False)
-        return self._wdiff_available
-
</del><span class="cx">     def should_retry_crashes(self):
</span><span class="cx">         return False
</span><span class="cx"> 
</span><span class="lines">@@ -274,27 +254,6 @@
</span><span class="cx">             return False
</span><span class="cx">         return True
</span><span class="cx"> 
</span><del>-    def check_wdiff(self, logging=True):
-        if not self._path_to_wdiff():
-            # Don't need to log here since this is the port choosing not to use wdiff.
-            return False
-
-        try:
-            _ = self._executive.run_command([self._path_to_wdiff(), '--help'])
-        except OSError:
-            if logging:
-                message = self._wdiff_missing_message()
-                if message:
-                    for line in message.splitlines():
-                        _log.warning('    ' + line)
-                        _log.warning('')
-            return False
-
-        return True
-
-    def _wdiff_missing_message(self):
-        return 'wdiff is not installed; please install it to generate word-by-word diffs.'
-
</del><span class="cx">     def check_httpd(self):
</span><span class="cx">         if self._uses_apache():
</span><span class="cx">             httpd_path = self._path_to_apache()
</span><span class="lines">@@ -1075,62 +1034,7 @@
</span><span class="cx">             repository_paths += [(self._options.additional_repository_name, self._options.additional_repository_path)]
</span><span class="cx">         return repository_paths
</span><span class="cx"> 
</span><del>-    _WDIFF_DEL = '##WDIFF_DEL##'
-    _WDIFF_ADD = '##WDIFF_ADD##'
-    _WDIFF_END = '##WDIFF_END##'
</del><span class="cx"> 
</span><del>-    def _format_wdiff_output_as_html(self, wdiff):
-        wdiff = cgi.escape(wdiff)
-        wdiff = wdiff.replace(self._WDIFF_DEL, &quot;&lt;span class=del&gt;&quot;)
-        wdiff = wdiff.replace(self._WDIFF_ADD, &quot;&lt;span class=add&gt;&quot;)
-        wdiff = wdiff.replace(self._WDIFF_END, &quot;&lt;/span&gt;&quot;)
-        html = &quot;&lt;head&gt;&lt;style&gt;.del { background: #faa; } &quot;
-        html += &quot;.add { background: #afa; }&lt;/style&gt;&lt;/head&gt;&quot;
-        html += &quot;&lt;pre&gt;%s&lt;/pre&gt;&quot; % wdiff
-        return html
-
-    def _wdiff_command(self, actual_filename, expected_filename):
-        executable = self._path_to_wdiff()
-        return [executable,
-                &quot;--start-delete=%s&quot; % self._WDIFF_DEL,
-                &quot;--end-delete=%s&quot; % self._WDIFF_END,
-                &quot;--start-insert=%s&quot; % self._WDIFF_ADD,
-                &quot;--end-insert=%s&quot; % self._WDIFF_END,
-                actual_filename,
-                expected_filename]
-
-    @staticmethod
-    def _handle_wdiff_error(script_error):
-        # Exit 1 means the files differed, any other exit code is an error.
-        if script_error.exit_code != 1:
-            raise script_error
-
-    def _run_wdiff(self, actual_filename, expected_filename):
-        &quot;&quot;&quot;Runs wdiff and may throw exceptions.
-        This is mostly a hook for unit testing.&quot;&quot;&quot;
-        # Diffs are treated as binary as they may include multiple files
-        # with conflicting encodings.  Thus we do not decode the output.
-        command = self._wdiff_command(actual_filename, expected_filename)
-        wdiff = self._executive.run_command(command, decode_output=False,
-            error_handler=self._handle_wdiff_error)
-        return self._format_wdiff_output_as_html(wdiff)
-
-    def wdiff_text(self, actual_filename, expected_filename):
-        &quot;&quot;&quot;Returns a string of HTML indicating the word-level diff of the
-        contents of the two filenames. Returns an empty string if word-level
-        diffing isn't available.&quot;&quot;&quot;
-        if not self.wdiff_available():
-            return &quot;&quot;
-        try:
-            # It's possible to raise a ScriptError we pass wdiff invalid paths.
-            return self._run_wdiff(actual_filename, expected_filename)
-        except OSError, e:
-            if e.errno in [errno.ENOENT, errno.EACCES, errno.ECHILD]:
-                # Silently ignore cases where wdiff is missing.
-                self._wdiff_available = False
-                return &quot;&quot;
-            raise
-
</del><span class="cx">     def default_configuration(self):
</span><span class="cx">         return self._config.default_configuration()
</span><span class="cx"> 
</span><span class="lines">@@ -1263,16 +1167,6 @@
</span><span class="cx">         This is needed only by ports that use the http_server.py module.&quot;&quot;&quot;
</span><span class="cx">         raise NotImplementedError('Port._path_to_lighttpd_php')
</span><span class="cx"> 
</span><del>-    @memoized
-    def _path_to_wdiff(self):
-        &quot;&quot;&quot;Returns the full path to the wdiff binary, or None if it is not available.
-
-        This is likely used only by wdiff_text()&quot;&quot;&quot;
-        for path in (&quot;/usr/bin/wdiff&quot;, &quot;/usr/bin/dwdiff&quot;):
-            if self._filesystem.exists(path):
-                return path
-        return None
-
</del><span class="cx">     def _webkit_baseline_path(self, platform):
</span><span class="cx">         &quot;&quot;&quot;Return the  full path to the top of the baseline tree for a
</span><span class="cx">         given platform.&quot;&quot;&quot;
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpyportbase_unittestpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/port/base_unittest.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/port/base_unittest.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/port/base_unittest.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -59,27 +59,6 @@
</span><span class="cx">         port = self.make_port()
</span><span class="cx">         self.assertIsNotNone(port.default_child_processes())
</span><span class="cx"> 
</span><del>-    def test_format_wdiff_output_as_html(self):
-        output = &quot;OUTPUT %s %s %s&quot; % (Port._WDIFF_DEL, Port._WDIFF_ADD, Port._WDIFF_END)
-        html = self.make_port()._format_wdiff_output_as_html(output)
-        expected_html = &quot;&lt;head&gt;&lt;style&gt;.del { background: #faa; } .add { background: #afa; }&lt;/style&gt;&lt;/head&gt;&lt;pre&gt;OUTPUT &lt;span class=del&gt; &lt;span class=add&gt; &lt;/span&gt;&lt;/pre&gt;&quot;
-        self.assertEqual(html, expected_html)
-
-    def test_wdiff_command(self):
-        port = self.make_port()
-        port._path_to_wdiff = lambda: &quot;/path/to/wdiff&quot;
-        command = port._wdiff_command(&quot;/actual/path&quot;, &quot;/expected/path&quot;)
-        expected_command = [
-            &quot;/path/to/wdiff&quot;,
-            &quot;--start-delete=##WDIFF_DEL##&quot;,
-            &quot;--end-delete=##WDIFF_END##&quot;,
-            &quot;--start-insert=##WDIFF_ADD##&quot;,
-            &quot;--end-insert=##WDIFF_END##&quot;,
-            &quot;/actual/path&quot;,
-            &quot;/expected/path&quot;,
-        ]
-        self.assertEqual(command, expected_command)
-
</del><span class="cx">     def _file_with_contents(self, contents, encoding=&quot;utf-8&quot;):
</span><span class="cx">         new_file = tempfile.NamedTemporaryFile()
</span><span class="cx">         new_file.write(contents.encode(encoding))
</span><span class="lines">@@ -109,56 +88,7 @@
</span><span class="cx">         self.assertEqual(port.pretty_patch.pretty_patch_text(&quot;patch.txt&quot;),
</span><span class="cx">                          port.pretty_patch.pretty_patch_error_html)
</span><span class="cx"> 
</span><del>-    def integration_test_run_wdiff(self):
-        executive = Executive()
-        # This may fail on some systems.  We could ask the port
-        # object for the wdiff path, but since we don't know what
-        # port object to use, this is sufficient for now.
-        try:
-            wdiff_path = executive.run_command([&quot;which&quot;, &quot;wdiff&quot;]).rstrip()
-        except Exception, e:
-            wdiff_path = None
</del><span class="cx"> 
</span><del>-        port = self.make_port(executive=executive)
-        port._path_to_wdiff = lambda: wdiff_path
-
-        if wdiff_path:
-            # &quot;with tempfile.NamedTemporaryFile() as actual&quot; does not seem to work in Python 2.5
-            actual = self._file_with_contents(u&quot;foo&quot;)
-            expected = self._file_with_contents(u&quot;bar&quot;)
-            wdiff = port._run_wdiff(actual.name, expected.name)
-            expected_wdiff = &quot;&lt;head&gt;&lt;style&gt;.del { background: #faa; } .add { background: #afa; }&lt;/style&gt;&lt;/head&gt;&lt;pre&gt;&lt;span class=del&gt;foo&lt;/span&gt;&lt;span class=add&gt;bar&lt;/span&gt;&lt;/pre&gt;&quot;
-            self.assertEqual(wdiff, expected_wdiff)
-            # Running the full wdiff_text method should give the same result.
-            port._wdiff_available = True  # In case it's somehow already disabled.
-            wdiff = port.wdiff_text(actual.name, expected.name)
-            self.assertEqual(wdiff, expected_wdiff)
-            # wdiff should still be available after running wdiff_text with a valid diff.
-            self.assertTrue(port._wdiff_available)
-            actual.close()
-            expected.close()
-
-            # Bogus paths should raise a script error.
-            self.assertRaises(ScriptError, port._run_wdiff, &quot;/does/not/exist&quot;, &quot;/does/not/exist2&quot;)
-            self.assertRaises(ScriptError, port.wdiff_text, &quot;/does/not/exist&quot;, &quot;/does/not/exist2&quot;)
-            # wdiff will still be available after running wdiff_text with invalid paths.
-            self.assertTrue(port._wdiff_available)
-
-        # If wdiff does not exist _run_wdiff should throw an OSError.
-        port._path_to_wdiff = lambda: &quot;/invalid/path/to/wdiff&quot;
-        self.assertRaises(OSError, port._run_wdiff, &quot;foo&quot;, &quot;bar&quot;)
-
-        # wdiff_text should not throw an error if wdiff does not exist.
-        self.assertEqual(port.wdiff_text(&quot;foo&quot;, &quot;bar&quot;), &quot;&quot;)
-        # However wdiff should not be available after running wdiff_text if wdiff is missing.
-        self.assertFalse(port._wdiff_available)
-
-    def test_wdiff_text(self):
-        port = self.make_port()
-        port.wdiff_available = lambda: True
-        port._run_wdiff = lambda a, b: 'PASS'
-        self.assertEqual('PASS', port.wdiff_text(None, None))
-
</del><span class="cx">     def test_diff_text(self):
</span><span class="cx">         port = self.make_port()
</span><span class="cx">         # Make sure that we don't run into decoding exceptions when the
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpyportport_testcasepy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/port/port_testcase.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/port/port_testcase.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/port/port_testcase.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -291,10 +291,6 @@
</span><span class="cx">         self.assertEqual(port.diff_image('foo', 'bar'), ('', 0, 'ImageDiff crashed\n'))
</span><span class="cx">         port.clean_up_test_run()
</span><span class="cx"> 
</span><del>-    def test_check_wdiff(self):
-        port = self.make_port()
-        port.check_wdiff()
-
</del><span class="cx">     def integration_test_websocket_server__normal(self):
</span><span class="cx">         port = self.make_port()
</span><span class="cx">         self.assert_servers_are_down('localhost', self.WEBSOCKET_PORTS)
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpyporttestpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/port/test.py (161880 => 161881)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/port/test.py        2014-01-13 16:40:16 UTC (rev 161880)
+++ trunk/Tools/Scripts/webkitpy/port/test.py        2014-01-13 16:47:54 UTC (rev 161881)
</span><span class="lines">@@ -451,9 +451,6 @@
</span><span class="cx">     def operating_system(self):
</span><span class="cx">         return self._operating_system
</span><span class="cx"> 
</span><del>-    def _path_to_wdiff(self):
-        return None
-
</del><span class="cx">     def default_results_directory(self):
</span><span class="cx">         return '/tmp/layout-test-results'
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>