summaryrefslogtreecommitdiff
path: root/tests/test_main.cpp
AgeCommit message (Collapse)Author
2023-01-07Add support for the custom initial screen for the main window, fix primary ↵bruvzg
screen detection.
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-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
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-11-08Remove duplicate project settings definitionskobewi
2022-11-04Add a test suite for `Math::` namespace functionsHendrik Brucker
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-11-02Merge pull request #67274 from jbcolli2/Primitive_TestsRémi Verschelde
Unit Tests for all Primitive Meshes.
2022-11-02Merge pull request #66927 from jbcolli2/Path2d-TestsRémi Verschelde
Unit tests for Path2D class
2022-10-31Merge pull request #67800 from jbcolli2/ArrayMesh-UnitTestsRémi Verschelde
Unit Tests for ArrayMesh class for Issue #43440
2022-10-24ArrayMesh unit testsjbcolli2
2022-10-24Make window creation with custom position do not flashWei Guo
2022-10-14PrimitiveMesh unit tests.jbcolli2
2022-10-12Unit tests for Path2D module.jbcolli2
Co-authored-by: Matthew-Tave <tavematthew@gmail.com>
2022-09-07Expose registration of physics servers to GDExtensionRicardo Buring
This exposes PhysicsServer2DManager and PhysicsServer3DManager.
2022-09-02Merge pull request #64952 from Chaosus/vs_rename_uniform_to_paramRémi Verschelde
2022-09-01Refactor BitMap and add testsHendrik Brucker
Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
2022-09-01Rename `uniform` to `parameter` across the engineYuri Rubinsky
2022-08-26Add ThemeDB, expose previously static Theme methodsYuri Sizov
2022-08-07Vector4/Vector4i: Add missing methods, tests and fix change of sign operatorHendrik Brucker
2022-08-04Add unit tests for all public methods in the SpriteFrames classjtorre39
2022-08-04Merge pull request #50907 from codepatzer/quaternion_utRémi Verschelde
2022-08-04Merge pull request #60736 from StrawbDev/audio-stream-sample-unit-testRémi Verschelde
2022-08-04Add tests file for Quaternion unit tests, with initial UTscodepatzer
- 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.
2022-08-04Add test cases for AudioStreamWAVStrawbDev
2022-08-04Add Unit Tests for InputEventKeyTimon Bestebreur
2022-08-04Merge pull request #54325 from skimmedsquare/test-add-ridRémi Verschelde
2022-08-04Add unit tests for ShortcutTimon Bestebreur
Next to that, add entry for the test file in test_main.cpp. These test cases test the basic functionality of the shortcut module.
2022-08-04Add unit tests for RID class.Sean Kim
2022-08-02Fix consistency of translated/scaled/rotated in Transform2D and Transform3DFabian Keller
2022-08-01Add support for command-line user arguments.Juan Linietsky
Implements the standard Unix double dash (--) commandline argument: * Arguments after a double dash (--) are ignored by Godot and stored for the user. * User can access them via `OS.get_cmdline_user_args()` Example: `godot.exe scene_to_run.tscn --fullscreen -- --start-level 2`
2022-07-29Add a test suite for OSHugo Locurcio
2022-07-28Rename RenderingServer global shader uniform methods to be more explicitHugo Locurcio
The `global_shader_uniform` name is longer, but it makes it much easier to find the methods when searching in the class reference.
2022-07-22Implement a Worker ThreadPoolreduz
This PR implements a worked thread pool. It uses a fixed amount of threads in a pool and allows scheduling tasks that can be run on threads (and then waited for). It satisfies the following use cases: * HTML5 thread count is fixed (and similar restrictions are known in consoles) so we need to reuse threads. * Thread spawning is slow in general, so reusing threads is faster anyway. * This implementation supports recursive waiting for tasks, making it less prone to deadlocks if threads from the pool also run tasks. After this is approved and merged, subsequent PRs will be needed to replace the ThreadWorkPool usage by this class.
2022-07-05Implemented tests for Plane getters and setters.cabinboy1031
Added tests for intersection and plane-point methods.
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-05-02Merge pull request #60529 from timothyqiu/theme-validationRémi Verschelde
2022-04-26Rename variable names for some singletonsAaron Franke
2022-04-26Merge pull request #60513 from Calinou/default-font-add-msdf-mipmapRémi Verschelde
Add MSDF and mipmap generation project settings for the default font
2022-04-26Validate theme type/item namesHaoyu Qiu
2022-04-25Add MSDF and mipmap generation project settings for the default fontHugo Locurcio
This can be used to improve Label3D and scaled Control appearance in prototypes.
2022-04-22Add inital TextEdit UnitTestsPaulb23
2022-04-22Use Input::push_input for tests plus extra mouse testingPaulb23
2022-04-07Remove unused legacy testsRémi Verschelde
They haven't been updated for years and still use the old MainLoop basic framework instead of the new doctest one. They're of dubious quality and best redone from scratch using the new framework.
2022-02-12Add sub-pixel glyph positioning support.bruvzg
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-06Add a unit test suite for AnimationHugo Locurcio