summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-05-03 11:51:54 +0200
committerSami Shalayel <sami.shalayel@qt.io>2023-05-04 09:38:14 +0200
commit9a0fe2eddb1b3b37e43aec116278def48edd98ad (patch)
tree8126d5306bddf407a1a1135d123e41ddc8bfd17b /tests/auto
parent5eb97a1810a6b25373e4894fd2d2260d18884daf (diff)
downloadqtdeclarative-9a0fe2eddb1b3b37e43aec116278def48edd98ad.tar.gz
qmlls: Do not return relative paths to clients for go-to-type-definition
Make sure that there is a file:// in the URI returned to the clients, as else the path will be interpreted as being relative (which it is not). Task-number: QTBUG-113336 Change-Id: I4cc781aaf4514759cfb21f949dd8cc12eb93421a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qmlls/modules/tst_qmlls_modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qmlls/modules/tst_qmlls_modules.cpp b/tests/auto/qmlls/modules/tst_qmlls_modules.cpp
index 1611c817c1..80b13c7883 100644
--- a/tests/auto/qmlls/modules/tst_qmlls_modules.cpp
+++ b/tests/auto/qmlls/modules/tst_qmlls_modules.cpp
@@ -515,7 +515,7 @@ void tst_qmlls_modules::goToTypeDefinition()
QCOMPARE(result->size(), 1);
Location l = result->front();
- QCOMPARE(u"file://"_s + l.uri, expectedUri);
+ QCOMPARE(l.uri, expectedUri);
QCOMPARE(l.range.start.line, expectedStartLine);
QCOMPARE(l.range.start.character, expectedStartCharacter);
QCOMPARE(l.range.end.line, expectedEndLine);