2
3 [Qt][NRWT] Pass --timeout to DRT/WTR if a test is marked as SLOW.
4 https://bugs.webkit.org/show_bug.cgi?id=90968.
5
6 Reviewed by NOBODY (OOPS!).
7
8 Added functionality in DRT and WTR to use any timeout value while running
9 slow tests (eventually, any test). Now NRWT --time-out-ms determines the
10 timeout value for the test. Added a flag in NRWT (supports_per_test_timeout)
11 to indicate whether the current port supports setting timeout value
12 per test (it's False by default; I enabled it only on Qt).
13 Also corrected a typo in driver.py
14
15 * DumpRenderTree/DumpRenderTree.h:
16 (TestCommand::TestCommand):
17 (TestCommand):
18 * DumpRenderTree/DumpRenderTreeCommon.cpp:
19 (parseInputLine):
20 * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
21 (WebCore::DumpRenderTree::processLine):
22 * Scripts/webkitpy/layout_tests/port/base.py:
23 (Port.supports_per_test_timeout):
24 * Scripts/webkitpy/layout_tests/port/driver.py:
25 (Driver.run_test):
26 (Driver._command_from_driver_input):
27 * Scripts/webkitpy/layout_tests/port/qt.py:
28 (QtPort.supports_per_test_timeout):
29 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
30 (WTR::InjectedBundle::InjectedBundle):
31 (WTR::InjectedBundle::didReceiveMessage):
32 (WTR::InjectedBundle::beginTesting):
33 * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
34 * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
35 (WTR::TestRunner::setCustomTimeout):
36 (WTR):
37 * WebKitTestRunner/InjectedBundle/TestRunner.h:
38 (TestRunner):
39 * WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp:
40 (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded):
41 * WebKitTestRunner/TestController.cpp:
42 (WTR::TestController::TestController):
43 (WTR::TestController::getCustomTimeout):
44 (WTR):
45 (WTR::TestCommand::TestCommand):
46 (TestCommand):
47 (WTR::parseInputLine):
48 (WTR::TestController::runTest):
49 (WTR::TestController::runUntil):
50 * WebKitTestRunner/TestController.h:
51 (TestController):
52 * WebKitTestRunner/TestInvocation.cpp:
53 (WTR::TestInvocation::TestInvocation):
54 (WTR::TestInvocation::setCustomTimeout):
55 (WTR):
56 (WTR::TestInvocation::invoke):
57 * WebKitTestRunner/TestInvocation.h:
58 (TestInvocation):
59