summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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
2022-12-26Add unit test for VisualShaderjainl28patel
2022-12-21Added the possibility to define a default value in ↵Marius Hanl
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>
2022-12-19Fix autocomplete with autobrace completion not adding closing pairPaulb23
2022-12-17Merge pull request #70168 from Haydoggo/autocomplete-placement-fixRémi Verschelde
Fix autocomplete box placement
2022-12-17Fix autocomplete box placementHayden Leete
2022-12-16Fix String::word_wrap() for long wordsHaoyu Qiu
- Changes `TextServer.string_get_word_breaks()` - Returns pairs of boundary start and end offsets - Accepts `chars_per_line` to return line breaks - Removes `String::word_wrap()` Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-12-12[Tests] Get rid of several error messages when running the test suiteHendrik Brucker
2022-12-09Merge pull request #68747 from rune-scape/rune-stringname-unificationRémi Verschelde
GDScript: Unify StringName and String
2022-12-06Merge pull request #67906 from groud/simpler_gdextension_configRémi Verschelde
Remove unnecessary checks when exporting gdextension binaries and allow using a prefix to auto-detect files
2022-12-05Unify String and StringNamerune-scape
2022-12-05Refactor baking code for Curve2DYaohua Xiong
The main change is to caculate tangent directly from bezier curve, without going through discretized polyline, avoiding pitfalls of discretization. A similar refacor had been applied to Curve3D. The test cases for Curve2D is updated, comparing floating point with is_equal_approxmiate() instead of `==`, in order to avoid float precision problem.
2022-12-04Use system fonts as fallback and improve system font handling.bruvzg
Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
2022-12-01Allow specifying a prefix to automatically detect library files for ↵Gilles Roudière
gdextension exports
2022-11-24Merge pull request #68386 from MewPurPur/snappedi-snappedfRémi Verschelde
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped