Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: webkit/tools/layout_tests/test_types/fuzzy_image_diff.py

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/tools/layout_tests/test_types/fuzzy_image_diff.py
===================================================================
--- webkit/tools/layout_tests/test_types/fuzzy_image_diff.py (revision 36724)
+++ webkit/tools/layout_tests/test_types/fuzzy_image_diff.py (working copy)
@@ -1,47 +0,0 @@
-# Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Compares the image output of a test to the expected image output using
-fuzzy matching.
-"""
-
-import errno
-import logging
-import os
-import shutil
-import subprocess
-
-from layout_package import path_utils
-from layout_package import test_failures
-from test_types import test_type_base
-
-
-class FuzzyImageDiff(test_type_base.TestTypeBase):
-
- def CompareOutput(self, filename, proc, output, test_args, target):
- """Implementation of CompareOutput that checks the output image and
- checksum against the expected files from the LayoutTest directory.
- """
- failures = []
-
- # If we didn't produce a hash file, this test must be text-only.
- if test_args.hash is None:
- return failures
-
- expected_png_file = path_utils.ExpectedFilename(filename, '.png')
-
- if test_args.show_sources:
- logging.debug('Using %s' % expected_png_file)
-
- # Also report a missing expected PNG file.
- if not os.path.isfile(expected_png_file):
- failures.append(test_failures.FailureMissingImage(self))
-
- # Run the fuzzymatcher
- r = subprocess.call([path_utils.FuzzyMatchPath(),
- test_args.png_path, expected_png_file])
- if r != 0:
- failures.append(test_failures.FailureFuzzyFailure(self))
-
- return failures
« no previous file with comments | « webkit/tools/layout_tests/test_output_xml_to_json.py ('k') | webkit/tools/layout_tests/test_types/image_diff.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698