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

Side by Side Diff: Tools/Scripts/webkitpy/w3c/test_importer_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 #!/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 12 matching lines...) Expand all
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 optparse 30 import optparse
31 import shutil 31 import shutil
32 import tempfile 32 import tempfile
33 import unittest2 as unittest 33 from webkitpy.thirdparty import unittest2 as unittest
34 34
35 from webkitpy.common.host_mock import MockHost 35 from webkitpy.common.host_mock import MockHost
36 from webkitpy.common.system.filesystem_mock import MockFileSystem 36 from webkitpy.common.system.filesystem_mock import MockFileSystem
37 from webkitpy.common.system.executive_mock import MockExecutive2, ScriptError 37 from webkitpy.common.system.executive_mock import MockExecutive2, ScriptError
38 from webkitpy.common.system.outputcapture import OutputCapture 38 from webkitpy.common.system.outputcapture import OutputCapture
39 from webkitpy.w3c.test_importer import TestImporter 39 from webkitpy.w3c.test_importer import TestImporter
40 40
41 41
42 FAKE_SOURCE_DIR = '/blink/w3c' 42 FAKE_SOURCE_DIR = '/blink/w3c'
43 FAKE_REPO_DIR = '/blink' 43 FAKE_REPO_DIR = '/blink'
(...skipping 26 matching lines...) Expand all
70 70
71 importer = TestImporter(host, FAKE_SOURCE_DIR, FAKE_REPO_DIR, optparse.V alues({"overwrite": False})) 71 importer = TestImporter(host, FAKE_SOURCE_DIR, FAKE_REPO_DIR, optparse.V alues({"overwrite": False}))
72 oc = OutputCapture() 72 oc = OutputCapture()
73 oc.capture_output() 73 oc.capture_output()
74 try: 74 try:
75 importer.do_import() 75 importer.do_import()
76 finally: 76 finally:
77 oc.restore_output() 77 oc.restore_output()
78 78
79 # FIXME: Needs more tests. 79 # FIXME: Needs more tests.
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/w3c/test_converter_unittest.py ('k') | Tools/Scripts/webkitpy/w3c/test_parser_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698