| Index: Source/testing/runner/WebTestProxy.cpp
|
| diff --git a/Source/testing/runner/WebTestProxy.cpp b/Source/testing/runner/WebTestProxy.cpp
|
| index f6b40b5a1c9f9904bf78544e463c12b8834460e3..66f5f9ea549d8fc026b18f5e87ed97b4b2186ee0 100644
|
| --- a/Source/testing/runner/WebTestProxy.cpp
|
| +++ b/Source/testing/runner/WebTestProxy.cpp
|
| @@ -1313,7 +1313,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 = "MESSAGE";
|
| + 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);
|
|
|