diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-03 14:05:27 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-05 23:07:42 +0300 |
commit | af7da146be4f4c9db69d85e33cc7229bb775e5b2 (patch) | |
tree | 2116f86c4679324800aca370986a79270cdef2bd /src/settings | |
parent | Add actions to RekonqView (diff) | |
download | rekonq-af7da146be4f4c9db69d85e33cc7229bb775e5b2.tar.xz |
Add rekonq::DefaultUrl enum
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/test/rekonqrc | 5 | ||||
-rw-r--r-- | src/settings/test/test_settings.cpp | 6 |
2 files changed, 6 insertions, 5 deletions
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<QLineEdit *>("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(); } |