aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlqt
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-07-13 11:58:26 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-07-14 15:10:45 +0200
commit5b1a3d50e618bb0ee9a7a095d65b24f26b633b00 (patch)
tree93f8b0e50d29bff955a59438b396b79910cf337a /tests/auto/qml/qqmlqt
parent7ca78c28eb1440a1b4b7c1830bea024ba69e32bb (diff)
qv4codegen: Provide more accurate SourceLocations
Previously the source locations in the bytecodegenerator were often imprecise due to them not being updated often enough. This change makes sure that FieldMemberExpressions and IdentifierExpressions report more accurate locations instead. Change-Id: Ib53cda5cc927551c25ed32ed34d4b65d82f5e199 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlqt')
-rw-r--r--tests/auto/qml/qqmlqt/tst_qqmlqt.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp b/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
index 62e42072b0..f7148f9318 100644
--- a/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
+++ b/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
@@ -929,9 +929,10 @@ void tst_qqmlqt::dateTimeFormattingVariants()
if (variant.typeId() == QMetaType::QColor || variant.typeId() == QMetaType::Int) {
if (method == "formatTime") {
// formatTime has special error handling as it parses the strings itself.
- QTest::ignoreMessage(QtWarningMsg, QRegularExpression(
- "formatting.qml:18: Error: Invalid argument passed to "
- "formatTime"));
+ QTest::ignoreMessage(
+ QtWarningMsg,
+ QRegularExpression("formatting.qml:19: Error: Invalid argument passed to "
+ "formatTime"));
} else {
QTest::ignoreMessage(QtWarningMsg,
QRegularExpression("Could not convert argument 0 at"));