12016-09-07 Youenn Fablet <youenn@apple.com>
2
3 Some WPT testharness-based tests are flaky due to always-changing assertion failure messages
4 https://bugs.webkit.org/show_bug.cgi?id=161693
5
6 Reviewed by NOBODY (OOPS!).
7
8 Adding a new boolean attribute called shouldLogTestharnessFailures to TestRunner interface.
9 By default, this attribute is true but can be set with the --no-testharness-failure-log test option.
10
11 When set to false, testharnessreport.js will no longer report error messages in case of failing tests.
12 This allows making some tests non flaky.
13
14 * DumpRenderTree/DumpRenderTree.h:
15 * DumpRenderTree/DumpRenderTreeCommon.cpp:
16 (parseInputLine):
17 * DumpRenderTree/TestRunner.cpp:
18 (getShouldLogTestharnessFailuresCallback):
19 (TestRunner::staticValues):
20 * DumpRenderTree/TestRunner.h:
21 (TestRunner::setShouldLogTestharnessFailures):
22 (TestRunner::shouldLogTestharnessFailures):
23 * DumpRenderTree/mac/DumpRenderTree.mm:
24 (runTest):
25 * DumpRenderTree/win/DumpRenderTree.cpp:
26 (runTest):
27 * Scripts/webkitpy/layout_tests/controllers/manager.py:
28 (Manager.__init__):
29 (Manager._test_input_for_file):
30 * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py:
31 (SingleTestRunner.__init__):
32 (SingleTestRunner._driver_input):
33 * Scripts/webkitpy/layout_tests/models/test_input.py:
34 (TestInput.__init__):
35 (TestInput.__repr__):
36 * Scripts/webkitpy/port/driver.py:
37 (DriverInput.__init__):
38 (Driver._command_from_driver_input):
39 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
40 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
41 (WTR::InjectedBundle::didReceiveMessageToPage):
42 (WTR::InjectedBundle::beginTesting):
43 * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
44 (WTR::InjectedBundle::shouldLogTestHarnessFailures):
45 * WebKitTestRunner/InjectedBundle/TestRunner.h:
46 (WTR::TestRunner::setShouldLogTestharnessFailures):
47 (WTR::TestRunner::shouldLogTestharnessFailures):
48 (WTR::TestRunner::timeout): Deleted.
49 * WebKitTestRunner/TestController.cpp:
50 (WTR::parseInputLine):
51 (WTR::TestController::runTest):
52 (WTR::TestCommand::TestCommand): Deleted.
53 * WebKitTestRunner/TestInvocation.cpp:
54 (WTR::TestInvocation::invoke):
55 * WebKitTestRunner/TestInvocation.h:
56 (WTR::TestInvocation::setShouldLogTestHarnessFailures):
57 (WTR::TestInvocation::customTimeout): Deleted.
58