2011-09-20 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
+ WebKitTestRunner: Provide usage if run without arguments
+
+ If WTR is run without either one or more filenames, or
+ a '-' to indicate server mode, we don't need to start
+ up the test machinery. Doing so might actually crash,
+ as we'll exit the application immedeatly after anyways.
+
+ Reviewed by Simon Hausmann.
+
+ * WebKitTestRunner/TestController.cpp:
+ (WTR::TestController::initialize):
+
+2011-09-20 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
+
[Qt] Don't use QFont before initializing QApplication
Could potentially result in crash.
{
platformInitialize();
+ if (argc < 2) {
+ fputs("Usage: WebKitTestRunner [options] filename [filename2..n]\n", stderr);
+ // FIXME: Refactor option parsing to allow us to print
+ // an auto-generated list of options.
+ exit(1);
+ }
+
bool printSupportedFeatures = false;
for (int i = 1; i < argc; ++i) {