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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py

Issue 2578213005: Use underscores to separate words in filenames in webkitpy. (Closed)
Patch Set: Fix check for attribute in output_capture.py. Created 4 years 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
OLDNEW
1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions 4 # modification, are permitted provided that the following conditions
5 # are met: 5 # are met:
6 # 6 #
7 # 1. Redistributions of source code must retain the above 7 # 1. Redistributions of source code must retain the above
8 # copyright notice, this list of conditions and the following 8 # copyright notice, this list of conditions and the following
9 # disclaimer. 9 # disclaimer.
10 # 2. Redistributions in binary form must reproduce the above 10 # 2. Redistributions in binary form must reproduce the above
(...skipping 11 matching lines...) Expand all
22 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 23 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
24 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 24 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
25 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 # SUCH DAMAGE. 26 # SUCH DAMAGE.
27 27
28 import os 28 import os
29 import unittest 29 import unittest
30 30
31 from webkitpy.common.host_mock import MockHost 31 from webkitpy.common.host_mock import MockHost
32 from webkitpy.common.system.outputcapture import OutputCapture 32 from webkitpy.common.system.output_capture import OutputCapture
33 from webkitpy.w3c.test_parser import TestParser 33 from webkitpy.w3c.test_parser import TestParser
34 34
35 35
36 class TestParserTest(unittest.TestCase): 36 class TestParserTest(unittest.TestCase):
37 37
38 def test_analyze_test_reftest_one_match(self): 38 def test_analyze_test_reftest_one_match(self):
39 test_html = """<head> 39 test_html = """<head>
40 <link rel="match" href="green-box-ref.xht" /> 40 <link rel="match" href="green-box-ref.xht" />
41 </head> 41 </head>
42 """ 42 """
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 self.assertEqual(parser.filename, 'some/bogus/path.html') 223 self.assertEqual(parser.filename, 'some/bogus/path.html')
224 self.assertIsNone(parser.test_doc) 224 self.assertIsNone(parser.test_doc)
225 self.assertIsNone(parser.ref_doc) 225 self.assertIsNone(parser.ref_doc)
226 226
227 def test_load_file_with_non_ascii_tags(self): 227 def test_load_file_with_non_ascii_tags(self):
228 host = MockHost() 228 host = MockHost()
229 host.filesystem.files['/some/path.xml'] = '<d\xc3\x98dd></d\xc3\x98dd>' 229 host.filesystem.files['/some/path.xml'] = '<d\xc3\x98dd></d\xc3\x98dd>'
230 parser = TestParser('/some/path.xml', host) 230 parser = TestParser('/some/path.xml', host)
231 self.assertEqual(parser.filename, '/some/path.xml') 231 self.assertEqual(parser.filename, '/some/path.xml')
232 self.assertIsNone(parser.test_doc) 232 self.assertIsNone(parser.test_doc)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698