summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2010-12-05 10:28:28 (GMT)
committerJoão Abecasis <joao@abecasis.name>2010-12-05 10:28:28 (GMT)
commit9371ba70ac747484b1300d96c2a80dcdbc872fe2 (patch)
tree787ccea6f135cf105811021ac446618ec7453674 /tests/auto
parentdcc7df8ed32d900a616d415c0eb2565e559f6435 (diff)
downloadQt-9371ba70ac747484b1300d96c2a80dcdbc872fe2.zip
Qt-9371ba70ac747484b1300d96c2a80dcdbc872fe2.tar.gz
Qt-9371ba70ac747484b1300d96c2a80dcdbc872fe2.tar.bz2
Fix spelling in comments
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qdir/tst_qdir.cpp2
-rw-r--r--tests/auto/qfile/tst_qfile.cpp4
-rw-r--r--tests/auto/qfiledialog/tst_qfiledialog.cpp8
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp6
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index 6a81da6..dc46f52 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -928,7 +928,7 @@ void tst_QDir::current()
if (!path.isEmpty()) {
bool b = QDir::setCurrent(path);
- // If path is non existant, then setCurrent should be false (currentDir is empty in testData)
+ // If path is non existent, then setCurrent should be false (currentDir is empty in testData)
QVERIFY(b == !currentDir.isEmpty());
}
if (!currentDir.isEmpty()) {
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index a8715e2..c19079f 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -414,7 +414,7 @@ void tst_QFile::cleanupTestCase()
// attributes and the contents itself
// will be changed as far as we have a
// proper way to handle files in the
-// testing enviroment.
+// testing environment.
//------------------------------------------
void tst_QFile::exists()
@@ -1702,7 +1702,7 @@ void tst_QFile::seekAfterEndOfFile()
void tst_QFile::FILEReadWrite()
{
- // Tests modifing a file. First creates it then reads in 4 bytes and then overwrites these
+ // Tests modifying a file. First creates it then reads in 4 bytes and then overwrites these
// 4 bytes with new values. At the end check to see the file contains the new values.
QFile::remove("FILEReadWrite.txt");
diff --git a/tests/auto/qfiledialog/tst_qfiledialog.cpp b/tests/auto/qfiledialog/tst_qfiledialog.cpp
index ec244c5..668a3e0 100644
--- a/tests/auto/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/qfiledialog/tst_qfiledialog.cpp
@@ -187,7 +187,7 @@ public:
QSize sizeHint(const QStyleOptionViewItem &, const QModelIndex &) const { return QSize(); }
};
-// emited any time the selection model emits current changed
+// emitted any time the selection model emits current changed
void tst_QFiledialog::currentChangedSignal()
{
QNonNativeFileDialog fd;
@@ -212,7 +212,7 @@ void tst_QFiledialog::currentChangedSignal()
QCOMPARE(spyCurrentChanged.count(), 1);
}
-// only emited from the views, sidebar, or lookin combo
+// only emitted from the views, sidebar, or lookin combo
void tst_QFiledialog::directoryEnteredSignal()
{
#if defined QT_BUILD_INTERNAL
@@ -273,7 +273,7 @@ void tst_QFiledialog::filesSelectedSignal_data()
QTest::newRow("existingFiles") << QFileDialog::ExistingFiles;
}
-// emited when the dialog closes with the selected files
+// emitted when the dialog closes with the selected files
void tst_QFiledialog::filesSelectedSignal()
{
QNonNativeFileDialog fd;
@@ -317,7 +317,7 @@ void tst_QFiledialog::filesSelectedSignal()
QCOMPARE(spyFilesSelected.count(), 1);
}
-// only emited when the combo box is activated
+// only emitted when the combo box is activated
void tst_QFiledialog::filterSelectedSignal()
{
QNonNativeFileDialog fd;
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp
index 79c5184..3bbe2ca 100644
--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp
@@ -1653,8 +1653,8 @@ void tst_QFileInfo::owner()
DWORD bufSize = 1024;
if (GetUserNameW(usernameBuf, &bufSize)) {
userName = QString::fromWCharArray(usernameBuf, bufSize);
- // Special case : If the user is a member of Adminstrators group, all files
- // created by the current user are owned by the Admistrators group.
+ // Special case : If the user is a member of Administrators group, all files
+ // created by the current user are owned by the Administrators group.
LPLOCALGROUP_USERS_INFO_0 pBuf = NULL;
DWORD dwLevel = 0;
DWORD dwFlags = LG_INCLUDE_INDIRECT ;
@@ -1664,7 +1664,7 @@ void tst_QFileInfo::owner()
NET_API_STATUS nStatus;
nStatus = NetUserGetLocalGroups(0, usernameBuf, dwLevel, dwFlags, (LPBYTE *) &pBuf,
dwPrefMaxLen, &dwEntriesRead, &dwTotalEntries);
- // Check if the current user is a member of Adminstrators group
+ // Check if the current user is a member of Administrators group
if (nStatus == NERR_Success && pBuf){
for (int i = 0; i < dwEntriesRead; i++) {
QString groupName = QString::fromWCharArray(pBuf[i].lgrui0_name);