Commit Graph

202 Commits

Author SHA1 Message Date
rdb c218af2f49 tests: Make ClockObject test a little laxer again
This failed on the Windows builder because apparently time.sleep is apparently not super precise on Windows.
2020-05-19 21:59:48 +02:00
rdb 9ad4e4586c collide: Use correct intersection point for sphere into poly
Previously, the reported surface and intersection points could be outside the polygon if the sphere was colliding with the edge.

Fixes #907
2020-05-05 16:52:21 +02:00
rdb b85df6d9ed tests: Change unreliable ClockObject test
The tests are randomly failing due to more time being elapsed.  On a busy buildbot we don't really have any guarantee that the test doesn't take longer than the threshold.
2020-05-05 14:36:04 +02:00
Rishabh Tewari e2ec8ecbf0 tests: Improve ClockObject tests
Closes #898
2020-05-05 13:28:47 +02:00
rdb bfbbcad990 task: Support calling cancel() on currently awaiting futures
Fixes #911
2020-05-05 13:21:49 +02:00
rdb d799a09002 cleanup: Remove support for EOL versions of Python
Fixes #905
2020-04-26 20:07:56 +02:00
rdb e2177ecbdb Merge branch 'release/1.10.x' 2020-04-26 00:16:25 +02:00
Ashwini 80ab6a28c4 pnmimage: Added offset to add_sub_image and mult_sub_image
Closes #903
2020-04-25 22:56:40 +02:00
rdb ba010168cf tests: more improvements to test suite coverage 2020-04-25 14:44:43 +02:00
rdb ad296492f8 tests: add more TextureAttrib comparison tests
This will hopefully cover all the lines that are hit non-deterministically by codecov.
2020-04-25 10:36:23 +02:00
rdb a01711148b tests: add an assorted variety of unit tests
I'm mostly trying to make sure we have over-coverage for a couple of places that are being hit intermittently by our current unit tests, generating noisy codecov reports.  If we make sure these places are hit always, we hopefully won't have codecov misreport lost/gained coverage for unrelated changes.
2020-04-02 13:45:09 +02:00
rdb 9d8c523dfa putil: Assorted improvements to BitArray, SparseArray, *BitMask*:
* Support converting BitMask types to int
* BitArray constructor accepts a Python long of arbitrary size
* DoubleBitMask (and QuadBitMask, by extension) supports Python long in constructor
* Support for pickling (except DoubleBitMask)
* All of them now properly define __bool__()
* More unit tests

Fixes #886
2020-04-01 20:31:16 +02:00
rdb 30d9f88f8e Merge branch 'release/1.10.x' 2020-04-01 18:53:00 +02:00
rdb 064da09cf0 putil: add pickling support to Datagram class 2020-04-01 18:25:43 +02:00
Fireclaw c73415b4ba dgui: fix sizing after changing Slider/Scrollbar orientation
Closes #700
2020-02-23 16:28:40 +01:00
Thaumaturge 50d27166d8 particles: expose birth_litter() to support burst emission
Closes #524
Closes #340
2020-02-23 15:17:57 +01:00
rdb fda898807a Merge branch 'release/1.10.x' into master 2020-02-10 13:52:05 +01:00
Fireclaw 5d93237386 dgui: fix regression in DirectScrolledFrame (see #699)
Made initialization ignore the setScrollBarWidth function
Respect the length/height of the scrollbar and only change the actual
width in the setScrollBarWidth function
Added a very basic unittest class for the scrolledFrame

Closes #864
2020-02-10 13:17:05 +01:00
rdb 6c66c8618d tests: add unit test for passing plain mat3/mat4 to GLSL shader 2020-01-25 17:00:48 +01:00
rdb 508444d27f tests: use unique, non-interned keys for property refcount tests
There is an intermittent build failure and I suspect it's because the keys are too generic and are interned, and thus may have their refcount incremented or decremented by some other (background?) process.
2020-01-22 12:01:27 +01:00
Leandro (Cerberus1746) Benedet Garcia ffed59679d tests: add more unit tests for vector classes
Closes #826
2020-01-21 15:27:34 +01:00
rdb a8a775ad09 Merge branch 'release/1.10.x' 2020-01-04 02:49:28 +01:00
rdb cef70a4fe5 tests: remove __gt__ asserts from test_shaderinput_vector_compare
This fails in Python 2, and we don't actually provide this operator or make any guarantees about greater-than ordering, so it was silly to test for it to begin with.
2020-01-04 01:21:54 +01:00
rdb b60c3e6c7e tests: add unit tests for ShaderInput comparison (#827) 2020-01-03 18:52:55 +01:00
Leandro (Cerberus1746) Benedet Garcia 12f8363284 linmath: support round(), floor(), ceil() in vector classes
Closes #821
2019-12-30 03:06:00 +01:00
rdb b78b7be326 Merge branch 'release/1.10.x' 2019-12-30 01:50:54 +01:00
rdb b9713f71b1 tests: add some DCPacker unit tests (for #751) 2019-12-25 16:58:11 +01:00
rdb 2801165db3 tests: add unit tests for DirectFrame 2019-12-11 18:02:17 +01:00
Brian Lach 48ff3aeb08 pgraph: use bit flags instead of incremental enum for ShaderAttrib flags
The flags in the enum are actual bit flags instead of indices. This allows for setting/clearing a mask of flags in one go, rather than having to set each flag in its own function call. Existing code shouldn't be affected.

Closes #688
2019-12-11 16:49:42 +01:00
leotada 636c3d044a bullet: change wheel get/setSteering to use degrees
Fixes #757
Closes #784
2019-12-11 16:49:42 +01:00
hitesh4 cf4d418f2f tests: add unit tests for GeomVertexReader
Closes #604
2019-12-11 16:49:34 +01:00
rdb d088263f6f Merge branch 'release/1.10.x' 2019-11-11 03:28:39 +01:00
Thaumaturge 76d6b7ce58 tests: add unit tests for particle systems and #769 in particular
Co-authored-by: rdb <git@rdb.name>
2019-11-10 20:34:03 +01:00
rdb 847ebf667f Merge branch 'release/1.10.x' 2019-11-06 10:49:05 +01:00
fireclawthefox e6fc6c695d tests: add unit tests for DirectOptionMenu 2019-11-03 12:14:37 +01:00
rdb 40b3c7ccc9 direct: remove empty useless direct.controls.PhysicsRoller module 2019-10-29 23:55:14 +01:00
rdb 247f3c415a Merge branch 'release/1.10.x' 2019-10-08 19:50:48 +02:00
rdb c6990b9f9b prc: fix possible stack overflow in StreamReader
Fixes #754
2019-10-08 19:44:23 +02:00
Mitchell Stokes 660249a5cc Remove p3d/AppRunner/plugin system
Co-authored-by: rdb <git@rdb.name>

Closes #734
2019-09-10 16:49:57 +02:00
fireclawthefox 4d9bfe76f4 tests: Added Tests for most DirectGuiBase features
Closes #731
2019-09-10 16:36:13 +02:00
rdb 086cb1ee6d tests: fix return statement that should be a continue 2019-09-06 16:18:44 +02:00
rdb 53ff35dd6e tests: fix test_imports not to import things starting with 'lib' 2019-09-06 13:44:03 +02:00
rdb d92b440617 Merge branch 'release/1.10.x' 2019-09-06 09:46:20 +02:00
rdb 7f7cbd1c25 tests: add Filename unit tests for fspath protocol in particular 2019-09-04 12:40:58 +02:00
rdb 35135ea0e1 Merge branch 'release/1.10.x' 2019-09-01 21:54:57 +02:00
rdb 833f778cb7 pnmimage: add quantize feature to reduce number of colors in image 2019-08-28 22:44:16 +02:00
rdb 61a276f49a tests: add some ModifierButtons unit tests 2019-08-28 11:04:20 +02:00
rdb 7b5f818ab2 tests: convert makepanda/test_imports.py to a unit test 2019-08-26 10:07:58 +02:00
rdb 665d2fc56b Merge branch 'release/1.10.x' into incoming 2019-08-23 10:53:09 +02:00
rdb 88f8071dfc tests: add unit tests for direct.showbase.Loader.Loader class 2019-08-22 10:45:36 +02:00