diff --git a/ChangeLog b/ChangeLog index 8009164..95e6057 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,28 @@ +2015-11-07 10:47 marc + + * bootstrap.sh, debian/control.in: there is no qt4-default + +2015-11-07 09:23 marc + + * bootstrap.sh: there is no qt4-default + +2015-11-04 11:59 marc + + * src/commands.hxx: removed empty lines and comments from test + results + +2015-11-04 10:34 marc + + * bootstrap.sh, build-in-docker.sh, configure.ac, + debian/control.in, examples, resolve-debbuilddeps.sh, + webtester.spec.in: build in docker tested + +2015-11-04 08:52 marc + + * ChangeLog, ax_init_standard_project.m4, bootstrap.sh, + configure.ac, examples, examples/makefile.am, makefile.am, test, + test/makefile.am: examples is test + 2015-11-03 21:54 marc * debian/control.in: updated dependencies diff --git a/bootstrap.sh b/bootstrap.sh index 550f92e..f3bc743 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -196,7 +196,7 @@ FILES command; + if (!in.size()) throw MissingLine(); QString line(in.takeFirst().trimmed()); QString cmd(line), args; int space(line.indexOf(' ')); diff --git a/src/exceptions.hxx b/src/exceptions.hxx index 7406002..7928ac4 100644 --- a/src/exceptions.hxx +++ b/src/exceptions.hxx @@ -49,6 +49,12 @@ class MissingArguments: public ParseError { ParseError("missing arguments, requires "+req+", got: "+args) {} }; +class MissingLine: public ParseError { + public: + MissingLine(): + ParseError("line expectet at end of file") {} +}; + class TestFailed: public Exception { public: TestFailed(QString why): Exception("Test Failed: "+why) {} diff --git a/src/webpage.hxx b/src/webpage.hxx index b5363b1..dfd8b1b 100644 --- a/src/webpage.hxx +++ b/src/webpage.hxx @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -31,6 +32,11 @@ class TestWebPage: public QWebPage { QWebPage(parent), _unattended(unattended) { setNetworkAccessManager(new NetworkAccessManager(this)); + settings()->setOfflineStorageDefaultQuota(1024*1024*1024); + settings()->setOfflineStoragePath("/tmp/"); + settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true); + //settings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true); + settings()->setAttribute(QWebSettings::LocalStorageEnabled, true); } virtual ~TestWebPage() { if (!_nextFile.isEmpty() && !std::uncaught_exception())