summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Core: Identity compare objects by id, not by pointersDmitrii Maganov2023-02-241-0/+8
|
* Explicitly cast to Variant's int type in Time testsAaron Franke2023-02-201-2/+2
|
* Fix ctrl+backspace crash with multicarets on the same linePaulb232023-02-191-0/+44
|
* Fix PagedArray.merge_unordered() dropping pagesmyaaaaaaaaa2023-02-161-0/+51
|
* Added component-wise `min` and `max` functions for vectorsAndrés Botero2023-02-114-0/+31
|
* Merge pull request #72862 from Sauermann/fix-viewport-event-unittestsRémi Verschelde2023-02-095-5/+741
|\ | | | | | | Add Unit Tests for Viewport InputEvent handling
| * Add Unit Tests for Viewport InputEvent handlingMarkus Sauermann2023-02-095-5/+741
| |
* | Merge pull request #72547 from MewPurPur/string-split-fixRémi Verschelde2023-02-091-0/+8
|\ \ | |/ |/| | | Fix String.split() with empty string and delimeter
| * Fix String.split() with empty string and delimeterVolTer2023-02-021-0/+8
| |
* | Remove `m_object` parameter from unit test MacrosMarkus Sauermann2023-02-093-313/+313
| | | | | | | | This serves no longer any purpose and can be removed.
* | Fix mouse-button-mask on button release in unit testMarkus Sauermann2023-02-081-1/+1
| | | | | | | | On mouse-button release, the mask is 0.
* | More codespell fixes, do more changes from previous ignore listRémi Verschelde2023-02-011-7/+7
| |
* | Merge pull request #71972 from Sauermann/fix-test-dsRémi Verschelde2023-01-314-7/+165
|\ \ | | | | | | | | | [unittests] Send Mouse events via DisplayServer instead of push_input
| * | [unittests] Send Mouse events via DisplayServer instead of push_inputMarkus Sauermann2023-01-294-7/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Fail instead of segfaulting in IO testsmyaaaaaaaaa2023-01-312-0/+9
| | |
* | | Merge pull request #72213 from ARez2/ARez2/masterRémi Verschelde2023-01-302-0/+82
|\ \ \ | |_|/ |/| | | | | Add Unit test for InputEventMouse
| * | Add Unit test for InputEventMouseARez2023-01-292-0/+82
| | |
* | | Add support for interpolating skewed transformsAaron Franke2023-01-281-0/+13
|/ /
* / Add `@GlobalScope` `is_same(a, b)` and `Variant::identity_compare()`Adam Scott2023-01-251-0/+190
|/
* Add tests to ensure bound methods and signals are valid identifiersJan Haller2023-01-231-0/+4
|
* Cleanup and unify keyboard input.bruvzg2023-01-231-4/+3
| | | | | | | | | | - 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>
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-232-5/+5
|
* Merge pull request #71598 from bruvzg/gdscript_bidi_overrideRémi Verschelde2023-01-191-1/+1
|\ | | | | | | Implement BiDi override mode for GDScript source.
| * Implement BiDi override mode for GDScript source.bruvzg2023-01-181-1/+1
| |
* | Merge pull request #71565 from RedworkDE/doc-arraymesh-add-surfaceRémi Verschelde2023-01-191-1/+20
|\ \ | | | | | | | | | Fix LOD sort order; checks in add_surface; and document all parameters of `ArrayMesh::add_surface_from_arrays`
| * | Fix LOD sort order; checks in add_surface; and document all parameters of ↵RedworkDE2023-01-191-1/+20
| |/ | | | | | | | | | | `ArrayMesh::add_surface_from_arrays` Also clarify some related documentation and expose the misssing `ArrayFormat::ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY`
* | [GDExtension] Expose some low level functions and String operators.bruvzg2023-01-191-1/+1
| |
* | Allow unindent without selectionkobewi2023-01-181-31/+17
|/
* Merge pull request #71308 from hcoura/test-curve-2dRémi Verschelde2023-01-162-0/+229
|\ | | | | | | Add unit tests for Curve2D
| * Add unit tests for Curve2DHenrique Coura2023-01-132-0/+229
| |
* | Rename `center` method to `get_center` in Plane.Raul Santos2023-01-151-2/+2
| |
* | Fixed adding extra quote when completing stringsPaulb232023-01-141-1/+1
| |
* | Added more node testsMarius Hanl2023-01-141-3/+103
|/ | | | | | | Testing the following functions: - reparent - duplicate - replace_by (also with keeping groups)
* Fix typos with codespellRémi Verschelde2023-01-091-2/+2
| | | | | | Also includes #71080. Co-authored-by: Psychpsyo <60073468+Psychpsyo@users.noreply.github.com>
* Use BitField<> in core type masksJuan Linietsky2023-01-083-40/+40
| | | | | | | | * 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.
* Add support for the custom initial screen for the main window, fix primary ↵bruvzg2023-01-071-1/+1
| | | | screen detection.
* Merge pull request #65609 from dalexeev/animated-spriteRémi Verschelde2023-01-051-4/+4
|\ | | | | | | `AnimatedSprite{2D,3D}` improvements
| * `AnimatedSprite{2D,3D}` improvementsDanil Alexeev2023-01-051-4/+4
| | | | | | | | | | * Add support for individual frame duration to `SpriteFrames`. * Various minor improvements.
* | One Copyright Update to rule them allRémi Verschelde2023-01-0582-2378/+2378
|/ | | | | | | | | | | | | | | | | | | | 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".
* Merge pull request #67694 from aaronfranke/its-timeRémi Verschelde2023-01-031-4/+4
|\ | | | | | | Remove duplicate Month and Weekday enums
| * Remove duplicate Month and Weekday enumsAaron Franke2022-12-261-4/+4
| | | | | | | | Well, they were duplicately-exposed, but triplicately-defined.
* | Merge pull request #70840 from MewPurPur/get-point-count-instead-of-pointsRémi Verschelde2023-01-031-5/+5
|\ \ | | | | | | | | | Rename `get_points_count()` to `get_point_count()` in Gradient
| * | Rename get_points_count() to get_point_count() internallyVolTer2023-01-021-5/+5
| | |
* | | Merge pull request #70152 from Maran23/4-x-tests-for-nodeRémi Verschelde2023-01-032-0/+416
|\ \ \ | | | | | | | | | | | | Initial tests for node
| * | | Add initial tests for NodeMarius Hanl2023-01-032-0/+416
| | |/ | |/| | | | | | | | | | | | | | | | | | | - 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
* / | Add tests for signalsMarius Hanl2022-12-291-0/+78
|/ / | | | | | | | | - Adding signals - Emitting signals
* | Merge pull request #70396 from jainl28patel/VisualShader-unit-testYuri Rubinsky2022-12-262-0/+152
|\ \
| * | Add unit test for VisualShaderjainl28patel2022-12-262-0/+152
| | |
* | | Added the possibility to define a default value in ↵Marius Hanl2022-12-212-0/+103
|/ / | | | | | | | | | | | | | | ProjectSettings.get_setting(), which is used when no setting is set. Also added tests for the project settings. Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
* | Fix autocomplete with autobrace completion not adding closing pairPaulb232022-12-191-0/+83
| |