equal
deleted
inserted
replaced
775 QTest::addColumn<QString>("qmlfile"); |
775 QTest::addColumn<QString>("qmlfile"); |
776 QTest::addColumn<QString>("error"); |
776 QTest::addColumn<QString>("error"); |
777 |
777 |
778 // import installed |
778 // import installed |
779 QTest::newRow("pass") << "cursorHttpTestPass.qml" << ""; |
779 QTest::newRow("pass") << "cursorHttpTestPass.qml" << ""; |
780 QTest::newRow("fail1") << "cursorHttpTestFail1.qml" << "<Unknown File>: Network error for URL http://localhost:42332/FailItem.qml "; |
780 QTest::newRow("fail1") << "cursorHttpTestFail1.qml" << "http://localhost:42332/FailItem.qml: Remote host closed the connection "; |
781 QTest::newRow("fail2") << "cursorHttpTestFail2.qml" << "http://localhost:42332/ErrItem.qml:4:5: Fungus is not a type "; |
781 QTest::newRow("fail2") << "cursorHttpTestFail2.qml" << "http://localhost:42332/ErrItem.qml:4:5: Fungus is not a type "; |
782 } |
782 } |
783 |
783 |
784 void tst_qdeclarativetextedit::delegateLoading() |
784 void tst_qdeclarativetextedit::delegateLoading() |
785 { |
785 { |
1094 scene.addItem(&anotherEdit); |
1094 scene.addItem(&anotherEdit); |
1095 anotherEdit.setFocus(true); |
1095 anotherEdit.setFocus(true); |
1096 QApplication::processEvents(); |
1096 QApplication::processEvents(); |
1097 QCOMPARE(ic.openInputPanelReceived, true); |
1097 QCOMPARE(ic.openInputPanelReceived, true); |
1098 ic.openInputPanelReceived = false; |
1098 ic.openInputPanelReceived = false; |
1099 QCOMPARE(view.inputContext(), &ic); |
1099 QCOMPARE(view.inputContext(), (QInputContext*)&ic); |
1100 QVERIFY(view.testAttribute(Qt::WA_InputMethodEnabled)); |
1100 QVERIFY(view.testAttribute(Qt::WA_InputMethodEnabled)); |
1101 |
1101 |
1102 // input method should be disabled if focus |
1102 // input method should be disabled if focus |
1103 // is lost to an item that doesn't accept inputs |
1103 // is lost to an item that doesn't accept inputs |
1104 QDeclarativeItem item; |
1104 QDeclarativeItem item; |