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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_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 re 28 import re
29 import unittest 29 import unittest
30 30
31 from webkitpy.common.host import Host 31 from webkitpy.common.host import Host
32 from webkitpy.common.system.outputcapture import OutputCapture 32 from webkitpy.common.system.output_capture import OutputCapture
33 from webkitpy.common.webkit_finder import WebKitFinder 33 from webkitpy.common.webkit_finder import WebKitFinder
34 from webkitpy.w3c.test_converter import _W3CTestConverter, convert_for_webkit 34 from webkitpy.w3c.test_converter import _W3CTestConverter, convert_for_webkit
35 from webkitpy.common.system.systemhost_mock import MockSystemHost 35 from webkitpy.common.system.system_host_mock import MockSystemHost
36 from webkitpy.common.system.filesystem_mock import MockFileSystem 36 from webkitpy.common.system.filesystem_mock import MockFileSystem
37 37
38 DUMMY_FILENAME = 'dummy.html' 38 DUMMY_FILENAME = 'dummy.html'
39 DUMMY_PATH = 'dummy/testharness/path' 39 DUMMY_PATH = 'dummy/testharness/path'
40 40
41 41
42 class W3CTestConverterTest(unittest.TestCase): 42 class W3CTestConverterTest(unittest.TestCase):
43 43
44 # FIXME: When we move to using a MockHost, this method should be removed, si nce 44 # FIXME: When we move to using a MockHost, this method should be removed, si nce
45 # then we can just pass in a dummy dir path 45 # then we can just pass in a dummy dir path
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 test_html = """<FONT></FONT>""" 301 test_html = """<FONT></FONT>"""
302 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None) 302 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None)
303 converter.feed(test_html) 303 converter.feed(test_html)
304 self.assertEqual(converter.output(), ([], """<FONT></FONT>""")) 304 self.assertEqual(converter.output(), ([], """<FONT></FONT>"""))
305 305
306 def test_for_comments(self): 306 def test_for_comments(self):
307 test_html = """<!--abc--><!-- foo -->""" 307 test_html = """<!--abc--><!-- foo -->"""
308 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None) 308 converter = _W3CTestConverter(DUMMY_PATH, DUMMY_FILENAME, None)
309 converter.feed(test_html) 309 converter.feed(test_html)
310 self.assertEqual(converter.output(), ([], """<!--abc--><!-- foo -->""")) 310 self.assertEqual(converter.output(), ([], """<!--abc--><!-- foo -->"""))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698