diff options
| author | Kunda Ki <[email protected]> | 2025-09-03 12:04:13 +0000 |
|---|---|---|
| committer | Kunda Ki <[email protected]> | 2025-09-03 12:04:13 +0000 |
| commit | 479ce3a1641398a8506812300834666614013850 (patch) | |
| tree | e137016cebe538153d07b010f350842d6c3a6f25 /src/tests | |
| parent | 93dd0db2eeb1fc41013e87e73f7fbd1956f26cd6 (diff) | |
Fix several user-facing and non-user-facing typos
Found via `codespell -S "*.desktop,*.po,*.svg,*.xml,./po" -L aparent,childs,goup,lokal`
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/dolphinquerytest.cpp | 2 | ||||
| -rw-r--r-- | src/tests/kitemlistcontrollerexpandtest.cpp | 2 | ||||
| -rw-r--r-- | src/tests/viewpropertiestest.cpp | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/dolphinquerytest.cpp b/src/tests/dolphinquerytest.cpp index 76cea999f..937dc6065 100644 --- a/src/tests/dolphinquerytest.cpp +++ b/src/tests/dolphinquerytest.cpp @@ -172,7 +172,7 @@ void DolphinQueryTest::testBalooSearchParsing() const Search::DolphinQuery query = Search::DolphinQuery{searchUrl, /** No backupSearchPath should be needed because searchUrl should be valid. */ QUrl{}}; - // Checkt that the URL is supported + // Check that the URL is supported QVERIFY(Search::isSupportedSearchScheme(searchUrl.scheme())); // Check for parsed text (would be displayed on the input search bar) diff --git a/src/tests/kitemlistcontrollerexpandtest.cpp b/src/tests/kitemlistcontrollerexpandtest.cpp index 05708f4d2..8f16251b4 100644 --- a/src/tests/kitemlistcontrollerexpandtest.cpp +++ b/src/tests/kitemlistcontrollerexpandtest.cpp @@ -110,7 +110,7 @@ void KItemListControllerExpandTest::testDirExpand() QCOMPARE(m_view->itemLayout(), KFileItemListView::DetailsLayout); m_view->setSupportsItemExpanding(true); - // intial state + // initial state QCOMPARE(m_spyDirectoryLoadingCompleted->count(), 1); QCOMPARE(m_model->count(), 3); QCOMPARE(m_selectionManager->currentItem(), 0); diff --git a/src/tests/viewpropertiestest.cpp b/src/tests/viewpropertiestest.cpp index 9252f17ba..1836f0445 100644 --- a/src/tests/viewpropertiestest.cpp +++ b/src/tests/viewpropertiestest.cpp @@ -245,14 +245,14 @@ void ViewPropertiesTest::testExtendedAttributeFull() KFileMetaData::UserMetaData metadata(m_testDir->url().toLocalFile()); if (!metadata.isSupported()) { - QSKIP("need extended attribute/filesystem metadata to be usefull"); + QSKIP("need extended attribute/filesystem metadata to be useful"); } QStorageInfo storageInfo(m_testDir->url().toLocalFile()); auto blockSize = storageInfo.blockSize(); KFileMetaData::UserMetaData::Error result; - // write a close to block size theorical maximum size for attributes in Linux for ext4 + // write a close to block size theoretical maximum size for attributes in Linux for ext4 // and btrfs (4Kib typically) when ReiserFS/XFS allow XATTR_SIZE_MAX (64Kib) result = metadata.setAttribute("data", QString(blockSize - 50, 'a')); if (result != KFileMetaData::UserMetaData::NoSpace) { @@ -294,13 +294,13 @@ void ViewPropertiesTest::testUseAsDefaultViewSettings() }); ViewProperties globalProps(globalPropertiesPath); - // Check that theres no .directory file and metadata is supported + // Check that there's no .directory file and metadata is supported QString dotDirectoryFile = m_testDir->url().toLocalFile() + "/.directory"; QVERIFY(!QFile::exists(dotDirectoryFile)); KFileMetaData::UserMetaData testDirMetadata(m_testDir->url().toLocalFile()); KFileMetaData::UserMetaData globalDirMetadata(globalPropertiesPath.toLocalFile()); if (!testDirMetadata.isSupported()) { - QSKIP("need extended attribute/filesystem metadata to be usefull"); + QSKIP("need extended attribute/filesystem metadata to be useful"); } const auto newDefaultViewMode = DolphinView::Mode::DetailsView; @@ -345,13 +345,13 @@ void ViewPropertiesTest::testUseAsCustomDefaultViewSettings() }); ViewProperties globalProps(globalPropertiesPath); - // Check that theres no .directory file and metadata is supported + // Check that there's no .directory file and metadata is supported QString dotDirectoryFile = m_testDir->url().toLocalFile() + "/.directory"; QVERIFY(!QFile::exists(dotDirectoryFile)); KFileMetaData::UserMetaData testDirMetadata(m_testDir->url().toLocalFile()); KFileMetaData::UserMetaData globalDirMetadata(globalPropertiesPath.toLocalFile()); if (!testDirMetadata.isSupported()) { - QSKIP("need extended attribute/filesystem metadata to be usefull"); + QSKIP("need extended attribute/filesystem metadata to be useful"); } // Equivalent of useAsDefault in ViewPropertiesDialog |
