summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-05-12Make acos and asin safelawnjelly
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input. The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe. (cherry picked from commit 50c5ed4876250f785be54b8f6124e7663afa38dc)
2023-05-12fix a test for wrapf with signed 32-bit floatajreckof
(cherry picked from commit fabd9535f0b5cb3f14238d267f6ab48f245fd149)
2023-03-27Fix `Array.slice()` rounding for `abs(step) != 1`Ninni Pipping
(cherry picked from commit 10f385fb792dc74ffb8be221fec88ba9ef7aaa25)
2023-02-24Core: Identity compare objects by id, not by pointersDmitrii Maganov
2023-02-20Explicitly cast to Variant's int type in Time testsAaron Franke
2023-02-19Fix ctrl+backspace crash with multicarets on the same linePaulb23
2023-02-16Fix PagedArray.merge_unordered() dropping pagesmyaaaaaaaaa
2023-02-11Added component-wise `min` and `max` functions for vectorsAndrés Botero
2023-02-09Merge pull request #72862 from Sauermann/fix-viewport-event-unittestsRémi Verschelde
Add Unit Tests for Viewport InputEvent handling
2023-02-09Merge pull request #72547 from MewPurPur/string-split-fixRémi Verschelde
Fix String.split() with empty string and delimeter
2023-02-09Add Unit Tests for Viewport InputEvent handlingMarkus Sauermann
2023-02-09Remove `m_object` parameter from unit test MacrosMarkus Sauermann
This serves no longer any purpose and can be removed.
2023-02-08Fix mouse-button-mask on button release in unit testMarkus Sauermann
On mouse-button release, the mask is 0.
2023-02-02Fix String.split() with empty string and delimeterVolTer
2023-02-01More codespell fixes, do more changes from previous ignore listRémi Verschelde
2023-01-31Merge pull request #71972 from Sauermann/fix-test-dsRémi Verschelde
[unittests] Send Mouse events via DisplayServer instead of push_input
2023-01-31Fail instead of segfaulting in IO testsmyaaaaaaaaa
2023-01-30Merge pull request #72213 from ARez2/ARez2/masterRémi Verschelde
Add Unit test for InputEventMouse
2023-01-29[unittests] Send Mouse events via DisplayServer instead of push_inputMarkus Sauermann
Currently Unittests simplify mouse-events by just pushing them to Viewports. For dealing with mouse-screen-coordinates (caused by the introduction of multiple native Windows) it becomes necessary to extend the DisplayServer functionality for unittests. This PR introduces DisplayServerMock based on DisplayServerHeadless, which additionally supports basic Mouse-Input handling.
2023-01-29Add Unit test for InputEventMouseARez
2023-01-28Add support for interpolating skewed transformsAaron Franke
2023-01-25Add `@GlobalScope` `is_same(a, b)` and `Variant::identity_compare()`Adam Scott
2023-01-23Add tests to ensure bound methods and signals are valid identifiersJan Haller
2023-01-23Cleanup and unify keyboard input.bruvzg
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes. - Unify IME behaviour, add inline composition string display on Windows and X11. - Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events. - Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS. - Add support for media key handling on macOS. Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-23Convert en_GB spelling to en_US with codespellRémi Verschelde
2023-01-19Merge pull request #71598 from bruvzg/gdscript_bidi_overrideRémi Verschelde
Implement BiDi override mode for GDScript source.
2023-01-19Merge pull request #71565 from RedworkDE/doc-arraymesh-add-surfaceRémi Verschelde
Fix LOD sort order; checks in add_surface; and document all parameters of `ArrayMesh::add_surface_from_arrays`
2023-01-19[GDExtension] Expose some low level functions and String operators.bruvzg
2023-01-19Fix LOD sort order; checks in add_surface; and document all parameters of ↵RedworkDE
`ArrayMesh::add_surface_from_arrays` Also clarify some related documentation and expose the misssing `ArrayFormat::ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY`
2023-01-18Implement BiDi override mode for GDScript source.bruvzg
2023-01-18Allow unindent without selectionkobewi
2023-01-16Merge pull request #71308 from hcoura/test-curve-2dRémi Verschelde
Add unit tests for Curve2D
2023-01-15Rename `center` method to `get_center` in Plane.Raul Santos
2023-01-14Fixed adding extra quote when completing stringsPaulb23
2023-01-14Added more node testsMarius Hanl
Testing the following functions: - reparent - duplicate - replace_by (also with keeping groups)
2023-01-13Add unit tests for Curve2DHenrique Coura
2023-01-09Fix typos with codespellRémi Verschelde
Also includes #71080. Co-authored-by: Psychpsyo <60073468+Psychpsyo@users.noreply.github.com>
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-07Add support for the custom initial screen for the main window, fix primary ↵bruvzg
screen detection.
2023-01-05Merge pull request #65609 from dalexeev/animated-spriteRémi Verschelde
`AnimatedSprite{2D,3D}` improvements
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-05`AnimatedSprite{2D,3D}` improvementsDanil Alexeev
* Add support for individual frame duration to `SpriteFrames`. * Various minor improvements.
2023-01-03Merge pull request #67694 from aaronfranke/its-timeRémi Verschelde
Remove duplicate Month and Weekday enums
2023-01-03Merge pull request #70840 from MewPurPur/get-point-count-instead-of-pointsRémi Verschelde
Rename `get_points_count()` to `get_point_count()` in Gradient
2023-01-03Merge pull request #70152 from Maran23/4-x-tests-for-nodeRémi Verschelde
Initial tests for node
2023-01-03Add initial tests for NodeMarius Hanl
- Test simple and complex cases for: -> add, remove, move, get, find, count, is_inside_tree -> name, nodepath -> verify the scene tree - Simple tests for the processing setup
2023-01-02Rename get_points_count() to get_point_count() internallyVolTer
2022-12-29Add tests for signalsMarius Hanl
- Adding signals - Emitting signals
2022-12-26Remove duplicate Month and Weekday enumsAaron Franke
Well, they were duplicately-exposed, but triplicately-defined.
2022-12-26Merge pull request #70396 from jainl28patel/VisualShader-unit-testYuri Rubinsky