Changeset View
Changeset View
Standalone View
Standalone View
src/tests/altertable/altertable.cpp
Context not available. | |||||
33 | #include <QApplication> | 33 | #include <QApplication> | ||
---|---|---|---|---|---|
34 | #include <QFile> | 34 | #include <QFile> | ||
35 | #include <QDir> | 35 | #include <QDir> | ||
36 | #include <QRegExp> | 36 | #include <QRegularExpression> | ||
37 | #include <QClipboard> | 37 | #include <QClipboard> | ||
38 | #include <QDebug> | 38 | #include <QDebug> | ||
39 | 39 | | |||
Context not available. | |||||
282 | .arg(~result ? "cancelled" : "false")); | 282 | .arg(~result ? "cancelled" : "false")); | ||
283 | return false; | 283 | return false; | ||
284 | } | 284 | } | ||
285 | schemaDebugString.remove(QRegExp(",$")); //no need to have "," at the end of lines | 285 | schemaDebugString.remove(QRegularExpression(",$")); //no need to have "," at the end of lines | ||
286 | return true; | 286 | return true; | ||
287 | } | 287 | } | ||
288 | 288 | | |||
Context not available. | |||||
313 | expectedLine = testFileStream.readLine(); | 313 | expectedLine = testFileStream.readLine(); | ||
314 | if (skipColonsAndStripWhiteSpace) { | 314 | if (skipColonsAndStripWhiteSpace) { | ||
315 | expectedLine = expectedLine.stripWhiteSpace(); | 315 | expectedLine = expectedLine.stripWhiteSpace(); | ||
316 | expectedLine.remove(QRegExp(",$")); //no need to have "," at the end of lines | 316 | expectedLine.remove(QRegularExpression(",$")); //no need to have "," at the end of lines | ||
317 | } | 317 | } | ||
318 | } | 318 | } | ||
319 | if (testFileStreamAtEnd || endCommand == expectedLine.stripWhiteSpace()) { | 319 | if (testFileStreamAtEnd || endCommand == expectedLine.stripWhiteSpace()) { | ||
Context not available. | |||||
332 | resultLine = resultStream.readLine(); | 332 | resultLine = resultStream.readLine(); | ||
333 | if (skipColonsAndStripWhiteSpace) { | 333 | if (skipColonsAndStripWhiteSpace) { | ||
334 | resultLine = resultLine.stripWhiteSpace(); | 334 | resultLine = resultLine.stripWhiteSpace(); | ||
335 | resultLine.remove(QRegExp(",$")); //no need to have "," at the end of lines | 335 | resultLine.remove(QRegularExpressions(",$")); //no need to have "," at the end of lines | ||
336 | } | 336 | } | ||
337 | if (resultLine != expectedLine) { | 337 | if (resultLine != expectedLine) { | ||
338 | showError( | 338 | showError( | ||
Context not available. |