jasmine-headless-webkit/ext/jasmine-webkit-specrunner/Page.cpp
2013-04-10 11:30:26 +04:00

13 lines
469 B
C++

#include <iostream>
#include "Page.h"
Page::Page() : QWebPage() {}
void Page::javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID) {
emit handleError(message, lineNumber, sourceID);
}
void Page::javaScriptAlert(QWebFrame *, const QString &) {}
bool Page::javaScriptConfirm(QWebFrame *, const QString &) { return false; }
bool Page::javaScriptPrompt(QWebFrame *, const QString &, const QString &, QString *) { return false; }