diff options
author | 2021-04-09 18:34:56 +0530 | |
---|---|---|
committer | 2021-04-09 18:34:56 +0530 | |
commit | 6c48c7e5faed0d7c9e26c2f7f10374361ba6b7f5 (patch) | |
tree | 7e26e114988a5eca0465cd4d984a34f4d1e74dfa /src | |
parent | 324a115e028907fe3544dff9517a0d48e77d7cd5 (diff) | |
download | whatsie-6c48c7e5faed0d7c9e26c2f7f10374361ba6b7f5.tar.gz whatsie-6c48c7e5faed0d7c9e26c2f7f10374361ba6b7f5.zip |
update test case to check loaded correctly.
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7fc19e6..73cfd41 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -659,6 +659,15 @@ void MainWindow::checkLoadedCorrectly() { qWarning()<<"Test 1 found"<<result.toString(); loadingQuirk("test1"); + }else if(webEngine->title().contains("Error",Qt::CaseInsensitive)) + { + utils::delete_cache(webEngine->page()->profile()->cachePath()); + utils::delete_cache(webEngine->page()->profile()->persistentStoragePath()); + settings.setValue("useragent",defaultUserAgentStr); + utils * util = new utils(this); + util->DisplayExceptionErrorDialog("test1 handleWebViewTitleChanged(title) title: Error, Resetting UA, Quiting!\nUA: "+settings.value("useragent","DefaultUA").toString()); + + quitAction->trigger(); }else{ qWarning()<<"Test 1 Loaded correctly value:"<<result.toString(); } |