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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/bindings/bindings_tests.py

Issue 2754763002: [Bindings] Fix presubmit run-bindings-tests failure (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 'TestInterfacePartial2.idl', 70 'TestInterfacePartial2.idl',
71 'TestInterfacePartial3.idl', 71 'TestInterfacePartial3.idl',
72 'TestInterfacePartial4.idl', 72 'TestInterfacePartial4.idl',
73 'TestInterfacePartialSecureContext.idl', 73 'TestInterfacePartialSecureContext.idl',
74 'TestInterface2Partial.idl', 74 'TestInterface2Partial.idl',
75 'TestInterface2Partial2.idl', 75 'TestInterface2Partial2.idl',
76 ]) 76 ])
77 77
78 # core/inspector/InspectorInstrumentation.idl is not a valid Blink IDL. 78 # core/inspector/InspectorInstrumentation.idl is not a valid Blink IDL.
79 NON_BLINK_IDL_FILES = frozenset([ 79 NON_BLINK_IDL_FILES = frozenset([
80 'InspectorInstrumentation.idl', 80 'InstrumentingProbes.idl',
81 ]) 81 ])
82 82
83 COMPONENT_DIRECTORY = frozenset(['core', 'modules']) 83 COMPONENT_DIRECTORY = frozenset(['core', 'modules'])
84 84
85 SOURCE_PATH = webkit_finder.get_source_dir() 85 SOURCE_PATH = webkit_finder.get_source_dir()
86 TEST_INPUT_DIRECTORY = os.path.join(SOURCE_PATH, 'bindings', 'tests', 'idls') 86 TEST_INPUT_DIRECTORY = os.path.join(SOURCE_PATH, 'bindings', 'tests', 'idls')
87 REFERENCE_DIRECTORY = os.path.join(SOURCE_PATH, 'bindings', 'tests', 'results') 87 REFERENCE_DIRECTORY = os.path.join(SOURCE_PATH, 'bindings', 'tests', 'results')
88 88
89 # component -> ComponentInfoProvider. 89 # component -> ComponentInfoProvider.
90 # Note that this dict contains information about testing idl files, which live 90 # Note that this dict contains information about testing idl files, which live
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 373
374 def run_bindings_tests(reset_results, verbose): 374 def run_bindings_tests(reset_results, verbose):
375 # Generate output into the reference directory if resetting results, or 375 # Generate output into the reference directory if resetting results, or
376 # a temp directory if not. 376 # a temp directory if not.
377 if reset_results: 377 if reset_results:
378 print 'Resetting results' 378 print 'Resetting results'
379 return bindings_tests(REFERENCE_DIRECTORY, verbose) 379 return bindings_tests(REFERENCE_DIRECTORY, verbose)
380 with TemporaryDirectory() as temp_dir: 380 with TemporaryDirectory() as temp_dir:
381 return bindings_tests(temp_dir, verbose) 381 return bindings_tests(temp_dir, verbose)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698