Chromium Code Reviews| Index: Source/testing/runner/WebTestProxy.cpp |
| diff --git a/Source/testing/runner/WebTestProxy.cpp b/Source/testing/runner/WebTestProxy.cpp |
| index 64a2c24ef136196ebb5da0d4e8c4897d44e08a69..b283c20be3dd90fa67865f816cb235cde4f2405c 100644 |
| --- a/Source/testing/runner/WebTestProxy.cpp |
| +++ b/Source/testing/runner/WebTestProxy.cpp |
| @@ -1413,7 +1413,22 @@ void WebTestProxyBase::didAddMessageToConsole(const WebConsoleMessage& message, |
| // This matches win DumpRenderTree's UIDelegate.cpp. |
| if (!m_logConsoleOutput) |
| return; |
| - m_delegate->printMessage(string("CONSOLE MESSAGE: ")); |
| + string level; |
| + switch (message.level) { |
| + case WebConsoleMessage::LevelDebug: |
| + level = "DEBUG"; |
| + break; |
| + case WebConsoleMessage::LevelLog: |
| + level = "LOG"; |
|
jochen (gone - plz use gerrit)
2013/10/10 09:44:43
maybe use MESSAGE here to minimize the number of t
|
| + break; |
| + case WebConsoleMessage::LevelWarning: |
| + level = "WARNING"; |
| + break; |
| + case WebConsoleMessage::LevelError: |
| + level = "ERROR"; |
| + break; |
| + } |
| + m_delegate->printMessage(string("CONSOLE ") + level + ": "); |
| if (sourceLine) { |
| char buffer[40]; |
| snprintf(buffer, sizeof(buffer), "line %d: ", sourceLine); |