- http://bugzilla.opendarwin.org/show_bug.cgi?id=8443
An easier way to save iExploder tests.
* Scripts/run-iexploder-tests: Added a --get option to save a test into a file.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13897
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-04-17 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Darin.
+
+ - http://bugzilla.opendarwin.org/show_bug.cgi?id=8443
+ An easier way to save iExploder tests.
+
+ * Scripts/run-iexploder-tests: Added a --get option to save a test into a file.
+
2006-04-17 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
# Argument handling
my $guardMalloc = '';
my $httpdPort = 8000;
+my $downloadTest;
GetOptions(
'guard-malloc|g' => \$guardMalloc,
+ 'get=s' => \$downloadTest,
'port=i' => \$httpdPort
);
my $httpdOpen = 0;
openHTTPDIfNeeded();
-runSafari();
+
+if ($downloadTest) {
+ system "/usr/bin/curl -o ~/Desktop/iexploder$downloadTest.html \"http://127.0.0.1:$httpdPort/iexploder.cgi?lookup=1&test=$downloadTest\"";
+ print "Saved the test as iexploder$downloadTest.html on the desktop\n";
+} else {
+ runSafari();
+}
+
closeHTTPD();