Fix typos I was able to find in `tests/auto' directory.
Change-Id: Id0bfcc18301381ac8b1ca8d5af17bd926e5913d4
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
QTest::newRow("data0") << QSize(10,12) << QSize(6,4) << QSize(10,12);
QTest::newRow("data1") << QSize(0,0) << QSize(6,4) << QSize(6,4);
// This should pick the highest of w,h components independently of each other,
- // thus the result dont have to be equal to neither input1 nor input2.
+ // thus the results don't have to be equal to neither input1 nor input2.
QTest::newRow("data3") << QSize(6,4) << QSize(4,6) << QSize(6,6);
}
QTest::newRow("data0") << QSize(10,12) << QSize(6,4) << QSize(6,4);
QTest::newRow("data1") << QSize(0,0) << QSize(6,4) << QSize(0,0);
// This should pick the lowest of w,h components independently of each other,
- // thus the result dont have to be equal to neither input1 nor input2.
+ // thus the results don't have to be equal to neither input1 nor input2.
QTest::newRow("data3") << QSize(6,4) << QSize(4,6) << QSize(4,4);
}
QTest::newRow("data0") << QSizeF(10.4, 12.8) << QSizeF(6.6, 4.4) << QSizeF(10.4, 12.8);
QTest::newRow("data1") << QSizeF(0.0, 0.0) << QSizeF(6.6, 4.4) << QSizeF(6.6, 4.4);
// This should pick the highest of w,h components independently of each other,
- // thus the result dont have to be equal to neither input1 nor input2.
+ // thus the result don't have to be equal to neither input1 nor input2.
QTest::newRow("data3") << QSizeF(6.6, 4.4) << QSizeF(4.4, 6.6) << QSizeF(6.6, 6.6);
}
QTest::newRow("data0") << QSizeF(10.4, 12.8) << QSizeF(6.6, 4.4) << QSizeF(6.6, 4.4);
QTest::newRow("data1") << QSizeF(0.0, 0.0) << QSizeF(6.6, 4.4) << QSizeF(0.0, 0.0);
// This should pick the lowest of w,h components independently of each other,
- // thus the result dont have to be equal to neither input1 nor input2.
+ // thus the result don't have to be equal to neither input1 nor input2.
QTest::newRow("data3") << QSizeF(6.6, 4.4) << QSizeF(4.4, 6.6) << QSizeF(4.4, 4.4);
}
QTest::newRow("data8") << upper << lower << -1 << 0;
// embedded nulls
- // These dont work as of now. Its OK that these dont work since \0 is not a valid unicode
+ // These don't work as of now. It's OK that these don't work since \0 is not a valid unicode
/*QTest::newRow("data9") << QString(QByteArray("\0", 1)) << QString(QByteArray("\0", 1)) << 0 << 0;
QTest::newRow("data10") << QString(QByteArray("\0", 1)) << QString("") << 1 << 1;
QTest::newRow("data11") << QString("") << QString(QByteArray("\0", 1)) << -1 << -1;
QTest::newRow("data8") << upper << lower << -1 << 0;
// embedded nulls
- // These dont work as of now. Its OK that these dont work since \0 is not a valid unicode
+ // These don't work as of now. It's OK that these don't work since \0 is not a valid unicode
/*QTest::newRow("data9") << QString(QByteArray("\0", 1)) << QString(QByteArray("\0", 1)) << 0 << 0;
QTest::newRow("data10") << QString(QByteArray("\0", 1)) << QString("") << 1 << 1;
QTest::newRow("data11") << QString("") << QString(QByteArray("\0", 1)) << -1 << -1;
void tst_QTextDocumentFragment::resetHasBlockAfterClosedBlockTags()
{
- // when closing tags we have to make sure hasBlock in import() gets resetted
+ // when closing tags we have to make sure hasBlock in import() gets reset
const char html[] = "<body><table><tr><td><td><p></table><p></body>";
setHtml(QString::fromLatin1(html));
QVERIFY(!doc->isEmpty());
/* These requests allow control to move from the simulated CPU to the
- real CPU, calling an arbitary function.
+ real CPU, calling an arbitrary function.
Note that the current ThreadId is inserted as the first argument.
So this call:
QVERIFY(socket->isOpen());
QCOMPARE(socket->bytesToWrite(), qint64(0));
- // dont forget to login
+ // don't forget to login
QCOMPARE((int) socket->write("USER ftptest\r\n"), 14);
}
socket.connectToHostEncrypted(QtNetworkSettings::serverName(), 443);
QVERIFY(! socket.waitForConnected(10000));
- // dont forget to login
+ // don't forget to login
QCOMPARE((int) socket.write("USER ftptest\r\n"), 14);
QCOMPARE((int) socket.write("PASS password\r\n"), 15);
{
qDebug() << "Loading config file from ... " << path;
configPath = path;
- //If there is no config file, dont proceed;
+ //If there is no config file, don't proceed;
if ( !QFile::exists( path ) )
{
return false;
QCOMPARE(ret, 1);
QCOMPARE(keyToSend, -1);
- if (0) { // dont run these tests since the dialog wont close!
+ if (0) { // don't run these tests since the dialog won't close!
keyToSend = Qt::Key_Escape;
sendKeySoon();
ret = QMessageBox::information(0, "title", "text", "Yes", "No", QString(), 1);
QWizardPage page;
page.setTitle("Title");
- page.setSubTitle("SUBTITLE#: The subtitle bust be alligned with the rest of the widget");
+ page.setSubTitle("SUBTITLE#: The subtitle bust be aligned with the rest of the widget");
QLabel label1("Field:");
QLineEdit lineEdit1;
<< "Three")
<< 2;
- QTest::newRow("insert one row in the begining")
+ QTest::newRow("insert one row in the beginning")
<< (QStringList()
<< "Two"
<< "Three"
QItemSelectionModel *oldModel = view->selectionModel();
if (oldModel != m_selectionModel)
delete oldModel;
- view->setModel(this); // this creates a new selection model for the view, but we dont want it either ...
+ view->setModel(this); // this creates a new selection model for the view, but we don't want it either ...
oldModel = view->selectionModel();
view->setSelectionModel(m_selectionModel);
delete oldModel;
{
//QAbstractSpinBox does some call to stylehint into his constructor.
//so while the stylesheet want to access property, it should not crash
- qApp->setStyleSheet("[alignement=\"1\"], [text=\"foo\"] { color:black; }" );
+ qApp->setStyleSheet("[alignment=\"1\"], [text=\"foo\"] { color:black; }" );
QSpinBox box;
}