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

Side by Side Diff: Tools/Scripts/webkitpy/w3c/test_importer.py

Issue 353983003: Making it possible to import mediastream tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Setting execute bits on importer scripts. Created 6 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_converter_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 # 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 23 matching lines...) Expand all
34 34
35 - By default, only reftests and jstest are imported. This can be overridden 35 - By default, only reftests and jstest are imported. This can be overridden
36 with a -a or --all argument 36 with a -a or --all argument
37 37
38 - Also by default, if test files by the same name already exist in the 38 - Also by default, if test files by the same name already exist in the
39 destination directory, they are overwritten with the idea that running 39 destination directory, they are overwritten with the idea that running
40 this script would refresh files periodically. This can also be 40 this script would refresh files periodically. This can also be
41 overridden by a -n or --no-overwrite flag 41 overridden by a -n or --no-overwrite flag
42 42
43 - All files are converted to work in WebKit: 43 - All files are converted to work in WebKit:
44 1. Paths to testharness.js files are modified point to Webkit's copy 44 1. Paths to testharness.js and vendor-prefix.js files are modified to
45 of them in LayoutTests/resources, using the correct relative path 45 point to Webkit's copy of them in LayoutTests/resources, using the
46 from the new location. 46 correct relative path from the new location.
47 2. All CSS properties requiring the -webkit-vendor prefix are prefixed 47 2. All CSS properties requiring the -webkit-vendor prefix are prefixed
48 (the list of what needs prefixes is read from Source/WebCore/CSS/CSS Properties.in). 48 (the list of what needs prefixes is read from Source/WebCore/CSS/CSS Properties.in).
49 3. Each reftest has its own copy of its reference file following 49 3. Each reftest has its own copy of its reference file following
50 the naming conventions new-run-webkit-tests expects. 50 the naming conventions new-run-webkit-tests expects.
51 4. If a reference files lives outside the directory of the test that 51 4. If a reference files lives outside the directory of the test that
52 uses it, it is checked for paths to support files as it will be 52 uses it, it is checked for paths to support files as it will be
53 imported into a different relative position to the test file 53 imported into a different relative position to the test file
54 (in the same directory). 54 (in the same directory).
55 5. Any tags with the class "instructions" have style="display:none" add ed
56 to them. Some w3c tests contain instructions to manual testers which we
57 want to strip out (the test result parser only recognizes pure testh arness.js
58 output and not those instructions).
55 59
56 - Upon completion, script outputs the total number tests imported, broken 60 - Upon completion, script outputs the total number tests imported, broken
57 down by test type 61 down by test type
58 62
59 - Also upon completion, if we are not importing the files in place, each 63 - Also upon completion, if we are not importing the files in place, each
60 directory where files are imported will have a w3c-import.log file writte n with 64 directory where files are imported will have a w3c-import.log file writte n with
61 a timestamp, the W3C Mercurial changeset if available, the list of CSS 65 a timestamp, the W3C Mercurial changeset if available, the list of CSS
62 properties used that require prefixes, the list of imported files, and 66 properties used that require prefixes, the list of imported files, and
63 guidance for future test modification and maintenance. On subsequent 67 guidance for future test modification and maintenance. On subsequent
64 imports, this file is read to determine if files have been 68 imports, this file is read to determine if files have been
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 for prop in prop_list: 478 for prop in prop_list:
475 import_log.write(prop + '\n') 479 import_log.write(prop + '\n')
476 else: 480 else:
477 import_log.write('None\n') 481 import_log.write('None\n')
478 import_log.write('------------------------------------------------------ ------------------\n') 482 import_log.write('------------------------------------------------------ ------------------\n')
479 import_log.write('List of files:\n') 483 import_log.write('List of files:\n')
480 for item in file_list: 484 for item in file_list:
481 import_log.write(item + '\n') 485 import_log.write(item + '\n')
482 486
483 import_log.close() 487 import_log.close()
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/w3c/test_converter_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698