summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Test, refactor and fix a bug in Basis.get_axis_anglefabriceci2022-09-141-2/+55
|
* Fix parsing of XML CDATA and add test casesHaoyu Qiu2022-09-091-0/+164
|
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-073-17/+20
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Expose registration of physics servers to GDExtensionRicardo Buring2022-09-071-2/+2
| | | | This exposes PhysicsServer2DManager and PhysicsServer3DManager.
* Merge pull request #64361 from Mickeon/rename-caret-blinkRémi Verschelde2022-09-071-6/+6
|\ | | | | | | Rename every instance of `caret_blink_speed` to `caret_blink_interval`
| * Rename every instance of `caret_blink_speed` to `caret_blink_interval`Micky2022-09-061-6/+6
| | | | | | | | | | | | It's been changed in EditorSettings, LineEdit, TextEdit. Affects setters and getters, and passed parameters, too.
* | Replace Rect2(i) has_no_area with has_areaAaron Franke2022-09-042-16/+16
| |
* | Replace AABB has_no_volume with has_volumeAaron Franke2022-09-041-6/+11
|/ | | | Also replace has_no_surface with has_surface
* Merge pull request #64917 from Tim-Fronsee/fix/add-gutter-total-widthRémi Verschelde2022-09-022-7/+13
|\
| * Fix TextEdit::gutters_width (total gutter width) when adding & removing a ↵Tim Fronsee2022-08-312-7/+13
| | | | | | | | | | | | | | | | gutter by calling TextEdit::_update_gutter_width in TextEdit::add_gutter & TextEdit::remove_gutter Update TextEdit gutters subcase, gutter add and remove to ensure gutter total width is correct Fix test_code_edit symbol lookup test case to include padding (+2)
* | Merge pull request #64952 from Chaosus/vs_rename_uniform_to_paramRémi Verschelde2022-09-021-1/+1
|\ \
| * | Rename `uniform` to `parameter` across the engineYuri Rubinsky2022-09-011-1/+1
| | |
* | | Refactor BitMap and add testsHendrik Brucker2022-09-012-0/+446
| | | | | | | | | | | | Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
* | | Merge pull request #55617 from madmiraal/fix-55384Rémi Verschelde2022-09-011-1/+1
|\ \ \
| * | | Fix Geometry3D::get_closest_points_between_segments() returns NaNMarcel Admiraal2022-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix: - Geometry3D::get_closest_distance_between_segments() returning incorrect values. - Test for Geometry3D::get_closest_distance_between_segments() testing for an incorrect value.
* | | | Merge pull request #63968 from KoBeWi/finding_stuff_in_a_dictionaryRémi Verschelde2022-09-011-0/+18
|\ \ \ \ | |_|/ / |/| | |
| * | | Add Dictionary.find_key()kobewi2022-08-161-0/+18
| | | |
* | | | Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio2022-08-301-37/+37
| | | | | | | | | | | | | | | | | | | | "sampling" is a more accurate term than "interpolating" for what's happening when using that function.
* | | | Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-12/+75
| |/ / |/| |
* | | Rename String `plus_file` to `path_join`Aaron Franke2022-08-297-18/+18
| | |
* | | Merge pull request #64119 from YuriSizov/theme-init-databaseRémi Verschelde2022-08-291-3/+8
|\ \ \
| * | | Add ThemeDB, expose previously static Theme methodsYuri Sizov2022-08-261-3/+8
| | | |
* | | | Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* | | | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-0/+4
| | | |
* | | | Rename `str2var` to `str_to_var` and similarMicky2022-08-261-25/+25
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
* | | Merge pull request #64804 from Mickeon/rename-path-progressRémi Verschelde2022-08-252-94/+94
|\ \ \ | |_|/ |/| |
| * | Rename PathFollow's `offset`s to `progress` & `progress_ratio`Micky2022-08-242-94/+94
| | | | | | | | | | | | Applies for both PathFollow2D and PathFollow3D
* | | Formatting changes to string test commentsMarcus Elg2022-08-241-19/+19
| | |
* | | Merge pull request #63728 from MarcusElg/%vRémi Verschelde2022-08-241-2/+92
|\ \ \ | |/ / |/| | Add %v for formatting vectors
| * | Add %v for formatting vectorsMarcus Elg2022-08-231-2/+92
| | |
* | | Merge pull request #64639 from Geometror/test-quickadd-scriptRémi Verschelde2022-08-231-0/+132
|\ \ \
| * | | Add a Python script to create new test suites more quicklyHendrik Brucker2022-08-201-0/+132
| |/ / | | | | | | | | | Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* | | Replace Array return types with TypedArraykobewi2022-08-221-3/+3
| | |
* | | Merge pull request #62545 from yedpodtrzitko/yed/pytest-buildersRémi Verschelde2022-08-2221-0/+448
|\ \ \ | |/ / |/| |
| * | ci: add basic test pipeline for shader buildersJiri Suchan2022-08-1921-0/+448
| |/
* / Make `property_*_revert` methods multilevel and expose them for scriptingYuri Sizov2022-08-181-0/+6
|/
* vector4 distance_squared_to and update csharpantonWetzel2022-08-091-0/+3
|
* Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov2022-08-082-43/+101
|
* Vector4/Vector4i: Add missing methods, tests and fix change of sign operatorHendrik Brucker2022-08-073-0/+462
|
* [Text Server] Prevent composite glyphs which incorporate kashida from being ↵bruvzg2022-08-051-78/+120
| | | | used for justification. Update TextServer tests to clean up on fail.
* Tests: Silence some intentional errorsRémi Verschelde2022-08-049-25/+39
| | | | Also fix printing messages in ClassDB test.
* Add unit tests for all public methods in the SpriteFrames classjtorre392022-08-042-0/+247
|
* Merge pull request #50907 from codepatzer/quaternion_utRémi Verschelde2022-08-042-0/+390
|\
| * Add tests file for Quaternion unit tests, with initial UTscodepatzer2022-08-042-0/+390
| | | | | | | | | | | | | | | | | | | | - Test constructors and quaternion product. - Add test case for Axis-Angle construction about Y-axis. - Add test case for xform of i-, j-, & k-unit vectors. - Add test case for construction from Basis. - Add test case for xform of arbitrary vector. - Add stress test case: many Quaternions xform many vectors. - Make comments consistent with style guide.
* | Merge pull request #60736 from StrawbDev/audio-stream-sample-unit-testRémi Verschelde2022-08-042-0/+258
|\ \ | |/ |/|
| * Add test cases for AudioStreamWAVStrawbDev2022-08-042-0/+258
| |
* | Add Unit Tests for InputEventKeyTimon Bestebreur2022-08-042-0/+295
|/
* Merge pull request #54325 from skimmedsquare/test-add-ridRémi Verschelde2022-08-042-0/+102
|\
| * Add unit tests for RID class.Sean Kim2022-08-042-0/+102
| |
* | Add unit tests for ShortcutTimon Bestebreur2022-08-042-0/+236
|/ | | | | | Next to that, add entry for the test file in test_main.cpp. These test cases test the basic functionality of the shortcut module.