Пример #1
0
from utilities import get_first_interface_name_from_idl
from utilities import to_snake_case

PASS_MESSAGE = 'All tests PASS!'
FAIL_MESSAGE = """Some tests FAIL!
To update the reference files, execute:
    third_party/blink/tools/run_bindings_tests.py --reset-results

If the failures are not due to your changes, test results may be out of sync;
please rebaseline them in a separate CL, after checking that tests fail in ToT.
In CL, please set:
NOTRY=true
TBR=someone in third_party/blink/renderer/bindings/OWNERS or WATCHLISTS:bindings
"""

SOURCE_PATH = path_finder.get_source_dir()
DEPENDENCY_IDL_FILES = frozenset([
    'test_implements.idl',
    'test_implements_2.idl',
    'test_implements_3.idl',
    'test_interface_partial.idl',
    'test_interface_partial_2.idl',
    'test_interface_partial_3.idl',
    'test_interface_partial_4.idl',
    'test_interface_partial_secure_context.idl',
    'test_interface_2_partial.idl',
    'test_interface_2_partial_2.idl',
])

COMPONENT_DIRECTORY = frozenset(['core', 'modules'])
TEST_INPUT_DIRECTORY = os.path.join(SOURCE_PATH, 'bindings', 'tests', 'idls')
Пример #2
0
def main():
    return typ.main(top_level_dirs=[
        path_finder.get_blink_tools_dir(),
        os.path.join(path_finder.get_source_dir(), 'build', 'scripts')
    ],
                    path=[path_finder.get_blinkpy_thirdparty_dir()])