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

Side by Side Diff: Tools/Scripts/webkitpy/w3c/test_parser_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
« no previous file with comments | « Tools/Scripts/webkitpy/w3c/test_importer_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 3 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions 6 # modification, are permitted provided that the following conditions
7 # are met: 7 # are met:
8 # 8 #
9 # 1. Redistributions of source code must retain the above 9 # 1. Redistributions of source code must retain the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 10 matching lines...) Expand all
21 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 21 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
22 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
26 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 26 # TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
27 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 # SUCH DAMAGE. 28 # SUCH DAMAGE.
29 29
30 import os 30 import os
31 import unittest2 as unittest 31 from webkitpy.thirdparty import unittest2 as unittest
32 32
33 from webkitpy.common.system.outputcapture import OutputCapture 33 from webkitpy.common.system.outputcapture import OutputCapture
34 from webkitpy.w3c.test_parser import TestParser 34 from webkitpy.w3c.test_parser import TestParser
35 35
36 36
37 options = {'all': False, 'no_overwrite': False} 37 options = {'all': False, 'no_overwrite': False}
38 38
39 39
40 class TestParserTest(unittest.TestCase): 40 class TestParserTest(unittest.TestCase):
41 41
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 test_info = parser.analyze_test(test_contents=test_html) 208 test_info = parser.analyze_test(test_contents=test_html)
209 209
210 self.assertEqual(test_info, None, 'test should have been skipped') 210 self.assertEqual(test_info, None, 'test should have been skipped')
211 211
212 def test_analyze_non_html_file(self): 212 def test_analyze_non_html_file(self):
213 """ Tests analyze_test() with a file that has no html""" 213 """ Tests analyze_test() with a file that has no html"""
214 # FIXME: use a mock filesystem 214 # FIXME: use a mock filesystem
215 parser = TestParser(options, os.path.join(os.path.dirname(__file__), 'te st_parser.py')) 215 parser = TestParser(options, os.path.join(os.path.dirname(__file__), 'te st_parser.py'))
216 test_info = parser.analyze_test() 216 test_info = parser.analyze_test()
217 self.assertEqual(test_info, None, 'no tests should have been found in th is file') 217 self.assertEqual(test_info, None, 'no tests should have been found in th is file')
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/w3c/test_importer_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698