summaryrefslogtreecommitdiff
path: root/tests/test_main.cpp
AgeCommit message (Collapse)Author
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-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
2022-02-04Core: Move Rect2i to its own `rect2i.h` headerRémi Verschelde
And take the opportunity to improve interdependencies a bit with forward declares where possible.
2022-01-19Improve the default project themeHugo Locurcio
The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-14Add tests for Vector2/Vector2i/Vector3/Vector3iAaron Franke
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-11-07Move and organize tests into subfoldersAaron Franke
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-09-01Add CodeEdit breakpoint unit testsPaulb23
2021-09-01Create framework for testing SignalsPaulb23
2021-09-01Allow unit testing SceneTree OjectsPaulb23
2021-06-11Add Time singletonAaron Franke