summaryrefslogtreecommitdiff
path: root/tests/scene
AgeCommit message (Collapse)Author
2023-02-01More codespell fixes, do more changes from previous ignore listRémi Verschelde
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-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-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-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-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 #70840 from MewPurPur/get-point-count-instead-of-pointsRémi Verschelde
Rename `get_points_count()` to `get_point_count()` in Gradient
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-26Add unit test for VisualShaderjainl28patel
2022-12-19Fix autocomplete with autobrace completion not adding closing pairPaulb23
2022-12-17Fix autocomplete box placementHayden Leete
2022-12-12[Tests] Get rid of several error messages when running the test suiteHendrik Brucker
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-11-23Fix error while selecting last empty lineAdam Scott
2022-11-17Fix polygon generation in BitMapNinni Pipping
2022-11-06Merge pull request #67976 from alfredbaudisch/select-next-occurrence-better-testRémi Verschelde
Improve TextEdit::add_selection_for_next_occurrence test case
2022-11-05[Tests] Replace Math::is_equal_approx with == and doctest::ApproxHendrik Brucker
2022-11-02Merge pull request #67274 from jbcolli2/Primitive_TestsRémi Verschelde
Unit Tests for all Primitive Meshes.
2022-11-02Style: Misc docs and comment style and language fixesRémi Verschelde
- Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
2022-11-02Merge pull request #66927 from jbcolli2/Path2d-TestsRémi Verschelde
Unit tests for Path2D class
2022-11-01Replace Quaternion Euler constructor with `from_euler` methodAaron Franke
2022-10-31Merge pull request #67800 from jbcolli2/ArrayMesh-UnitTestsRémi Verschelde
Unit Tests for ArrayMesh class for Issue #43440
2022-10-31Merge pull request #67139 from PucklaMotzer09/insert_caret_at_caretsRémi Verschelde
Add Caret Insert Below and Above shortcuts to TextEdit
2022-10-28Improved TextEdit::add_selection_for_next_occurrence test caseAlfred Reinold Baudisch
It covers additional selections of different words, as well manually adding a cursor in between and selecting the next occurrence. The previous test also was outdated in regards of not testing the implicit call to `select_word_under_caret` made by `add_selection_for_next_occurrence` in case there's no selection.
2022-10-24ArrayMesh unit testsjbcolli2
2022-10-21Add Selection and Caret for Next Occurrence of SelectionAlfred Reinold Baudisch
Adds the bind `add_selection_for_next_occurrence` to TextEdit, with CTRL+D as the default shortcut. When the bind is performed, ff a selection is currently active with the last caret in text fields, searches for the next occurrence of the selection, adds a caret and selects the next occurrence. If no selection is currently active with the last caret in text fields, selects the word currently under the caret. The action can be performed sequentially for all occurrences of the selection of the last caret and for all existing carets. The viewport is adjusted to the latest newly added caret. The bind and the behaviour is similar to VS Code's "Add Selection to Next Find Match" and JetBrains' "Add Selection for Next Occurrence". It takes advantage of the multi-caret API. The default shortcut for `select_word_under_caret` has been changed to ALT+G, in order to give priority to CTRL+D for `add_selection_for_next_occurrence` to better align with popular IDEs and editors.
2022-10-18Add Caret Insert Below and Above shortcuts to TextEditPucklaMotzer09
2022-10-16Fix undo redo not adjusting TextEdit viewport to caretPaulb23
2022-10-14PrimitiveMesh unit tests.jbcolli2
2022-10-14Make some Image methods statickobewi
2022-10-12Unit tests for Path2D module.jbcolli2
Co-authored-by: Matthew-Tave <tavematthew@gmail.com>
2022-10-11Fix select word under caret using caret col instead of linePaulb23
2022-10-10Merge pull request #67145 from Paulb23/tab_texteditRémi Verschelde
Fix inserting tabs in TextEdit
2022-10-10Don't allow removing TextEdit's main caretHaoyu Qiu
2022-10-09Handle tab in TextEditPaulb23
2022-10-05Add mutliple Caret support to TextEditPaulb23
2022-09-30Fix typos with codespellRémi Verschelde
Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
2022-09-26Change time parameters and variables to double typeDave Palais
Addresses #65313