Commit Graph

3851 Commits

Author SHA1 Message Date
Jason McDonald d2a49efb79 Remove Qt3Support code from qtdeclarative module
Change-Id: I7da1286486a138042717241461062883aacc6250
Task-number: QTBUG-19325
Reviewed-by: Rohan McGovern
2011-05-20 12:09:22 +10:00
Charles Yin daf671b422 Integrate QtQuickTest into Qt
Change-Id: I558821c0dec9166ea1d0d2e1e2f889553c436316
Task-number:QTBUG-16082
2011-05-20 12:07:23 +10:00
Yann Bodson 1ffe4f1b24 Skip test in qdeclarativeimage::noLoading (QTBUG-19425) 2011-05-20 11:36:30 +10:00
Martin Jones 58e5b72447 Skip another pixmap comparison test.
Change-Id: Ie9280cfbb74d2ffa2da1ce5b6d1e5153a9b19d0f
2011-05-20 10:36:31 +10:00
Alan Alpert 56d80e1590 Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging into qtquick2 2011-05-19 18:43:59 +10:00
Kim Motoyoshi Kalland 13970487ff Update unit test according to intended behaviour change.
The behaviour was changed in commit
9d7eb51da3.
2011-05-19 10:36:34 +02:00
Alan Alpert fcdd4d4dd5 Normalize createQmlObject error message 2011-05-19 18:02:21 +10:00
Martin Jones 6dcf673062 Fix unstable test.
Change-Id: I336b6a02b763c3be9b01a074f641cb031cf18268
2011-05-19 17:24:07 +10:00
Martin Jones d774fc5f25 Link item focus to canvas widget focus.
Change-Id: I7da1db30819c80b48f4c285a43274b668c686826
2011-05-19 17:22:19 +10:00
Andrew den Exter af5facf92d Remove QEXPECT_FAIL from QSGTextInput test.
The QSGPaintedItem::setContentSize() function has now been implemented.

Change-Id: I620824073143de5e50c8ce2e4f886dc60dd79e64
2011-05-19 13:59:40 +10:00
Andrew den Exter 57d9b5d3ca Fix test TextEdit preeditMicroFocus test failure.
Port change from QDeclarativeTextEdit test which removed a check for
an update when the cursor position had not changed.
2011-05-18 17:00:49 +10:00
Yann Bodson c83c123579 Skip mirror autotests while QTBUG-19351 and QTBUG-19252 are not resolved. 2011-05-18 16:16:00 +10:00
Martin Jones 5a59bc11bc Make SG Text test work by disabling pixmap comparison.
This won't work with scenegraph.  Manual test needed.
2011-05-18 14:25:10 +10:00
Yann Bodson dbf003e314 More autotests fixes. 2011-05-18 14:16:44 +10:00
Yann Bodson a183d3a036 Fix QSGBorderImage autotest.
QtQuick 1.0 -> QtQuick 2.0
2011-05-18 13:23:05 +10:00
Jason McDonald 11baecf600 Reduce usage of Q_ASSERT in autotests.
Using Q_ASSERT does nothing in release-mode builds, and in debug builds
it causes tests to terminate prematurely.  It is much better to use
QVERIFY or QCOMPARE.

Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 3475168550c1a804f04f2a4edfeb30c04cd36551)
2011-05-18 11:00:07 +10:00
Jason McDonald 939ef5eb38 Remove Q_ASSERT from qdeclarativexmllistmodel test
Report a meaningful warning in all builds rather than aborting in debug
builds and doing nothing in release builds.

Change-Id: I14aa7bc8699f5307e1ec34b18006b9fbbd8aca8e
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 1ea84cba1f90a9c95c54480117342dba0eae3d2f)
2011-05-18 10:59:11 +10:00
Jason McDonald d0d61b454a Remove Q_ASSERT's from ecmascript test.
These Q_ASSERT's were redundant as the test functions that call these
functions already verify that "value == 0".

Change-Id: Ic23e539c5814153d67fea8156ade0783f91d7b83
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 6f791f8ad0b7ef023d91c1609ce076443f335c13)
2011-05-18 10:59:11 +10:00
Jason McDonald d4ccaaa83a Remove Q_ASSERT from QDeclarativeListModel autotest.
Change-Id: Ic15b747fa50bcec54df748b173b299058f69c681
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 59a6e6200984ccbb862b8758436a5e88b8c40bbc)
2011-05-18 10:59:11 +10:00
Jason McDonald afdaa492ea Remove redundant Q_ASSERT from qmlvisual autotest.
Change-Id: I5c413793ee6322b5be1ae52658362803dc4c2010
Task-number: QTBUG-17582
Reviewed-by: Alan Alpert
(cherry picked from commit d6bd4db2db6dbefec327e226bf54a69a20690a45)
2011-05-18 10:59:10 +10:00
Jason McDonald 891b216c31 Remove Q_ASSERT calls that wrap side-effecting code.
In release mode builds, code inside Q_ASSERT macros is not executed, so
putting code with side-effects inside Q_ASSERT is not a good idea.

Task-number: QTBUG-17582
Change-Id: I1a5d8ccce666ee7b7f120bf9cbb49e30dac9add4
Reviewed-by: Rohan McGovern
(cherry picked from commit 1750a4351a8125756bf38a53d6d8312993c7d85e)
2011-05-18 10:59:10 +10:00
Yann Bodson 60204c8325 Add autotests to .pro file 2011-05-17 16:07:14 +10:00
Yann Bodson 264c267f8d Make QSGImage autotests compile. 2011-05-17 15:51:46 +10:00
Charles Yin 7740c4c9a1 skip unit tests if no required OpenGL 2.0 feature on this platform
Change-Id: I68feb5938339f327b45cf66b7aec1c582753f18d
2011-05-17 14:55:32 +10:00
Yann Bodson c05668a436 Fix QSGBorderImage and QSGAnimatedImage autotests 2011-05-16 13:21:16 +10:00
Yann Bodson 4890cbe428 Fix QSGBorderImage autotest. 2011-05-13 13:35:49 +10:00
Roberto Raggi ae8f9b5f11 Added auto tests for properties initialized using JS statements 2011-05-12 11:44:17 +02:00
Roberto Raggi f31d94f2d4 Fix the QML front-end to allow side effects in the initializer.
Task-number: QTBUG-15117
2011-05-12 11:31:31 +02:00
Rohan McGovern 03cfbe8cb9 tests: mark tst_qsgitem as a private-test
This test uses private symbols.

