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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 modules = json.loads(js_modules_file.read()) | 61 modules = json.loads(js_modules_file.read()) |
62 except: | 62 except: |
63 print "ERROR: Failed to read %s" % js_modules_name | 63 print "ERROR: Failed to read %s" % js_modules_name |
64 raise | 64 raise |
65 | 65 |
66 # `importScript` function must not be used in any files | 66 # `importScript` function must not be used in any files |
67 # except module headers. Refer to devtools.gyp file for | 67 # except module headers. Refer to devtools.gyp file for |
68 # the module header list. | 68 # the module header list. |
69 allowed_import_statements_files = [ | 69 allowed_import_statements_files = [ |
70 "utilities.js", | 70 "utilities.js", |
71 "AdvancedSearchController.js", | 71 "AdvancedSearchView.js", |
72 "ConsolePanel.js", | 72 "ConsolePanel.js", |
73 "ElementsPanel.js", | 73 "ElementsPanel.js", |
74 "ResourcesPanel.js", | 74 "ResourcesPanel.js", |
75 "NetworkPanel.js", | 75 "NetworkPanel.js", |
76 "SourcesPanel.js", | 76 "SourcesPanel.js", |
77 "TimelinePanel.js", | 77 "TimelinePanel.js", |
78 "ProfilesPanel.js", | 78 "ProfilesPanel.js", |
79 "AuditsPanel.js", | 79 "AuditsPanel.js", |
80 "LayersPanel.js", | 80 "LayersPanel.js", |
81 "CodeMirrorTextEditor.js", | 81 "CodeMirrorTextEditor.js", |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 errors_found |= hasErrors(canvasModuleCompileOut) | 355 errors_found |= hasErrors(canvasModuleCompileOut) |
356 | 356 |
357 if errors_found: | 357 if errors_found: |
358 print "ERRORS DETECTED" | 358 print "ERRORS DETECTED" |
359 | 359 |
360 os.remove(injectedScriptSourceTmpFile) | 360 os.remove(injectedScriptSourceTmpFile) |
361 os.remove(injectedScriptCanvasModuleSourceTmpFile) | 361 os.remove(injectedScriptCanvasModuleSourceTmpFile) |
362 os.remove(compiler_args_file.name) | 362 os.remove(compiler_args_file.name) |
363 os.remove(protocol_externs_file) | 363 os.remove(protocol_externs_file) |
364 shutil.rmtree(modules_dir, True) | 364 shutil.rmtree(modules_dir, True) |
OLD | NEW |