1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/src/ConsoleMessages.cpp

15 lines
410 B
C++
Raw Normal View History

#include "ConsoleMessages.h"
#include "WebPage.h"
#include "WebPageManager.h"
#include "JsonSerializer.h"
ConsoleMessages::ConsoleMessages(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}
void ConsoleMessages::start() {
JsonSerializer serializer;
QByteArray json = serializer.serialize(page()->consoleMessages());
2013-02-11 18:31:41 -05:00
finish(true, json);
}