12 lines
440 B
GDScript
12 lines
440 B
GDScript
# client/tests/unit/test_theme_showcase.gd
|
|
extends "res://addons/gut/test.gd"
|
|
|
|
|
|
func test_showcase_instances_without_error():
|
|
var packed = load("res://scenes/theme/theme_showcase.tscn")
|
|
assert_true(packed is PackedScene)
|
|
var node = packed.instantiate()
|
|
add_child_autofree(node) # runs _ready(); any engine error here fails the suite
|
|
assert_true(node is Control)
|
|
assert_true(node.theme is Theme, "showcase did not apply game_theme")
|