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

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

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)
Patch Set: Convert CSSProperties.in to json5 format 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 23 matching lines...) Expand all
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). 44 (the list of what needs prefixes is read from Source/core/css/CSSPropert ies.json5).
45 2. Each reftest has its own copy of its reference file following 45 2. Each reftest has its own copy of its reference file following
46 the naming conventions new-run-webkit-tests expects. 46 the naming conventions new-run-webkit-tests expects.
47 3. If a reference files lives outside the directory of the test that 47 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 48 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 49 imported into a different relative position to the test file
50 (in the same directory). 50 (in the same directory).
51 4. Any tags with the class "instructions" have style="display:none" added 51 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 52 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 53 want to strip out (the test result parser only recognizes pure testharne ss.js
54 output and not those instructions). 54 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. 443 """Checks whether a source path is too long to import.
444 444
445 Args: 445 Args:
446 Absolute path of file to be imported. 446 Absolute path of file to be imported.
447 447
448 Returns: 448 Returns:
449 True if the path is too long to import, False if it's OK. 449 True if the path is too long to import, False if it's OK.
450 """ 450 """
451 path_from_repo_base = os.path.relpath(source_path, self.source_repo_path ) 451 path_from_repo_base = os.path.relpath(source_path, self.source_repo_path )
452 return len(path_from_repo_base) > MAX_PATH_LENGTH 452 return len(path_from_repo_base) > MAX_PATH_LENGTH
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698