jasmine-headless-webkit/ext/jasmine-webkit-specrunner/Page.cpp

17 lines
405 B
C++
Raw Normal View History

2011-08-01 17:09:08 +00:00
#include <QtGui>
#include <QtWebKit>
2011-08-26 15:18:04 +00:00
#include <iostream>
2011-08-01 17:09:08 +00:00
#include "Page.h"
Page::Page() : QWebPage() {}
2011-08-01 17:09:08 +00:00
void Page::javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID) {
emit handleError(message, lineNumber, sourceID);
2011-10-25 15:25:28 +00:00
}
2011-10-26 02:22:29 +00:00
void Page::javaScriptAlert(QWebFrame *, const QString &) {}
bool Page::javaScriptConfirm(QWebFrame *, const QString &) {
return false;
}