Add some component path canonicalization tests
authorChris Adams <christopher.adams@nokia.com>
Thu, 19 Apr 2012 07:30:59 +0000 (17:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Apr 2012 00:05:22 +0000 (02:05 +0200)
commit6d2ed5d0b645f5af383a123e869d061b235b4b85
tree72034ba88aff417ece70cc3d57e73c50b4a900bb
parentb86b3bb0f44cdbdb21413b967be67d37b7fefa64
Add some component path canonicalization tests

Previously, no unit test existed to ensure that url canonicalization
worked correctly, which could result in two import statements using
relative paths to the same actual component triggering two separate
types being generated.

This commit adds a unit test with various relative-addressing and both
static and dynamic imports, to enforce type-consistency.

Change-Id: I7772e3c531069322d5fa44063cbf57a758ed3710
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
14 files changed:
tests/auto/qml/qqmlcomponent/data/NestedDirectories/NDTLC.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/NestedDirectories/NestedDirOne/NDComponentOne.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/NestedDirectories/NestedDirOne/NestedDirTwo/NDComponentTwo.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/NestedDirectories/NestedDirOne/NestedDirTwo/qmldir [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/NestedDirectories/NestedDirOne/qmldir [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/NestedDirectories/qmldir [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/OtherComponent/OtherComponent.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/OtherComponent/qmldir [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/SpecificComponent/SpecificComponent.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/SpecificComponent/qmldir [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/componentUrlCanonicalization.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/componentUrlCanonicalization.3.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/data/componentUrlCanonicalization.qml [new file with mode: 0644]
tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp