Commit Graph

70 Commits

Author SHA1 Message Date
wmayer
a08435a53c App: add documentation to PropertyCleaner
move global variables static variables of PropertyCleaner
add unit test for removal of property in onBeforeChange
2020-03-21 18:33:08 +01:00
Stefan Tröger
7b79012ae1 Implement and test extension events 2020-02-13 14:39:46 +01:00
luz.paz
30d2e29e0c LGTM: various fixes for using string operator instead of numeric 2019-10-25 10:33:12 -03:00
Zheng, Lei
de93446a1c Test cases changes
Slight adjustment of various test cases due to various API changes.
2019-08-17 15:32:48 +02:00
wmayer
b979366e9c add unit test to verify that removing a property alo removes a dependency 2019-03-18 14:31:18 +01:00
wmayer
a8a6c6572f fix document observer classes to allow to run unit tests multiple times 2019-03-03 13:57:24 +01:00
wmayer
72314b0154 make unit tests about document observer more reliably 2018-11-08 16:19:06 +01:00
wmayer
ec46f95192 Add unit tests to check the new Prop_NoRecompute value 2018-11-08 10:24:14 +01:00
wmayer
e8d5075b43 + minor fix in Document unit tests 2018-11-05 11:21:50 +01:00
wmayer
550d62bb6a replace deprecated failUnless with assertEqual 2018-10-27 17:44:37 +02:00
ickby
d5cbee5543 Persistence: Test cases for content dump
It turned our that the document could not be dumped as the xml specifier was used as first element. As the dumping added the <content> element around it was invalid. However, content is required to read properties. Hence the xml element generation was moved.
2018-10-27 16:15:30 +02:00
wmayer
5f6a6cde9c fix bug in PropertyPlacementList::RestoreDocFile 2018-10-22 12:06:54 +02:00
wmayer
bf4dd7920e emit signal when starting and finishing to save a document 2018-10-08 14:03:00 +02:00
ickby
b84edf59af Make document observer testcases work in cmd line mode 2018-10-08 11:06:25 +02:00
ickby
761881fe99 Expose edit signals to Gui observer 2018-10-08 11:06:04 +02:00
ickby
835c75421f Add python document observer for GUI documents 2018-10-08 11:04:56 +02:00
ickby
7a71379c58 Expose dynamic property signals to python observer 2018-10-08 11:02:31 +02:00
ickby
ccb108dc3d Improve document observer tests by checking parameters of each call, not only the last one 2018-10-08 11:01:52 +02:00
ickby
b08738c15b Expose document property changes to python document observer 2018-10-08 11:01:07 +02:00
ickby
617114a072 Fix and test the new signals 2018-10-08 10:58:39 +02:00
luz.paz
360e581672 Misc. typo and whitespace fixes
ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=30988#p256964
along with other misc. fixes
2018-09-19 17:26:03 +02:00
wmayer
09a8cd6faa fixes #0003586: App test cases require Part module 2018-09-10 20:00:41 +02:00
luz.paz
60bd74aaad Trailing whitespace fixes 2018-08-18 21:48:42 +02:00
luz.paz
fab9cad50f Misc. typos
Found via `codespell`
Trivial typos

Found via `codespell`
2018-08-18 21:48:42 +02:00
wmayer
5e16cb9792 fixes #0003323: Crash when clearing transaction list 2018-01-31 23:39:13 +01:00
wmayer
5d1fb6937e tmp. disable unit test for link goes out of scope 2018-01-28 00:38:07 +01:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
plgarcia
c42330ef0a Add a function to compare 2 double allowing approximation errors 2017-12-13 17:00:38 +01:00
wmayer
28578fa390 unit test for backlinks on expressions 2017-10-19 23:49:01 +02:00
Stefan Tröger
104c7db3f9 Remove unneeded debug print in test case 2017-09-09 16:55:55 +02:00
Stefan Tröger
efe33757ee Make sure all relevant links are found for object in GeoFeatureGroup. issue0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
b2874ec0dc Keep backlink consitent during undo/redo. issue 0003150 2017-09-09 16:55:55 +02:00
Stefan Tröger
4fa3005343 Make Group searching robust for cyclic dependencies. fixes #0002567 2017-09-09 16:55:55 +02:00
Stefan Tröger
03721b91b8 Prevent crash on cyclic group relations. fixes #0002567 2017-09-09 16:55:55 +02:00
Stefan Tröger
b28c5aa5ba Test cross GeoFeatureLinks 2017-09-09 16:47:07 +02:00
Stefan Tröger
7f34cbe733 Ensure objects to be in a single GeoFeatureGroup only 2017-09-09 16:47:07 +02:00
Stefan Tröger
2b7e0dc327 Prevent cross GeoFeatureGroup links on recompute 2017-09-09 16:47:07 +02:00
wmayer
0dbfd492be unit test: remove property while transaction is active and abort it later 2017-09-08 14:34:33 +02:00
wmayer
2ae441ff9d unit test for duplicate links in a group 2017-08-19 19:36:40 +02:00
Stefan Tröger
fd0d3f1a39 Revert link integrity checks in properties
The DAG test is not needed anymore as the relevant functions are non-DAG save now, and the other check will be moved to the recompute as it is not efficient or save to do it in the links itself.
2017-06-19 15:37:09 +02:00
Stefan Tröger
1d10dd2835 Extend python interface for groups and fix test cases 2017-06-19 15:37:09 +02:00
Stefan Tröger
2d3c655ced Group tests and fixes 2017-06-19 15:37:09 +02:00
Stefan Tröger
a1d9622eb5 Links ensure uncyclic graph and correct groups 2017-06-19 15:37:09 +02:00
Stefan Tröger
94082a2f73 Group: ensure single group only 2017-06-19 15:37:09 +02:00
Stefan Tröger
538853e5f4 GeoFeatureGroup: add object adds relevant links 2017-06-19 15:37:09 +02:00
wmayer
8c1aca1fb8 issue #0002996: PyObjectBase notification chain can lead to unexpected changes to document 2017-04-27 15:09:28 +02:00
looooo
12a8c0fbe8 py3: Test: print 2017-03-02 12:46:57 +01:00
wmayer
3646f15022 issue #2902: add unit test 2017-02-14 16:41:14 +01:00
wmayer
d0e6253041 issue #0002902: PyObjectBase notification chain can lead to unexpected changes to document 2017-02-14 00:32:30 +01:00
Stefan Tröger
0e83976698 DAG: Add document graph recompute test 2017-01-21 19:15:36 +01:00