tst_container.qml: fix "Unsuitable arguments" warning

The full warning was:

QML Component: Unsuitable arguments passed to createObject(). The first
argument should be a QObject* or null, and the second argument should
be a JavaScript object or a QVariantMap

Pick-to: 6.2 6.3
Change-Id: Iaf81a6fc622d11cd6d6de22e931c2fb922ea9ec0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Mitch Curtis 2022-06-01 16:03:16 +08:00
parent 40260e6703
commit ce1ec037d1
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ TestCase {
// don't crash (QTBUG-61310)
function test_repeater(data) {
var control = createTemporaryObject(data.component)
var control = createTemporaryObject(data.component, testCase)
verify(control)
compare(control.itemAt(0).objectName, "0")