Nyall Dawson
f1313af914
Add some more unit tests
2017-09-06 11:25:17 +10:00
Nyall Dawson
1e1ed8a462
Add unit tests for referenced geometries
2017-09-06 11:25:16 +10:00
Alessandro Pasotti
5f5be25357
Merge pull request #5124 from boundlessgeo/providers_gui_config
...
Providers gui config
2017-09-05 19:27:47 +02:00
Alessandro Pasotti
08588a54da
Add tooltips and tests for the provider class
2017-09-05 17:03:20 +02:00
Matthias Kuhn
8efa9fa815
[FEATURE] Add "starts with" and "ends with" to multi attribute search
2017-09-05 14:15:38 +02:00
Nyall Dawson
64718766fc
Add some layout undo/redo tests
2017-09-05 11:17:33 +10:00
Nyall Dawson
0062513bba
Identation
2017-09-05 10:23:28 +10:00
Nyall Dawson
1589b4e648
Implement some saving/restoring layout items to XML
2017-09-05 09:39:22 +10:00
Nyall Dawson
66e1cf04e6
Port methods to retrieve layout items
2017-09-05 09:39:22 +10:00
Sandro Mani
c43cd995a2
Merge pull request #5122 from manisandro/ogr_subset_fid
...
[OGR] Attempt to use actual ogr_fid also if subset string is set
2017-09-04 17:01:28 +02:00
Sandro Mani
217e70067f
[OGR] Attempt to use actual ogr_fid also if subset string is set
...
If a subset string is set on an OGR layer, the feature iterator returns features with ids taken from a sequence starting from 0, regardless of the original feature id.
This causes a mismatch in the data shown by the identify results table and the attribute widget.
2017-09-04 16:28:47 +02:00
Alessandro Pasotti
fd7bcb368d
Updates tests for source select registry
2017-09-04 15:16:20 +02:00
Jorge Gustavo Rocha
858413e5c1
Improve test: assert → assertTrue
2017-09-04 10:51:05 +01:00
Nyall Dawson
b629fbca49
Skip another test which is fragile on Travis
2017-09-04 16:55:35 +10:00
Alessandro Pasotti
90f873086c
Attach QgsSourceSelectProviderRegistry to QgsGui
...
And make it a singleton
2017-09-04 08:00:14 +02:00
Nyall Dawson
700f9b2ef8
Condense qgstestutils.h and qgstest.h into a single file
2017-09-04 10:38:18 +10:00
Nyall Dawson
2286710606
Skip some task manager tests on Travis only
...
Instead of #ifdefing them out, only prevent them running
on Travis so that they still run locally.
Also skip another task manager test which randomly
fails only on Travis
2017-09-04 10:32:08 +10:00
Nyall Dawson
26830949d9
Add a QgsLocatorModel subclass which automatically sets up
...
required connections to a QgsLocator
Use this QgsLocatorModel subclass when you want the connections
between a QgsLocator and the model to be automatically created
for you. If more flexibility in model behavior is required,
use the base QgsLocatorModel class instead and setup the
connections manually.
2017-09-03 16:35:51 +10:00
Nyall Dawson
a8e1d335bb
Move locator non-gui classes to core
...
Allows reuse in projects which don't build QGIS gui, e.g.
QField
2017-09-03 16:15:20 +10:00
Jorge Gustavo Rocha
e681547c1f
remove unnecessary test
2017-09-03 00:44:25 +01:00
Jorge Gustavo Rocha
aa4213f715
remove unwanted files
2017-09-03 00:15:09 +01:00
Jorge Gustavo Rocha
a82dd5bbf3
Merge remote-tracking branch 'origin/add-default-layers' into add-default-layers
2017-09-02 23:43:39 +01:00
Jorge Gustavo Rocha
dc50a3e644
settings.globalChildGroups() test moved to test_qgssettings.py
2017-09-02 23:43:17 +01:00
Jorge Gustavo Rocha
390a34f5ec
settings.globalChildGroups() test moved to test_qgssettings.py
2017-09-02 23:24:38 +01:00
lbartoletti
e30f7044c9
[FEATURE][Processing] Minimal enclosing circle
2017-09-03 07:37:53 +10:00
Alessandro Pasotti
4c46f64647
Add QgsSourceSelectProviderRegistry with tests
2017-09-01 17:47:55 +02:00
Alessandro Pasotti
cd1c9b1e28
Add class QgsSourceSelectProvider and tests
...
This is the first step for QEP 101
2017-09-01 14:30:34 +02:00
Jorge Gustavo Rocha
7af72f78d0
Improve test: assert → assertTrue
2017-09-01 09:34:27 +01:00
Jorge Gustavo Rocha
ce01bc0b36
Include settings.globalChildGroups in test
...
Fix container iteration
2017-09-01 09:20:49 +01:00
Nyall Dawson
e68835f12e
Fix some possible leaks in tests
2017-09-01 08:00:59 +10:00
Nyall Dawson
0a9e9944b4
[FEATURE] Expression function for hausdorff distance
...
Allows calculation of the Hausdorff distance between two
geometries
2017-08-31 08:02:44 +10:00
Nyall Dawson
d8607222e0
Expose GEOS Hausdorff distance calculations to QgsGeometry
2017-08-31 08:02:44 +10:00
Nyall Dawson
184899ec30
Port remaining plotly based algs to new API
2017-08-30 07:28:25 +10:00
Nyall Dawson
e4c1e1b905
Ignore Q_ENUM in doxygen test
2017-08-29 20:09:54 +10:00
Nyall Dawson
78b834c5b0
Fix missing Q_OBJECT macros
...
Thanks to Clazy
2017-08-29 18:03:41 +10:00
Nyall Dawson
1fddfcf622
Flip Q_ENUMS to Q_ENUM
...
See https://woboq.com/blog/q_enum.html for rationale
2017-08-29 18:03:41 +10:00
Nyall Dawson
9b2e60ee1b
Remove use of old CMP0005 CMake policy
...
Since it's deprecated on newer CMake versions
2017-08-29 13:37:06 +10:00
Nyall Dawson
21a3b8a4f3
Use QGSCOMPARENEAR instead of QVERIFY( qgsDoubleNear(... ) )
...
QGSCOMPARENEAR gives better debugging output when the
test fails
2017-08-29 12:39:59 +10:00
Nyall Dawson
2af10cb2ca
Fix C4566 warning on Windows build
2017-08-29 12:11:07 +10:00
Nyall Dawson
029f741cfa
Add qgsAsConst(...)
...
This is the equivalent of std::as_const (which requires c++17) or
qAsConst (which requires Qt 5.7), neither of which we have
as minimum dependancies.
By wrapping implicitly shared Qt containers in qgsAsConst we can
safely use c++ for ranged loops instead of Q_FOREACH. (Since
Q_FOREACH's future is shaky)
See https://www.kdab.com/goodbye-q_foreach/ for further details
on why for causes a detach for Qt containers and why Q_FOREACH
is being removed from Qt.
2017-08-29 03:18:37 +10:00
Blottiere Paul
64aa40510d
Update tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
927dea3c18
Add tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
d4789db19a
Fix tests
2017-08-28 14:09:56 +01:00
Blottiere Paul
4be1cc0067
Add tests for deleteCascade option
2017-08-28 14:09:56 +01:00
Blottiere Paul
cf5ab4b0f1
Add tests for upsertOnEdit option
2017-08-28 14:09:55 +01:00
Blottiere Paul
b8a90ca458
Add tests
2017-08-28 14:09:55 +01:00
Sandro Santilli
650cf6a3fd
Remove line segmentation test checking for control point containement
...
There are more tests in dedicated file (testqgscurve.cpp)
2017-08-25 23:06:52 +02:00
Sandro Santilli
5186c385c4
Expect centroid obtained by not forcing inclusion of control point
2017-08-25 23:06:52 +02:00
Sandro Santilli
c51db212ee
Do not expect forced control point in output
2017-08-25 23:06:52 +02:00
Sandro Santilli
8363d2f3d0
Update expected centroid, interpolated angle and located point for reference curves
...
These values change because they are computed on the *linearization*
of those curves, and refactoring linearization codes results in
slighly different values.
NOTE: adding or not adding the control point would also affect these
results
2017-08-25 23:06:52 +02:00