OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 Google Inc. All rights reserved. | 2 # Copyright (c) 2012 Google Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 # `importScript` function must not be used in any files | 69 # `importScript` function must not be used in any files |
70 # except module headers. Refer to devtools.gyp file for | 70 # except module headers. Refer to devtools.gyp file for |
71 # the module header list. | 71 # the module header list. |
72 allowed_import_statements_files = [ | 72 allowed_import_statements_files = [ |
73 "search/AdvancedSearchView.js", | 73 "search/AdvancedSearchView.js", |
74 "console/ConsolePanel.js", | 74 "console/ConsolePanel.js", |
75 "elements/ElementsPanel.js", | 75 "elements/ElementsPanel.js", |
76 "resources/ResourcesPanel.js", | 76 "resources/ResourcesPanel.js", |
77 "network/NetworkPanel.js", | 77 "network/NetworkPanel.js", |
| 78 "settings/SettingsScreen.js", |
78 "sources/SourcesPanel.js", | 79 "sources/SourcesPanel.js", |
79 "timeline/TimelinePanel.js", | 80 "timeline/TimelinePanel.js", |
80 "profiler/ProfilesPanel.js", | 81 "profiler/ProfilesPanel.js", |
81 "audits/AuditsPanel.js", | 82 "audits/AuditsPanel.js", |
82 "layers/LayersPanel.js", | 83 "layers/LayersPanel.js", |
83 "extensions/ExtensionServer.js", | 84 "extensions/ExtensionServer.js", |
84 "source_frame/SourceFrame.js", | 85 "source_frame/SourceFrame.js", |
85 ] | 86 ] |
86 | 87 |
87 type_checked_jsdoc_tags_list = ["param", "return", "type", "enum"] | 88 type_checked_jsdoc_tags_list = ["param", "return", "type", "enum"] |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 errors_found |= hasErrors(validateInjectedScriptOut) | 393 errors_found |= hasErrors(validateInjectedScriptOut) |
393 | 394 |
394 if errors_found: | 395 if errors_found: |
395 print "ERRORS DETECTED" | 396 print "ERRORS DETECTED" |
396 | 397 |
397 os.remove(injectedScriptSourceTmpFile) | 398 os.remove(injectedScriptSourceTmpFile) |
398 os.remove(injectedScriptCanvasModuleSourceTmpFile) | 399 os.remove(injectedScriptCanvasModuleSourceTmpFile) |
399 os.remove(compiler_args_file.name) | 400 os.remove(compiler_args_file.name) |
400 os.remove(protocol_externs_file) | 401 os.remove(protocol_externs_file) |
401 shutil.rmtree(modules_dir, True) | 402 shutil.rmtree(modules_dir, True) |
OLD | NEW |