From 6c48c7e5faed0d7c9e26c2f7f10374361ba6b7f5 Mon Sep 17 00:00:00 2001 From: keshavbhatt Date: Fri, 9 Apr 2021 18:34:56 +0530 Subject: update test case to check loaded correctly. --- src/mainwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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"<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:"<