[Qt] Add robot loader timeout and extra time options.
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>
Tue, 21 Sep 2010 11:25:54 +0000 (11:25 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 21 Sep 2010 17:30:23 +0000 (14:30 -0300)
commita47890e7d591cf1ec6cf022de156e0d49220ea8e
tree13c756ab783f89e4030daa379854feeea98a3d6c
parentab9219b6110a84898f18a6a962ea9eedddd1102e
[Qt] Add robot loader timeout and extra time options.
https://bugs.webkit.org/show_bug.cgi?id=46172

Reviewed by Andreas Kling.

[-robot-timeout <s>]: Load the next page after s seconds if the current
page didn't finish loading.
[-robot-extra-time <s>]: Wait s seconds after the current page finished
loading before loading the next one. This should allow some time for the
page's JavaScript to execute.

* QtTestBrowser/launcherwindow.cpp:
(LauncherWindow::applyPrefs):
* QtTestBrowser/main.cpp:
(LauncherApplication::robotTimeout):
(LauncherApplication::robotExtraTime):
(LauncherApplication::LauncherApplication):
(LauncherApplication::handleUserOptions):
(main):
* QtTestBrowser/urlloader.cpp:
(UrlLoader::UrlLoader):
(UrlLoader::loadNext):
(UrlLoader::loadUrlList):
* QtTestBrowser/urlloader.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/QtTestBrowser/main.cpp
WebKitTools/QtTestBrowser/urlloader.cpp
WebKitTools/QtTestBrowser/urlloader.h