|
Lines 185-190
layer at (0,0) size 800x34
Tools/Scripts/webkitpy/layout_tests/port/test.py_sec1
|
| 185 |
tests.add_reftest('failures/unexpected/reftest.html', 'failures/unexpected/reftest-expected.html', same_image=False) |
185 |
tests.add_reftest('failures/unexpected/reftest.html', 'failures/unexpected/reftest-expected.html', same_image=False) |
| 186 |
tests.add_reftest('failures/unexpected/mismatch.html', 'failures/unexpected/mismatch-expected-mismatch.html', same_image=True) |
186 |
tests.add_reftest('failures/unexpected/mismatch.html', 'failures/unexpected/mismatch-expected-mismatch.html', same_image=True) |
| 187 |
# FIXME: Add a reftest which crashes. |
187 |
# FIXME: Add a reftest which crashes. |
|
|
188 |
tests.add('reftests/foo/test.html') |
| 189 |
tests.add('reftests/foo/test-ref.html') |
| 188 |
|
190 |
|
| 189 |
tests.add('websocket/tests/passes/text.html') |
191 |
tests.add('websocket/tests/passes/text.html') |
| 190 |
|
192 |
|
|
Lines 211-233
def unit_test_filesystem(files=None):
Tools/Scripts/webkitpy/layout_tests/port/test.py_sec2
|
| 211 |
test_list = unit_test_list() |
213 |
test_list = unit_test_list() |
| 212 |
files = files or {} |
214 |
files = files or {} |
| 213 |
|
215 |
|
| 214 |
def add_file(files, test, suffix, contents): |
216 |
def add_test_file(files, test, suffix, contents): |
| 215 |
dirname = test.name[0:test.name.rfind('/')] |
217 |
dirname = test.name[0:test.name.rfind('/')] |
| 216 |
base = test.base |
218 |
base = test.base |
| 217 |
path = LAYOUT_TEST_DIR + '/' + dirname + '/' + base + suffix |
219 |
add_file(files, dirname + '/' + base + suffix, contents) |
| 218 |
files[path] = contents |
220 |
|
|
|
221 |
def add_file(files, file_name, contents): |
| 222 |
files[LAYOUT_TEST_DIR + '/' + file_name] = contents |
| 219 |
|
223 |
|
| 220 |
# Add each test and the expected output, if any. |
224 |
# Add each test and the expected output, if any. |
| 221 |
for test in test_list.tests.values(): |
225 |
for test in test_list.tests.values(): |
| 222 |
add_file(files, test, '.html', '') |
226 |
add_test_file(files, test, '.html', '') |
| 223 |
if test.is_reftest: |
227 |
if test.is_reftest: |
| 224 |
continue |
228 |
continue |
| 225 |
if test.actual_audio: |
229 |
if test.actual_audio: |
| 226 |
add_file(files, test, '-expected.wav', test.expected_audio) |
230 |
add_test_file(files, test, '-expected.wav', test.expected_audio) |
| 227 |
continue |
231 |
continue |
| 228 |
|
232 |
|
| 229 |
add_file(files, test, '-expected.txt', test.expected_text) |
233 |
add_test_file(files, test, '-expected.txt', test.expected_text) |
| 230 |
add_file(files, test, '-expected.png', test.expected_image) |
234 |
add_test_file(files, test, '-expected.png', test.expected_image) |
| 231 |
|
235 |
|
| 232 |
|
236 |
|
| 233 |
# Add the test_expectations file. |
237 |
# Add the test_expectations file. |
|
Lines 253-258
WONTFIX SKIP : failures/expected/keyboar
Tools/Scripts/webkitpy/layout_tests/port/test.py_sec3
|
| 253 |
WONTFIX SKIP : failures/expected/exception.html = CRASH |
257 |
WONTFIX SKIP : failures/expected/exception.html = CRASH |
| 254 |
""" |
258 |
""" |
| 255 |
|
259 |
|
|
|
260 |
add_file(files, 'reftests/foo/reftest.list', """ |
| 261 |
== test.html test-ref.html |
| 262 |
""") |
| 263 |
|
| 256 |
# FIXME: This test was only being ignored because of missing a leading '/'. |
264 |
# FIXME: This test was only being ignored because of missing a leading '/'. |
| 257 |
# Fixing the typo causes several tests to assert, so disabling the test entirely. |
265 |
# Fixing the typo causes several tests to assert, so disabling the test entirely. |
| 258 |
# Add in a file should be ignored by test_files.find(). |
266 |
# Add in a file should be ignored by test_files.find(). |