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

Side by Side Diff: Tools/Scripts/webkitpy/style/checker_unittest.py

Issue 18418010: Check in the thirdparty libs needed for webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- coding: utf-8; -*- 1 # -*- coding: utf-8; -*-
2 # 2 #
3 # Copyright (C) 2009 Google Inc. All rights reserved. 3 # Copyright (C) 2009 Google Inc. All rights reserved.
4 # Copyright (C) 2009 Torch Mobile Inc. 4 # Copyright (C) 2009 Torch Mobile Inc.
5 # Copyright (C) 2009 Apple Inc. All rights reserved. 5 # Copyright (C) 2009 Apple Inc. All rights reserved.
6 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) 6 # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com)
7 # 7 #
8 # Redistribution and use in source and binary forms, with or without 8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions are 9 # modification, are permitted provided that the following conditions are
10 # met: 10 # met:
(...skipping 17 matching lines...) Expand all
28 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 33
34 """Unit tests for style.py.""" 34 """Unit tests for style.py."""
35 35
36 import logging 36 import logging
37 import os 37 import os
38 import unittest2 as unittest 38 from webkitpy.thirdparty import unittest2 as unittest
39 39
40 import checker as style 40 import checker as style
41 from webkitpy.common.system.logtesting import LogTesting, TestLogStream 41 from webkitpy.common.system.logtesting import LogTesting, TestLogStream
42 from checker import _BASE_FILTER_RULES 42 from checker import _BASE_FILTER_RULES
43 from checker import _MAX_REPORTS_PER_CATEGORY 43 from checker import _MAX_REPORTS_PER_CATEGORY
44 from checker import _PATH_RULES_SPECIFIER as PATH_RULES_SPECIFIER 44 from checker import _PATH_RULES_SPECIFIER as PATH_RULES_SPECIFIER
45 from checker import _all_categories 45 from checker import _all_categories
46 from checker import check_webkit_style_configuration 46 from checker import check_webkit_style_configuration
47 from checker import check_webkit_style_parser 47 from checker import check_webkit_style_parser
48 from checker import configure_logging 48 from checker import configure_logging
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 """Test that carriage returns aren't stripped from files that are allowe d to contain them.""" 860 """Test that carriage returns aren't stripped from files that are allowe d to contain them."""
861 file_path = 'carriage_returns_allowed.txt' 861 file_path = 'carriage_returns_allowed.txt'
862 lines = ['line1\r', 'line2\r'] 862 lines = ['line1\r', 'line2\r']
863 line_numbers = [100] 863 line_numbers = [100]
864 self._processor.process(lines=lines, 864 self._processor.process(lines=lines,
865 file_path=file_path, 865 file_path=file_path,
866 line_numbers=line_numbers) 866 line_numbers=line_numbers)
867 # The carriage return checker should never have been invoked, and so 867 # The carriage return checker should never have been invoked, and so
868 # should not have saved off any lines. 868 # should not have saved off any lines.
869 self.assertFalse(hasattr(self.carriage_checker, 'lines')) 869 self.assertFalse(hasattr(self.carriage_checker, 'lines'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698