35 lines
669 B
C++
35 lines
669 B
C++
#ifndef JHW_TEST_PAGE
|
|
#define JHW_TEST_PAGE
|
|
|
|
#include <QtGui>
|
|
#include <QtWebKit>
|
|
#include <unit++.h>
|
|
|
|
#include "HeadlessSpecRunner/Page.h"
|
|
|
|
using namespace unitpp;
|
|
|
|
namespace HeadlessSpecRunner {
|
|
class PageTestHelper : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
PageTestHelper();
|
|
bool internalLogCalled;
|
|
void addPage(HeadlessSpecRunner::Page &page);
|
|
|
|
public slots:
|
|
void internalLog(const QString ¬e, const QString &msg);
|
|
};
|
|
|
|
class PageTest : public suite {
|
|
public:
|
|
PageTest();
|
|
HeadlessSpecRunner::Page page;
|
|
HeadlessSpecRunner::PageTestHelper helper;
|
|
|
|
void testJavaScriptConfirmWithLog();
|
|
};
|
|
}
|
|
|
|
#endif
|