summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Place minor tickmarks on horizontal axis correctlyPaul Olav Tvete2019-12-052-4/+12
| | | | | | | | | | | | | | It looks like top and bottom was accidentally swapped when the dynamic tickmarks feature was added. This resulted in the minor tickmarks being drawn on the opposite edge of the canvas from the axis and the major tickmarks. Also modified the manual test to make drawing the grid optional, so the position of the tick marks can be seen more easily. Fixes: QTBUG-79349 Change-Id: Ia25c656d3d66ee0e6dd908504ec5c81cd2555bde Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Avoid initializing QFlags with 0 or nullptrFriedemann Kleint2019-11-2514-173/+173
| | | | | | | It is being deprecated. Change-Id: I1eafbce147e05028c93830bb882611d9eea58586 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14v5.14.0-beta2Simon Hausmann2019-10-161-1/+10
|\ | | | | | | Change-Id: I2570b3c739857b2fc4ffb26e9ccf1101f2803d87
| * Fix removing rows from candlestick model mapperMiikka Heikkinen2019-10-151-1/+10
| | | | | | | | | | | | | | | | | | There is no guarantee removed rows are in correct order or that they are sequential, so don't assume so. Fixes: QTBUG-79188 Change-Id: I6ee6851ce881872d01486c600d4204faeb162d87 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* | Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-08-031-0/+2
|\| | | | | | | Change-Id: I6a227dfd1762f3c551c373cceb0d8b66bd061cde
| * BLACKLIST dynamicEdgeSeriesChange for msvc-2019Heikki Halmet2019-07-301-0/+2
| | | | | | | | | | | | Task-number: QTBUG-77240 Change-Id: I2bbfa696db6528257d911b94e6c56759dd32beb3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | unblacklist passing testsDaniel Smith2019-06-251-1/+1
| | | | | | | | | | | | | | | | These tests have not failed on the removed platforms for at least 60 days Task-number: QTBUG-76608 Change-Id: I5e084eca4b723cbf63b35dbb4546d57135dc8f59 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-06-039-112/+203
|\| | | | | | | Change-Id: I4d0a887c45dbeb23f7bd826d1e90c823323eb198
| * Fix deprecation warnings about QtCharts::setAxisX(), setAxisY()Friedemann Kleint2019-05-287-58/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use new API, fixing warnings like: tst_qchart.cpp:343:34: warning: 'void QtCharts::QChart::setAxisX(QtCharts::QAbstractAxis*, QtCharts::QAbstractSeries*)' is deprecated [-Wdeprecated-declarations] ... tst_qchart.cpp:361:34: warning: 'void QtCharts::QChart::setAxisY(QtCharts::QAbstractAxis*, QtCharts::QAbstractSeries*)' is deprecated [-Wdeprecated-declarations] ... Some test appear to be relying on the axes being removed in a certain order. Change-Id: I86fab08d661afcd1087a55f847133a9e90d758f9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| * Tests: Fix deprecation warnings about QtCharts::axisX(), axisY()Friedemann Kleint2019-05-282-43/+49
| | | | | | | | | | | | | | | | | | | | | | | | Use new API, fixing warnings like: tst_qchart.cpp:254:73: warning: 'QtCharts::QAbstractAxis* QtCharts::QChart::axisX(Q Charts::QAbstractSeries*) const' is deprecated [-Wdeprecated-declarations] tst_qchart.cpp:256:74: warning: 'QtCharts::QAbstractAxis* QtCharts::QChart::axisY(Q Charts::QAbstractSeries*) const' is deprecated [-Wdeprecated-declarations] Change-Id: I794c1460638c27fa7d44fc083cd7a6b4ee2e0987 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| * Fix crash on ChartView component destroyKirill Burtsev2019-05-221-11/+17
| | | | | | | | | | | | | | | | | | | | | | QML engine expects that children of QML element are deleted through parent/child relationship, but deferring breaks this assumption and leads to crash later in destruction process. Fixes: QTBUG-70987 Change-Id: I9ae3cefc6ee158582d17709272d7d33f45c57cdf Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | QtChart: Remove deprecated QPainter::HighQualityAntialiasingChristian Ehrlicher2019-05-271-4/+1
| | | | | | | | | | | | | | | | | | | | QPainter::HighQualityAntialiasing is deprecated and should be replaced by QPainter::Antialiasing Change-Id: Ib4eeea6c17d82d87fb4270f146a6604ce5c8d5fb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Fix deprecation warningsFriedemann Kleint2019-05-271-1/+1
|/ | | | | | | | | | | Fix warnings: animations/axisanimation.cpp:117:51: warning: 'QVariant qVariantFromValue(const T&) [with T = QVector<double>]' is deprecated: Use QVariant::fromValue() instead. [-Wdeprecated-declarations] ... axis/chartaxiselement.cpp:385:64: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] ... Change-Id: Ib36d7e09b737110323b816442b36ca2b2e79d6a5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* 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>