| OLD | NEW |
| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 '/blink/w3c/dir1/my-ref-test.html': '<html><head><link rel="match" h
ref="not-here.html" /></head></html>', | 133 '/blink/w3c/dir1/my-ref-test.html': '<html><head><link rel="match" h
ref="not-here.html" /></head></html>', |
| 134 '/mock-checkout/third_party/WebKit/LayoutTests/W3CImportExpectations
': '', | 134 '/mock-checkout/third_party/WebKit/LayoutTests/W3CImportExpectations
': '', |
| 135 }) | 135 }) |
| 136 copier = TestCopier(host, FAKE_SOURCE_REPO_DIR) | 136 copier = TestCopier(host, FAKE_SOURCE_REPO_DIR) |
| 137 copier.find_importable_tests() | 137 copier.find_importable_tests() |
| 138 self.assertEqual(copier.import_list, []) | 138 self.assertEqual(copier.import_list, []) |
| 139 self.assertLog([ | 139 self.assertLog([ |
| 140 'WARNING: Skipping: /blink/w3c/dir1/my-ref-test.html\n', | 140 'WARNING: Skipping: /blink/w3c/dir1/my-ref-test.html\n', |
| 141 'WARNING: Reason: Ref file "/blink/w3c/dir1/not-here.html" was not
found.\n' | 141 'WARNING: Reason: Ref file "/blink/w3c/dir1/not-here.html" was not
found.\n' |
| 142 ]) | 142 ]) |
| 143 | |
| 144 def test_should_try_to_convert_positive_cases(self): | |
| 145 self.assertTrue(TestCopier.should_try_to_convert({}, 'foo.css', 'LayoutT
ests/external/wpt/css/x')) | |
| 146 self.assertTrue(TestCopier.should_try_to_convert({}, 'foo.htm', 'LayoutT
ests/external/wpt/css/x')) | |
| 147 self.assertTrue(TestCopier.should_try_to_convert({}, 'foo.html', 'Layout
Tests/external/wpt/css/x')) | |
| 148 self.assertTrue(TestCopier.should_try_to_convert({}, 'foo.xht', 'LayoutT
ests/external/wpt/css/x')) | |
| 149 self.assertTrue(TestCopier.should_try_to_convert({}, 'foo.xhtml', 'Layou
tTests/external/wpt/css/x')) | |
| 150 | |
| 151 def test_should_not_try_to_convert_js_test(self): | |
| 152 self.assertFalse(TestCopier.should_try_to_convert({'is_jstest': True}, '
foo.html', 'LayoutTests/external/wpt/css/x')) | |
| 153 | |
| 154 def test_should_not_try_to_convert_test_in_wpt(self): | |
| 155 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.html', 'Layou
tTests/external/wpt/foo')) | |
| 156 | |
| 157 def test_should_not_try_to_convert_other_file_types(self): | |
| 158 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.bar', 'Layout
Tests/external/wpt/css/x')) | |
| 159 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.js', 'LayoutT
ests/external/wpt/css/x')) | |
| 160 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.md', 'LayoutT
ests/external/wpt/css/x')) | |
| 161 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.png', 'Layout
Tests/external/wpt/css/x')) | |
| 162 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.svg', 'Layout
Tests/external/wpt/css/x')) | |
| 163 self.assertFalse(TestCopier.should_try_to_convert({}, 'foo.svgz', 'Layou
tTests/external/wpt/css/x')) | |
| OLD | NEW |