summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix boxplot testMiikka Heikkinen2019-02-204-8/+8
| | | | | | | | Pass a proper array to the append function that expects an array. Task-number: QTBUG-73942 Change-Id: Id93ea3281f68537b83fc314e9426fa8969f52191 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-06-231-5/+7
|\ | | | | | | Change-Id: Ib0ce93137bb1ddc61de77d82c28e25a238f544a0
| * Migrate manual test's ChartViewer to QRegularExpressionSamuel Gaist2018-06-191-5/+7
| | | | | | | | | | | | | | | | | | This patch updates the manual test ChartViewer class to use QRegularExpression in place of QRegExp which is to be considered deprecated. Change-Id: I111c6caedea0e95f87c785ecb57cdc2211dedc51 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Add support for setting a plotarea rectAndy Shaw2018-05-181-0/+19
| | | | | | | | | | Change-Id: Iaa5cee58382b8290a7e36fd744a8af8bc29515b9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-05-057-43/+12
|\| | | | | | | Change-Id: Ifaec4b83757b31a28650f72e308529edd786b4eb
| * Axes Tests: Fix Clang warnings about hiding overloaded virtual functionsFriedemann Kleint2018-05-027-43/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change tst_QAbstractAxis::init(QAbstractAxis* axis,QAbstractSeries* series) to a protected non-virtual, non-slot helper function initAxes(). Remove overridden functions that are empty or identical to the base implementation (cleanupTestCase()). Add override. Fixes: tst_qvalueaxis.cpp(41,10): warning: 'tst_QValueAxis::init' hides overloaded virtual function [-Woverloaded-virtual] tst_qlogvalueaxis.cpp(42,10): warning: 'tst_QLogValueAxis::init' hides overloaded virtual function [-Woverloaded-virtual] tst_qcategoryaxis.cpp(41,10): warning: 'tst_QCategoryAxis::init' hides overloaded virtual function [-Woverloaded-virtual] tst_qbarcategoryaxis.cpp(42,10): warning: 'tst_QBarCategoriesAxis::init' hides overloaded virtual function [-Woverloaded-virtual] Task-number: QTBUG-63512 Change-Id: Ieb5fae83a43b6ca6ff4211db980a56c10c02c015 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devQt Forward Merge Bot2018-04-281-1/+11
|\| | | | | | | Change-Id: Ib7c1f07ccaf6eac51303984b39c21d099ca0706a
| * Maintain correct order of legend items when inserting pie chart itemsFriedemann Kleint2018-04-261-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite QLegendPrivate::handleCountChanged() so that the order of the markers is preserved. Split out helper functions for insertion/removal that leave the m_markers list untouched and add helpers for finding markers by series and related objects. In QLegendPrivate::handleCountChanged(), remove the markers of the series from m_markers and replace the existing ones in the createdMarkers. Finally re-insert createdMarkers into m_markers, preserving the order. Task-number: QTBUG-62082 Change-Id: I03c81dcf5dfd5a5883377630cad16c943503a1be Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Implement dynamic tick handling for ValueAxisMika Salmela2018-03-081-0/+38
|/ | | | | | | Adds properties to define dynamic tick positioning for ValueAxis. Change-Id: Ife2ff3032492e063604adba9bd63eed72c0e0a16 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Don't use deprecated QTest::qWaitForWindowShown()Kari Oikarinen2018-02-2824-140/+140
| | | | | | | | Use QTest::qWaitForWindowExposed() instead. Also wrap it in QVERIFY, so that failed waits fail immediately. Change-Id: I658d2faa89c42bd190de4bf53179b26b8f5d1b6c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2018-01-201-0/+36
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I03085b7c604cda9c4a173ca8f6dd34d522e59b16
| * Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2018-01-181-0/+36
| |\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I02fb1d17385bfb520e7f6dd2d7c69d79a2890bcd
| | * When passing empty QStrings as label format should revert to the defaultAndy Shaw2017-12-011-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that the QML and widgets side both behave in the same way as the QML side handled an empty string as reverting back to the default. Whereas the widget side did not, now it will ensure that it is consistent. Change-Id: Ibc3f149f1761586e5fa04420e3b78bed169304d1 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | Add labelsPrecision property to bar chartsKari Oikarinen2017-12-218-1/+41
|/ / | | | | | | | | | | | | | | | | | | Allow choosing the number of significant digits in the value labels for the bars. Before this this has been hardcoded to 6, so the default value stays as 6 for backward compatibility. Task-number: QTBUG-64370 Change-Id: I022bdad21aca7a7750ed46181b4ec97726bd9dc5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into ↵v5.10.0-beta4Liang Qi2017-11-033-1/+115
|\ \ | | | | | | | | | refs/staging/5.10
| * | Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2017-11-033-1/+115
| |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf tests/manual/chartwidgettest/mainwidget.cpp tests/manual/wavechart/wavechart.cpp Change-Id: I18962ddc37a91daa23571eb04e35eec828aceef8
| | * Use proper math.h/cmath includesJake Petroules2017-10-072-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | This is necessary to use math functions with and without the std:: namespace qualifier. Change-Id: I2f404d0e57a71758ee070b8b752ebcc41c4e292c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
| | * Account for very small numbers when setting the rangeAndy Shaw2017-08-232-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using qFuzzyCompare it would not allow for very small numbers so we remove that need and do a straight compare instead. This also includes a test to check that zooming and then resetting gets us back to the original range. Task-number: QTBUG-56097 Change-Id: I722be55f602c936e03fe3cc57c30ba15c0e0bed0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | Update to new QRandomGenerator APIThiago Macieira2017-11-038-13/+13
|/ / | | | | | | | | Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Remove misleading .pro filev5.10.0-beta3Thiago Macieira2017-10-251-6/+0
| | | | | | | | | | | | | | | | | | This directory does not contain a unit test, but a file that is part of other unit tests. And the .pro file that was here did not compile anyway. Change-Id: Icaa86fc7b54d4b368c0efffd14f0b2178af7b0d2 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Merge remote-tracking branch 'origin/5.9' into devLiang Qi2017-08-152-42/+71
|\| | | | | | | | | | | | | | | | | Conflicts: .qmake.conf examples/charts/dynamicspline/chart.cpp examples/charts/piechartdrilldown/main.cpp Change-Id: I839e97bf377c7823f2f464c097656d58f279ed77
| * Blacklist the mousehovered test for CIAndy Shaw2017-08-111-0/+2
| | | | | | | | | | Change-Id: I8ef7bf79bd7e573016ec0e969e4dbca9dc2fba74 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| * BarSeries: Account for labels when hovering over the barAndy Shaw2017-08-081-42/+69
| | | | | | | | | | | | | | | | | | | | If you hover over a label then it will send a hoverLeaveEvent() because the label is not accounted for. So we set the labels to not accept hover events to ensure they don't interfere with the bar. Task-number: QTBUG-62137 Change-Id: I59097d14a7ce73948eda7a8332f927d1d465b273 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Enable tests for boot2qtSami Nurmenniemi2017-08-113-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests for boot2qt were disabled with commit 25e51976c3324630525346ccb785fafe48ea5ed9. The tests can be enabled since qtdeclarative now fallbacks to software renderer if OpenGL is not supported. Also fixed tst_QChart::zoomOut which was doing direct comparison of qreal variables. Changed it to use QCompare which internally uses qFuzzyCompare and does not suffer from float precision problems. Task-number: QTBUG-60268 Change-Id: I9e9de2e3c5cdbe725587e522be852d6cc5f7fd00 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | Use QRandomGenerator instead of q?randThiago Macieira2017-07-049-26/+22
| | | | | | | | | | Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Be (somewhat more) consistent about the value of piEdward Welbourne2017-06-143-9/+8
|/ | | | | | | | | Use M_PI in C++ and Math.PI in JavaScript (including QML). Use qmath.h's value for M_PI where we can't avoid an explicit value. Task-number: QTBUG-58083 Change-Id: I80c81444c1867f8f0c07f192fa68de933f48bbc4 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Remove commercial only licenseMiikka Heikkinen2017-06-051-9/+17
| | | | | | | | | | tst_qareaseries.cpp still had commercial only license, replaced it with similar license as all the other tests had. Task-number: QTBUG-61126 Change-Id: Ide96f43e8321a94e1c142beebcb242989c58fb62 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Disable/blacklist failing tests for boot2qtSami Nurmenniemi2017-04-272-0/+6
| | | | | | | | | | Currently boot2qt is tested with QEMU and the test crashes. Disabling for now to make it possible to enable qt5 tests for Coin. Task-number: QTBUG-60266 Change-Id: Ic11740de638b4783add72ee0bb19a5fbba086a68 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Remove uses of QString::nullMarc Mutz2017-03-1110-10/+10
| | | | | | | It's going to be deprecated. Change-Id: I9d176c802f27abf5c817dba8bedf9e5fcd911eca Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-12-1215-9/+28
|\ | | | | | | Change-Id: I18a4da7bddb4c48ab85f33e2bd674e49cb9671a0
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-2815-9/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needed to add SKIP_IF_FLAKY_MOUSE_MOVE(); line to tst_QCandlestickSeries::mouseHovered() test case in this merge, as SKIP_IF_FLAKY_MOUSE_MOVE was added by the merged content and candlestick series is was introduced in 5.8, so a separate commit in neither branch will work. Conflicts: src/charts/piechart/piechartitem.cpp tests/auto/qcandlestickseries/tst_qcandlestickseries.cpp Change-Id: I444306814678a9843460ec2e7fba78b616c7d8bd
| | * Merge remote-tracking branch 'origin/5.6' into 5.75.7Liang Qi2016-11-2514-9/+27
| | |\ | | | | | | | | | | | | Change-Id: I45103a81acb60cbc0d2f5aeb786ab0de0b99f7d2
| | | * Move axis hiding to areaseries test init so it affects all test casesMiikka Heikkinen2016-11-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2434a0b8c862997dd1ffc1ac2556a766d45417b8 Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| | | * Fix autotestsMiikka Heikkinen2016-10-0612-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hover signal tests: Hover signals are randomly failing on various platforms when run on virtual machines, so we skip them for now. When tested manually with an actual mouse, hover signals work just fine, but synthetic mouse move generation doesn't seem to be reliable. QAreaSeries: Hide axes so they don't confuse pixel color checks. QPieSeries: Removed unnecessary window activation check that had nothing to do with the test case and was causing it to fail on some systems. Changed the button size in mouse event skip test to get rid of a warning of minimum size in Windows. Also added processEvents calls to the skip test to minimize impact on the test case. Change-Id: Ia5914c547cbe58facb3a96c448cbbf3998d4a757 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| | | * Make 'make check' run all of the autotestsMiikka Heikkinen2016-10-062-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, only the qml-qtquicktest would be run when 'make check' was executed, because the C++ tests were not identified as test cases. Change-Id: Ic263bcc8f13bdf154d6e8a93c8126ce3cb3b005c Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | | Fix domain ranges when attaching new axis that changes domain typeMiikka Heikkinen2016-12-091-13/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If domain type changes when attaching an axis, the domain range in the orientation other than the attached axis would be reset to default range determined from series data. Task-number: QTBUG-57351 Change-Id: I7e810e468478c93b002718c00adf8a6721a368f8 Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | | Fix crash when log axis range is initialized to contain no ticksMiikka Heikkinen2016-12-021-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Axis updateGeometry() expects there to always be at least one arrow item for the main axis arrow, but the arrow never got created if there were no ticks on the axis before axis was shown. Ensure that createItems() is called at least once for axis even if there are no ticks. Task-number: QTBUG-57328 Change-Id: I7847e2f0d4ee1c3e4546dca05df6078b4a4e81c8 Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Alexander Mishin <apmishin@yandex.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | | Remove 200x200 minimum size from chartMiikka Heikkinen2016-10-0416-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was no reason for enforcing the 200x200 minimum size for the chart, as the minimum size already took into account various chart element minimum sizes. Legend and chart title also no longer contribute to the minimum size if they are not visible. Some autotests that simulated mouse events were relying on this minimum size, so added explicit resizes to some of them. Task-number: QTBUG-56238 Change-Id: I515b4992a39acbc02bfbc81f225d6b6939adcf91 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | | Add support for more than one bar seriesMiikka Heikkinen2016-10-042-113/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now charts properly positions bars if there are more than one bar series in the chart. Theming was changed to account for more than one bar series in the chart. This patch also fixes various animation errors that were exposed by adding/removing the series to/from an existing chart. Task-number: QTBUG-52379 Change-Id: I4a8bc7e1675191ff87966ec4ca3d01e2b7cb815d Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | | | Add a possibility to change legend marker shapeMiikka Heikkinen2016-09-231-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is now possible to choose between rectangular, circular, and "from series" shapes for legend markers. The "from series" shape uses scatter dot items as legend markers in case of scatter series and a line segment for line and spline series. Task-number: QTBUG-50682 Change-Id: I58977ead88e1274e1f163516d32c4d290f4410f9 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* | | | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-09-219-18/+206
|\| | | | | | | | | | | | | | | Change-Id: Id0483d67f009462255ef380c7ffc9f9445c10e28
| * | | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-09-186-18/+18
| |\| | | | | | | | | | | | | | Change-Id: I06b73dca7aa1ef30f126a64f305dcad546679d4e
| | * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-09-176-18/+18
| | |\| | | | | | | | | | | | | Change-Id: I65ebe53c4eac112d7e124c19efe7273b6cde3657
| | | * Fix some flaky QML autotestsMiikka Heikkinen2016-09-066-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Category axis test was failing randomly because labels position was not explicitly initialized. Pieseries tests failed randomly because Math.random() returned zero or a value very close to zero, causing the fuzzy compare to not register the series sum as changed. Change-Id: Ie7ffa517aad40aaed1282375b35174fb880d5fe6 Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| * | | Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-09-063-0/+188
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/charts/charts.pro src/charts/glwidget.cpp src/chartsqml2/declarativechart.cpp src/chartsqml2/declarativeopenglrendernode.cpp tests/auto/auto.pro Change-Id: If909b4b13844c474bf4898a66ee01ac111d0a248
| | * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-08-303-0/+188
| | |\| | | | | | | | | | | | | Change-Id: Ibf7679696d7b659621cf511fd5e1d5eda244a810
| | | * Fix setting area series edge series after area series is shownMiikka Heikkinen2016-08-253-0/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now AreaChartItem properly updates its lower and upper series when they are changed at QAreaSeries. Task-number: QTBUG-55431 Change-Id: I379005e44128f06e5ff42e2aa12a563e5f8ac21c Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| | | * Fix QT_BUILD_INTERNAL usage in autotestsMiikka Heikkinen2016-08-112-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to do the define check after QtTest include, or otherwise the affected tests are always skipped. Change-Id: I472c1222a8c4f98cd722b9190c94412f7cf4808a Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| | | * use standardized test export macrosOswald Buddenhagen2016-05-193-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | note that debug build != developer build. Change-Id: Ia3e4b4d2f80e7126ad9a2461642c93321099cc27 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
* | | | Optimize barcharts paintingMiikka Heikkinen2016-09-195-1/+444
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, bar charts used to recreate the bar chart visuals from scratch whenever any change to the bar data occurred. The following changes were made: - Graphics items are generated only for visible bars and labels - Graphics items are reused if layout or data changes - Labels are not generated unless they are visible - Only newly added bars are animated from scratch; existing bars will retain their size, making things more visually pleasing. With these optimizations, the size of the bar series is irrelevant to the painting performance, only thing that matters is how many bars and labels are actually within visible range. Task-number: QTBUG-52442 Change-Id: If3199a86e6819ef6219d2eb5f06d729c0bdbd2ae Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>