QTest::addRow -> QTest::newRow

addRow is only in since Qt 5.9 and we don't need it
remotes/origin/Applications/17.12
Albert Astals Cid 9 years ago
parent 0ac3f27a9e
commit a78d2da440
  1. 6
      autotests/parttest.cpp

@ -341,11 +341,11 @@ void PartTest::testeTextSelectionOverAndAcrossLinks_data()
QTest::addColumn<QString>("expectedResult");
// can text-select "over and across" hyperlink.
QTest::addRow("start selection before link") << 0.1564 << 0.2943 << QStringLiteral(" a link: foo@foo.b");
QTest::newRow("start selection before link") << 0.1564 << 0.2943 << QStringLiteral(" a link: foo@foo.b");
// can text-select starting at text and ending selection in middle of hyperlink.
QTest::addRow("start selection in the middle of the link") << 0.28 << 0.382 << QStringLiteral("o.bar\n");
QTest::newRow("start selection in the middle of the link") << 0.28 << 0.382 << QStringLiteral("o.bar\n");
// text selection works when selecting left to right or right to left
QTest::addRow("start selection after link") << 0.40 << 0.05 << QStringLiteral("This is a link: foo@foo.bar\n");
QTest::newRow("start selection after link") << 0.40 << 0.05 << QStringLiteral("This is a link: foo@foo.bar\n");
}
// can text-select "over and across" hyperlink.

Loading…
Cancel
Save