Title: [100094] trunk/Tools
Revision
100094
Author
[email protected]
Date
2011-11-13 13:30:11 -0800 (Sun, 13 Nov 2011)

Log Message

command line control of webcore log channels in chromium DumpRenderTree
https://bugs.webkit.org/show_bug.cgi?id=72126

The option --webcore-log-channels=<foo>,<bar>,<quux> is the same as
what chromium takes.

Reviewed by Kent Tamura.

* DumpRenderTree/chromium/DumpRenderTree.cpp:
(main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (100093 => 100094)


--- trunk/Tools/ChangeLog	2011-11-13 21:05:38 UTC (rev 100093)
+++ trunk/Tools/ChangeLog	2011-11-13 21:30:11 UTC (rev 100094)
@@ -1,3 +1,16 @@
+2011-11-13  Gavin Peters  <[email protected]>
+
+        command line control of webcore log channels in chromium DumpRenderTree
+        https://bugs.webkit.org/show_bug.cgi?id=72126
+        
+        The option --webcore-log-channels=<foo>,<bar>,<quux> is the same as
+        what chromium takes.
+
+        Reviewed by Kent Tamura.
+
+        * DumpRenderTree/chromium/DumpRenderTree.cpp:
+        (main):
+
 2011-11-12  Ariya Hidayat  <[email protected]>
 
         [Qt] Fix minor config typo in the build tool documentation

Modified: trunk/Tools/DumpRenderTree/chromium/DumpRenderTree.cpp (100093 => 100094)


--- trunk/Tools/DumpRenderTree/chromium/DumpRenderTree.cpp	2011-11-13 21:05:38 UTC (rev 100093)
+++ trunk/Tools/DumpRenderTree/chromium/DumpRenderTree.cpp	2011-11-13 21:30:11 UTC (rev 100094)
@@ -66,6 +66,7 @@
 static const char optionStressDeopt[] = "--stress-deopt";
 static const char optionJavaScriptFlags[] = "--js-flags=";
 static const char optionNoTimeout[] = "--no-timeout";
+static const char optionWebCoreLogChannels[] = "--webcore-log-channels=";
 
 class WebKitSupportTestEnvironment {
 public:
@@ -205,7 +206,10 @@
             _javascript_Flags = argument.substr(strlen(optionJavaScriptFlags));
         else if (argument == optionNoTimeout)
             noTimeout = true;
-        else if (argument.size() && argument[0] == '-')
+        else if (!argument.find(optionWebCoreLogChannels)) {
+            string channels = argument.substr(strlen(optionWebCoreLogChannels));
+            webkit_support::EnableWebCoreLogChannels(channels);
+        } else if (argument.size() && argument[0] == '-')
             fprintf(stderr, "Unknown option: %s\n", argv[i]);
         else
             tests.append(argument);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to