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

13 lines
469 B
C++
Raw Permalink Normal View History

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; }
bool Page::javaScriptPrompt(QWebFrame *, const QString &, const QString &, QString *) { return false; }