#ifndef JHW_TEST_PAGE #define JHW_TEST_PAGE #include #include "Page.h" class PageTest : public QObject { Q_OBJECT public: PageTest(); private: bool internalLogCalled; bool consoleLogCalled; Page page; private slots: void internalLog(const QString ¬e, const QString &msg); void consoleLog(const QString &message, int lineNumber, const QString &source); void testJavaScriptConfirmWithLog(); void testJavaScriptConfirmWithoutLog(); void testJavaScriptConsoleMessage(); }; #endif