diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-08-03 17:01:39 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-08-07 20:44:01 +0200 |
commit | 9bc8445766b0a4f8f3126f0a725d58426c2b2d39 (patch) | |
tree | d07f6a15e3a8a23371c2f05fb0de63242da9c3b5 /tests/auto/qml/qqmljsscope | |
parent | 2d0f45552e785c0ed504f2633da48281e8a52349 (diff) |
QQmlJSScope: purge qualifiedname
It is only used by a test (which doesn't test any other functionality
besides that we get the correct qualified name).
QQmlJSImporter::setQualifiedNamesOn keeps its current name, but probably
should be renamed.
Change-Id: Ie36c342943b545be0de7bba53a2fbd6c6f0adc0d
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmljsscope')
-rw-r--r-- | tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp b/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp index 2a29dd4aa3..43c119b232 100644 --- a/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp +++ b/tests/auto/qml/qqmljsscope/tst_qqmljsscope.cpp @@ -106,7 +106,6 @@ private Q_SLOTS: void scriptIndices(); void extensions(); void emptyBlockBinding(); - void qualifiedName(); void resolvedNonUniqueScopes(); void compilationUnitsAreCompatible(); void attachedTypeResolution_data(); @@ -676,30 +675,6 @@ void tst_qqmljsscope::emptyBlockBinding() QVERIFY(root->hasOwnPropertyBindings(u"y"_s)); } -void tst_qqmljsscope::qualifiedName() -{ - QQmlJSScope::ConstPtr root = run(u"qualifiedName.qml"_s); - QVERIFY(root); - - auto qualifiedNameOf = [](const QQmlJSScope::ConstPtr &ptr) -> QString { - if (ptr->baseType()) - return ptr->baseType()->qualifiedName(); - else - return u""_s; - }; - - QCOMPARE(root->childScopes().size(), 4); - QQmlJSScope::ConstPtr b = root->childScopes()[0]; - QQmlJSScope::ConstPtr d = root->childScopes()[1]; - QQmlJSScope::ConstPtr qualifiedA = root->childScopes()[2]; - QQmlJSScope::ConstPtr qualifiedB = root->childScopes()[3]; - - QCOMPARE(qualifiedNameOf(b), "QualifiedNamesTests/B 5.0-6.0"); - QCOMPARE(qualifiedNameOf(d), "QualifiedNamesTests/D 6.0"); - QCOMPARE(qualifiedNameOf(qualifiedA), "QualifiedNamesTests/A 5.0"); - QCOMPARE(qualifiedNameOf(qualifiedB), "QualifiedNamesTests/B 5.0-6.0"); -} - void tst_qqmljsscope::resolvedNonUniqueScopes() { QQmlJSScope::ConstPtr root = run(u"resolvedNonUniqueScope.qml"_s); |