aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsgtextinput
Commit message (Collapse)AuthorAgeFilesLines
* Rename Qt Quick-specific classes to QQuick*Kent Hansen2011-10-2129-3008/+0
| | | | | | | | | | | | | | | | | | | | | | The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Test for changing bounds of validators and acceptableInputDamian Jansen2011-10-214-0/+116
| | | | | | Task-number: QTBUG-19956 Change-Id: I771477d99939ef986bf3fa53e64a372f23ef5593 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Remove SkipMode from qtestlib API.Jason McDonald2011-10-211-3/+3
| | | | | | | | | | The SkipMode parameter to QSKIP has been removed in qtbase, therefore it must also be removed here. Task-number: QTBUG-21851, QTBUG-21652 Change-Id: I8016f8c28338b1b532bdb593c796d699b99250dc Reviewed-by: Charles Yin <charles.yin@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove copy of tests/shared/util.h.Jason McDonald2011-10-191-1/+0
| | | | | | | | | This module has a copy of qtbase's tests/shared/util.h, the contents of which have been moved into qtestlib and are now accessible from the QtTest/QtTest header. Change-Id: I0be9e21dc9f30629dad283a740b9d80347e01140 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix TextInput echoMode test failure.Andrew den Exter2011-10-181-2/+2
| | | | | | | | | The default input method hints for a QSGItem is Qt::ImhMultiline and TextInput is a single line input so clear that default flag in init. Task-number: QTBUG-21686 Change-Id: I3b57227ee4182bf89f6789f775b56efb156df85b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix coding style issuesKent Hansen2011-10-171-16/+16
| | | | | | | Avoid Qt Sanity Bot noise when these files are moved. Change-Id: I714e949837909883fe7e387ae336d2ffc4a1912b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Use TESTDATA macro in declarative tests.Michael Brasser2011-10-142-28/+31
| | | | | | | | | Includes a few other minor cleanups as well. Task-number: QTBUG-21721 Change-Id: I5b1c2c116e63748c6b4199183212de8a00037af1 Reviewed-on: http://codereview.qt-project.org/6473 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Provide a context when constructing a TextInput cursor delegate.Andrew den Exter2011-10-122-2/+4
| | | | | | | | | | | Without a context the delegate won't be able to refer to any external properties. Task-number: QTBUG-21780 Change-Id: I7171787e677ce67466b311796693ed88bcacb718 Reviewed-on: http://codereview.qt-project.org/5837 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Remove insignificant test status and explicitly mark failing test.Toby Tomkins2011-10-122-2/+1
| | | | | | | | | Task-number: QTBUG-21946 Change-Id: If1837a23041b52dc1f148821f483281975626d79 Reviewed-on: http://codereview.qt-project.org/6374 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-111-4/+3
| | | | | | | | | | | | | | qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4. It enables various crufty undocumented magic, of dubious value. Stop using it, and explicitly enable the things from it which we want. Since QT+= had to be touched already, this change also removes a lot of useless duplication on those lines. Change-Id: I9f2f20eaf4a0e676beddf474c7db8680e4712f78 Reviewed-on: http://codereview.qt-project.org/6302 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix waiting for active window breakageMartin Jones2011-10-071-29/+17
| | | | | | | | | | Use QTRY_COMPARE(view == qGuiApp->focusWindow()); Change-Id: If5934f4355d9eb8da343f98277e3528f56926cd9 Fixes: QTBUG-21682, QTBUG-21683, QTBUG-21687, QTBUG-21680 Reviewed-on: http://codereview.qt-project.org/6087 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix TextInput and TextEdit cursorRectangleSize autotestsJoona Petrell2011-10-051-8/+5
| | | | | | | | | | Task-number: QTBUG-21691 Change-Id: I7fdcbcb0fd8b3442f5af91aa87f4337c7597f95b Reviewed-on: http://codereview.qt-project.org/5865 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Mark failing tests as insignificant.Toby Tomkins2011-10-051-0/+1
| | | | | | | Change-Id: I5aa4d13fb44c2ec184d405b075d71244782247a9 Reviewed-on: http://codereview.qt-project.org/6007 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix text input delay related test failures.Andrew den Exter2011-09-301-20/+35
| | | | | | | | | | | | Allow a small delay after mouse or key events for the events to be processed before verifying the result, and use the QTRY_ macros to be doubly sure. Task-number: QTBUG-21690 Change-Id: I44e7fa58ef2e57572b6e342af7f4f18649144770 Reviewed-on: http://codereview.qt-project.org/5763 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove Symbian-specific code from tests.Jason McDonald2011-09-302-15/+4
| | | | | | | | | | Symbian is not a supported platform for Qt5, so this code is no longer required. Change-Id: I5cb6d3b41fbb9fa5fea6176ad949e4e7be7c30b5 Reviewed-on: http://codereview.qt-project.org/5767 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix TextInput and TextEdit inputMethodComposing autotestsJoona Petrell2011-09-291-4/+3
| | | | | | | | | | | | | | | In old QInputContext architecture events were send to focus widget, which delivered the events to the text editor items. In Qt5, input methods send events directly to the editor object using QInputPanel::inputItem(). Task-number: QTBUG-21691 Change-Id: Ia219f0cc7caaeafc32f5d7674a6ab377e773d4fa Reviewed-on: http://codereview.qt-project.org/5741 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix TextInput and TextEdit openInputPanel autotestsJoona Petrell2011-09-292-182/+68
| | | | | | | | | | | | | | Task-number: QTBUG-21691 The change also removes showInputPanelOnClick code from the TextInput and TextEdit, which was done to support Symbian^1 and ^3 fullscreen keyboards. Now by default the keyboard always follows editor focus. Change-Id: Id60a17fe51b3aa49ba9ea81b985e608e91c26145 Reviewed-on: http://codereview.qt-project.org/5733 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Added triple click on TextInput to select text.Rafael Brandao2011-09-291-0/+44
| | | | | | | | | | | | | | | | | | | | Once it gets a double click, it'll start to monitor any other extra click for a short duration. Once it is detected, the monitor stops watching and all text is selected. It only works when selectByMouse property is set, just like double click selecting current word. Also added a test case that simulates clicking at the same point and triggering the triple click, and another one that contemplates movement of mouse between the second and the third click. Also test timing between clicks. Task-number: QTBUG-21038 Change-Id: I139f7ece2107f5dbfcba1836afb27aaa9b24fc57 Merge-request: 6 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-on: http://codereview.qt-project.org/5761 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Enable QSGTextEdit and QSGTextInput failures.Andrew den Exter2011-09-281-94/+155
| | | | | | | | | | | | | | | | Fix compilation errors and skip or expect fail any tests that don't pass. The following tasks have been created for failing tests: QTBUG-21686 QTBUG-21689 QTBUG-21690 QTBUG-21691 QTBUG-21693 Change-Id: I3f5bb275e1a207ebdf86e3d523cdeda1f943eb63 Reviewed-on: http://codereview.qt-project.org/5583 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove expected failure for qpa platformToby Tomkins2011-09-211-11/+0
| | | | | | | | | | QTBUG-21011 has been resolved, hence the qpa platform can be enabled for this test. Change-Id: I1a1e76077eb102c389b09c79e069f6d9e25e2637 Reviewed-on: http://codereview.qt-project.org/4624 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Merge branch 'refactor'Gunnar Sletta2011-09-131-32/+25
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/items/context2d/qsgcanvasitem.cpp src/declarative/items/context2d/qsgcontext2d.cpp src/declarative/items/context2d/qsgcontext2d_p_p.h src/declarative/particles/qsgcustomparticle.cpp src/declarative/particles/qsgparticlesystem.cpp Change-Id: I24e81d3652368c5031305ffa7f969f9f2c249c6c
| * Merge branch 'master' into refactorGunnar Sletta2011-09-122-0/+72
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/declarative/cppextensions/qwidgets/qwidgets.pro examples/declarative/minehunt/main.cpp examples/declarative/minehunt/minehunt.pro src/declarative/items/context2d/qsgcontext2d.cpp src/declarative/items/qsgflickable.cpp src/declarative/items/qsgtextedit.cpp src/declarative/items/qsgtextinput.cpp src/declarative/particles/qsgangleddirection.cpp src/declarative/particles/qsgcumulativedirection.cpp src/declarative/particles/qsgcumulativedirection_p.h src/declarative/particles/qsgfollowemitter.cpp src/declarative/particles/qsgmodelparticle.cpp src/declarative/particles/qsgparticlesystem.cpp src/qtquick1/util/qdeclarativeview.h tests/auto/declarative/examples/examples.pro tests/auto/declarative/qsgfocusscope/tst_qsgfocusscope.cpp Change-Id: Ib4be2a5e742dee1a399d73da97161736f77448e5
| * | fixup tests to build with refactorMatthew Cattell2011-09-091-32/+25
| | | | | | | | | | | | | | | | | | Change-Id: Iab4adc9e19fab67402918bb737fff2fce6c292bd Reviewed-on: http://codereview.qt-project.org/4545 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* | | Fixed tst_qgstextinputToby Tomkins2011-09-131-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | In commit e71904e231e27e6f6f88b35c4a7e2d7cf8ba2640, this was commented out, this does not relate to the removal of v8 from declarative. (related http://codereview.qt-project.org/#change,3093) Change-Id: Idcc23e27577df6f53ddf256c1ea74bf7ecc5c351 Reviewed-on: http://codereview.qt-project.org/4621 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* | Fix left alignment of native RTL pre-edit text.Andrew den Exter2011-09-072-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | If there is no committed text in a TextInput or TextEdit determine if the pre-edit text is right to left before falling back to the global keyboard settings. Change-Id: I7e5568e936341602b8faf7be120f9a770c115f48 Task-number: QMLNG-72 Reviewed-by: Michael Brasser Reviewed-on: http://codereview.qt.nokia.com/4176 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Delay masking the last character in Password echo mode.Andrew den Exter2011-09-061-0/+58
|/ | | | | | | | | | | | | | | | | If QT_GUI_PASSWORD_ECHO_DELAY is defined in qplatformdefs.h with an integer value in milliseconds, QLineEdit and TextInput will display the last character entered unmasked for that delay period and then mask the character as normal. If QT_GUI_PASSWORD_ECHO_DELAY is not defined then the behaviour is unchanged. Task-number: QTBUG-17003 Reviewed-by: Martin Jones (cherry picked from commit f9e7aee2019d321edd655bfde7de43f20a106971) Change-Id: Iddfa0daa1b39f0589cab27e5003fdd86ad81ff89 Reviewed-on: http://codereview.qt.nokia.com/4170 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove V8 submodule from QtDeclarativeKent Hansen2011-08-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | QtDeclarative should now link against the QtV8 library from qtbase. The patch files have been moved to qtbase as well. Applications that use the QtDeclarative private headers may need to add the following to their .pro file: QT += v8-private This ensures that <private/v8.h> is found, which is (indirectly) included by many QtDeclarative private headers. Task-number: QTBUG-20963 Change-Id: I31e973a6fcc0c416d3b258a61c26564cee3dcd4b Reviewed-on: http://codereview.qt.nokia.com/3093 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* test: marked expected failure in tst_qsgtextinputRohan McGovern2011-08-231-0/+4
| | | | | | | | | | | Part of this test was already marked as an expected failure. Now it fails in a different place. Task-number: QTBUG-21011 Change-Id: I15ce8be882b361fda8351900eb768acec01a7bac Reviewed-on: http://codereview.qt.nokia.com/3343 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* tests: acknowledge all known failures in declarative autotestsRohan McGovern2011-08-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change XFAILs or CONFIG+=insignificant_tests all known failures in declarative autotests, and links them to bug reports. Note that the changes were only applied to qpa builds, although it is possible some of these failures affect other platforms too. Task-number: QTBUG-20990 Task-number: QTBUG-21000 Task-number: QTBUG-21001 Task-number: QTBUG-21004 Task-number: QTBUG-21005 Task-number: QTBUG-21007 Task-number: QTBUG-21008 Task-number: QTBUG-21009 Task-number: QTBUG-21010 Task-number: QTBUG-21011 Task-number: QTBUG-21012 Task-number: QTBUG-21013 Task-number: QTBUG-21015 Task-number: QTBUG-21016 Task-number: QTBUG-21017 Change-Id: Ieb89aa38e48e9e5162d87483d6441749865f234d Reviewed-on: http://codereview.qt.nokia.com/3239 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Keith Isdale <keith.isdale@nokia.com>
* Make QSGTextNode back-end for QML's TextInput and TextEditEskil Abrahamsen Blomfeldt2011-08-192-7/+94
| | | | | | | | | | | | | | | | Use the general QSGTextNode class as back-end for all text elements in QML to make all text elements look the same and use the same text rasterization back-end. This requires a few rewrites in the text node to support e.g. selections. Crashes seen with threaded renderer in TextEdit and TextInput on Mac are also fixed by this. Reviewed-by: Jiang Jiang Task-number: QTBUG-18019, QTBUG-20017 Change-Id: I4207faf180c83422e5f8b726741321af395bd724 Reviewed-on: http://codereview.qt.nokia.com/2865 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Merge the QJSEngine and QJSValue development branch into master.Simon Hausmann2011-07-291-1/+0
| | | | | | | | | | | | This replaces the dependency to QtScript with two new builtin classes QJSValue and QJSEngine. This is still work in progress, development continues now in the master branch. Change-Id: I7f5487feb45c972f25a22b10cc81b9218b9805de Reviewed-on: http://codereview.qt.nokia.com/2299 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Don't clip the cursor at the far right of a TextInput.Andrew den Exter2011-07-281-0/+6
| | | | | | | | | | | | | | The cursor is allowed to exceed the boundaries of a TextInput so that the text alignment is consistent with the Text element and the bounding rect of TextInput is expanded to allow for that. To avoid clipping the contentSize also needs to be expanded, and the horizontal scrolling should be calculated against the non-expanded size. Task-number: QTBUG-18818 Change-Id: I09e3a7aff9c2e8a333e8a3f9796683563b3e124a Reviewed-on: http://codereview.qt.nokia.com/2242 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Move the cursor position to the end when TextInput.readOnly is cleared.Andrew den Exter2011-07-261-0/+5
| | | | | | | | | | Improves consistency with TextEdit. Task-number: QTBUG-18747 Change-Id: Ieb0a332441557fc6ba4c5ddaafea5c634aff1ee4 Reviewed-on: http://codereview.qt.nokia.com/2131 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Notify when the TextInput cursorRectangle property changes within pre-editAndrew den Exter2011-07-252-0/+11
| | | | | | | | | | Apply 452e13b5407fa4c36f9a573c305d41f551762b93 to scene graph items. Task-number: QTBUG-19089 Change-Id: I4501bdc940cbac9ba2ef068b87ded83b1c86976f Reviewed-on: http://codereview.qt.nokia.com/2054 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Update licenseheader text in source files for qtdeclarative Qt moduleJyri Tahtela2011-07-081-17/+17
| | | | | | | | Replace old license header with correct one. Change-Id: I492ddaaa0227b2c8faf11bdcd6e12e7231a54a10 Reviewed-on: http://codereview.qt.nokia.com/1312 Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com>
* Fix autotestsAaron Kennedy2011-06-221-9/+11
|
* QSKIP crashing tests until QTBUG-20017 is fixedAaron Kennedy2011-06-221-0/+2
|
* Make tests compile.Martin Jones2011-05-271-4/+2
| | | | Change-Id: Iecb50641f927b82533e25262ba1ab8a0a14a108c
* Fix unstable test.Martin Jones2011-05-191-2/+1
| | | | Change-Id: I336b6a02b763c3be9b01a074f641cb031cf18268
* Link item focus to canvas widget focus.Martin Jones2011-05-191-0/+12
| | | | Change-Id: I7da1db30819c80b48f4c285a43274b668c686826
* Remove QEXPECT_FAIL from QSGTextInput test.Andrew den Exter2011-05-191-1/+0
| | | | | | The QSGPaintedItem::setContentSize() function has now been implemented. Change-Id: I620824073143de5e50c8ce2e4f886dc60dd79e64
* skip unit tests if no required OpenGL 2.0 feature on this platformCharles Yin2011-05-171-1/+13
| | | | Change-Id: I68feb5938339f327b45cf66b7aec1c582753f18d
* Add private parts to autotest .pro filesAlan Alpert2011-05-111-0/+3
|
* Initial import from qtquick2.Qt by Nokia2011-04-2726-0/+2710
Branched from the monolithic repo, Qt qtquick2 branch, at commit a4a585d2ee907746682846ae6e8a48e19deef469