| OLD | NEW |
| 1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 Google Inc. 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 # 1. Redistributions of source code must retain the above copyright | 6 # 1. Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # 2. Redistributions in binary form must reproduce the above copyright | 8 # 2. Redistributions in binary form must reproduce the above copyright |
| 9 # notice, this list of conditions and the following disclaimer in the | 9 # notice, this list of conditions and the following disclaimer in the |
| 10 # documentation and/or other materials provided with the distribution. | 10 # documentation and/or other materials provided with the distribution. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 # Python compiler is incomplete; skip IDLs with unimplemented features | 45 # Python compiler is incomplete; skip IDLs with unimplemented features |
| 46 SKIP_PYTHON = set([ | 46 SKIP_PYTHON = set([ |
| 47 'TestCustomAccessors.idl', | 47 'TestCustomAccessors.idl', |
| 48 'TestEventTarget.idl', | 48 'TestEventTarget.idl', |
| 49 'TestImplements.idl', | 49 'TestImplements.idl', |
| 50 'TestInterface.idl', | 50 'TestInterface.idl', |
| 51 'TestObject.idl', | 51 'TestObject.idl', |
| 52 'TestPartialInterface.idl', | 52 'TestPartialInterface.idl', |
| 53 'TestSVG.idl', | 53 'TestSVG.idl', |
| 54 'TestTypedefs.idl', | |
| 55 ]) | 54 ]) |
| 56 | 55 |
| 57 real_input_directory = '.' # Relative to Source/ | 56 real_input_directory = '.' # Relative to Source/ |
| 58 test_input_directory = os.path.join('bindings', 'tests', 'idls') | 57 test_input_directory = os.path.join('bindings', 'tests', 'idls') |
| 59 test_support_input_directory = os.path.join('bindings', 'tests', 'idls', 'testin
g') | 58 test_support_input_directory = os.path.join('bindings', 'tests', 'idls', 'testin
g') |
| 60 reference_directory = os.path.join('bindings', 'tests', 'results') | 59 reference_directory = os.path.join('bindings', 'tests', 'results') |
| 61 reference_event_names_filename = os.path.join(reference_directory, 'EventInterfa
ces.in') | 60 reference_event_names_filename = os.path.join(reference_directory, 'EventInterfa
ces.in') |
| 62 | 61 |
| 63 | 62 |
| 64 class ScopedTempFileProvider(object): | 63 class ScopedTempFileProvider(object): |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 300 |
| 302 all_tests_passed = self.run_tests() | 301 all_tests_passed = self.run_tests() |
| 303 if all_tests_passed: | 302 if all_tests_passed: |
| 304 if self.verbose: | 303 if self.verbose: |
| 305 print | 304 print |
| 306 print PASS_MESSAGE | 305 print PASS_MESSAGE |
| 307 return 0 | 306 return 0 |
| 308 print | 307 print |
| 309 print FAIL_MESSAGE | 308 print FAIL_MESSAGE |
| 310 return -1 | 309 return -1 |
| OLD | NEW |