Reviewed-by: Jason McDonald
Change-Id: I026f4d00be5f53203d0b155e08533474cc4d9605
2011-05-12 14:40:16 +10:00
Martin Jones 6fe601e4bc Improve error message for invalid image provider name.
Also fix broken qdeclarativeimageprovider test.
2011-05-12 14:34:48 +10:00
Martin Jones bc83e44dc3 Views do not notify count changes properly
The views don't have a valid count until both a model and a delegate
are provided.  But, countChanged() is not called when a delegate is
set after the model, so bindings to count were not evaluated.  Also
test that count is updated for insertion/removal

Change-Id: Ic82039a624c02f0bdb2862ac7a6e215df75bb314
Task-number: QTBUG-19037
Reviewed-by: Bea Lam
(cherry picked from commit 4fbcb6a531bf424a8dbbbd0ca2947d9e15118885)
2011-05-11 17:00:06 +02:00
Girish Ramakrishnan 15407cfb5f Clear the root index when the model is reset.
Task-number: QTBUG-18839

Change-Id: I46608d7481d820fa74a9be60df1e018e70a761c6
Merge-request: 2598
Reviewed-by: Martin Jones <martin.jones@nokia.com>
(cherry picked from commit f6b7ce204ee88be0fedb4cfcff382f208fa4ed33)
2011-05-11 17:00:06 +02:00
Alan Alpert ad5aeed367 Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging into qtquick2 2011-05-11 19:11:51 +10:00
Alan Alpert faed3a7914 Add private parts to autotest .pro files 2011-05-11 19:11:18 +10:00
Martin Jones e7f900bdc6 Benchmark component creation with different types of bindings. 2011-05-10 15:33:46 +10:00
Chris Adams 24bb6f90f8 Add unit test and documentation for module API
Related to commit ae6c7a44394d4a5f943f1fc92f4de015ec7bcc96.
Previously, only property access on module API was tested.
This commit adds a test which calls a method on a module API.
It also adds documentation for the qmlRegisterModuleApi functions.

Task-number: QMLNG-33
Reviewed-by: Martin Jones
2011-05-06 13:56:10 +10:00
Roberto Raggi e50b7c9299 Fix evaluation of boolean conditions
Ensure that the operand of IR::OpIfTrue and IR::OpNot has boolean type.
2011-05-05 17:19:01 +02:00
Aaron Kennedy 1332e9277c Compilation benchmark
Change-Id: Iaa875817367d3a9600dd1ad685f996377af9f82d
2011-05-05 15:26:17 +10:00
Aaron Kennedy 21521c2d28 Inline static data for basic types into the QML instruction
The following types are now entirely inline:
    QPoint, QPointF
    QSize, QSizeF
    QRect, QRectF
    QVector3D,
    QTime, QDateTime
    CustomTypeData

Reviewed-by: Martin Jones
Change-Id: I7024d136c77f8fb23ef6a6abb23ddfe0f9f8a1ca
2011-05-05 15:26:04 +10:00
Aaron Kennedy cb661b8fd3 Support variable length instructions in QML bytecode
Reviewed-by: Martin Jones
Change-Id: Ib04b8d46a78723d3a734e14d22a2f2256c1627c2
2011-05-05 15:25:43 +10:00
Aaron Kennedy cff3c25ee6 Only include line numbers when necessary
The mandatory line number bloats QML instructions for no reason.
Moving it inline actually increases the instruction size further,
but that will come down again once variable sized instruction
support is added.

Change-Id: I0ace03a50371ef57946edbb7c8e0e8c2fa4fdd76
2011-05-05 11:19:39 +10:00
Martin Jones 1b7c1b6ef8 Update SG items with GV item changes. 2011-05-04 17:54:21 +10:00
Yann Bodson ff62dede7b Fix QSGText autotests 2011-05-04 17:42:49 +10:00
axis 40b6a270a1 Merged master into qtquick2. 2011-04-27 14:41:06 +02:00
Qt by Nokia a129444bb0 Initial import from qtquick2.
Branched from the monolithic repo, Qt qtquick2 branch, at commit
a4a585d2ee907746682846ae6e8a48e19deef469
2011-04-27 14:40:44 +02:00
Liang Qi 7a181a2132 Add tst_headersclean for each module 2011-04-27 12:06:03 +02:00
Liang Qi 3081c665c4 Modularized tst_compilerwarnings 2011-04-27 12:06:03 +02:00
Liang Qi 95a6a22b3e Modularized tst_bic and add some helper functions for global test 2011-04-27 12:06:03 +02:00
axis 5f386fd581 Fixed parserstress test. 2011-04-27 12:06:02 +02:00
Liang Qi a3b3a0e425 Make auto test build 2011-04-27 12:05:51 +02:00
Qt by Nokia 885735d011 Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
Qt Git wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:

http://qt.gitorious.org/qt/pages/GitIntroductionWithQt

If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.

Branched from the monolithic repo, Qt master branch, at commit
896db169ea224deb96c59ce8af800d019de63f12
2011-04-27 12:05:43 +02:00