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

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

Issue 2633223003: Convert CSSProperties.in to JSON5 format (Closed)
Patch Set: Remove CSSProperties input from webkitpy/w3c/ script Created 3 years, 11 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
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 22 matching lines...) Expand all
33 Rules for importing: 33 Rules for importing:
34 34
35 * By default, only reference tests and JS tests are imported, (because pixel 35 * By default, only reference tests and JS tests are imported, (because pixel
36 tests take longer to run). This can be overridden with the --all flag. 36 tests take longer to run). This can be overridden with the --all flag.
37 37
38 * By default, if test files by the same name already exist in the destination 38 * By default, if test files by the same name already exist in the destination
39 directory, they are overwritten. This is because this script is used to 39 directory, they are overwritten. This is because this script is used to
40 refresh files periodically. This can be overridden with the --no-overwrite fl ag. 40 refresh files periodically. This can be overridden with the --no-overwrite fl ag.
41 41
42 * All files are converted to work in Blink: 42 * All files are converted to work in Blink:
43 1. All CSS properties requiring the -webkit- vendor prefix are prefixed 43 1. All CSS properties requiring the -webkit- vendor prefix are prefixed.
44 (the list of what needs prefixes is read from Source/core/css/CSSPropert ies.in).
45 2. Each reftest has its own copy of its reference file following 44 2. Each reftest has its own copy of its reference file following
46 the naming conventions new-run-webkit-tests expects. 45 the naming conventions new-run-webkit-tests expects.
47 3. If a reference files lives outside the directory of the test that 46 3. If a reference files lives outside the directory of the test that
48 uses it, it is checked for paths to support files as it will be 47 uses it, it is checked for paths to support files as it will be
49 imported into a different relative position to the test file 48 imported into a different relative position to the test file
50 (in the same directory). 49 (in the same directory).
51 4. Any tags with the class "instructions" have style="display:none" added 50 4. Any tags with the class "instructions" have style="display:none" added
52 to them. Some w3c tests contain instructions to manual testers which we 51 to them. Some w3c tests contain instructions to manual testers which we
53 want to strip out (the test result parser only recognizes pure testharne ss.js 52 want to strip out (the test result parser only recognizes pure testharne ss.js
54 output and not those instructions). 53 output and not those instructions).
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 """Checks whether a source path is too long to import. 442 """Checks whether a source path is too long to import.
444 443
445 Args: 444 Args:
446 Absolute path of file to be imported. 445 Absolute path of file to be imported.
447 446
448 Returns: 447 Returns:
449 True if the path is too long to import, False if it's OK. 448 True if the path is too long to import, False if it's OK.
450 """ 449 """
451 path_from_repo_base = os.path.relpath(source_path, self.source_repo_path ) 450 path_from_repo_base = os.path.relpath(source_path, self.source_repo_path )
452 return len(path_from_repo_base) > MAX_PATH_LENGTH 451 return len(path_from_repo_base) > MAX_PATH_LENGTH
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698