From af7da146be4f4c9db69d85e33cc7229bb775e5b2 Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 3 Sep 2022 14:05:27 +0300 Subject: Add rekonq::DefaultUrl enum --- src/settings/test/rekonqrc | 5 +++-- src/settings/test/test_settings.cpp | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/settings') diff --git a/src/settings/test/rekonqrc b/src/settings/test/rekonqrc index 97329a6d..fe67194c 100644 --- a/src/settings/test/rekonqrc +++ b/src/settings/test/rekonqrc @@ -1,8 +1,8 @@ [General] FirstRun=true lang=TODO: change type to StringList -homepage=http://www.kde.org/ -newtab=http://www.kde.org/ +homepage=about:blank +newtab=about:blank searchUrl=https://duckduckgo.com/?q=%1 pluginPath=TODO: change type to Path @@ -12,6 +12,7 @@ downloadPathAsk=true userAgent=TODO [Appearance] +IconTheme=tabler defaultFontSize=16 minFontSize=7 defaultEncoding=ISO 8859-1 diff --git a/src/settings/test/test_settings.cpp b/src/settings/test/test_settings.cpp index 24bbf349..6efc64c3 100644 --- a/src/settings/test/test_settings.cpp +++ b/src/settings/test/test_settings.cpp @@ -86,14 +86,14 @@ TEST(settings, SettingsDialog) // 1 setting is hidden and won't be set by the dialog // save and reset will both call setValue on all non-hidden settings EXPECT_CALL(mockSettings, setValue(_, _)).Times(n_settings * 2 - 3); - EXPECT_CALL(mockSettings, setValue(QStringEq("homepage"), QVariantEq("about:blank"))); + EXPECT_CALL(mockSettings, setValue(QStringEq("homepage"), QVariantEq("https://kde.org"))); // change setting { SettingsDialog dlg(&mockSettings); auto *homepage = dlg.findChild("homepage"); - EXPECT_TRUE(homepage->text() == QLatin1String("http://www.kde.org/")) << qUtf8Printable(homepage->text()); - homepage->setText("about:blank"); + EXPECT_TRUE(homepage->text() == QLatin1String("about:blank")) << qUtf8Printable(homepage->text()); + homepage->setText("https://kde.org"); dlg.accept(); } -- cgit v1.2.1