summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/export_variable.gd
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-15 19:09:34 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-15 19:57:39 +0200
commitc6ca09dc6f0fdf693c2a4445e556861691a81152 (patch)
tree486146583022e3bf72af033e21f13d6311856fd9 /modules/gdscript/tests/scripts/parser/features/export_variable.gd
parent520462e98c15ef583f24ea39fb874a388d377b1c (diff)
downloadredot-engine-c6ca09dc6f0fdf693c2a4445e556861691a81152.tar.gz
Add more integration tests to the GDScript test suite
This also fixes a typo in the `bitwise_float_right_operand.gd` test.
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/export_variable.gd')
-rw-r--r--modules/gdscript/tests/scripts/parser/features/export_variable.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/export_variable.gd b/modules/gdscript/tests/scripts/parser/features/export_variable.gd
index 51e7d4a8ed..1e072728fc 100644
--- a/modules/gdscript/tests/scripts/parser/features/export_variable.gd
+++ b/modules/gdscript/tests/scripts/parser/features/export_variable.gd
@@ -3,9 +3,16 @@
@export_range(0, 100, 1) var example_range_step = 101
@export_range(0, 100, 1, "or_greater") var example_range_step_or_greater = 102
+@export var color: Color
+@export_color_no_alpha var color_no_alpha: Color
+@export_node_path(Sprite2D, Sprite3D, Control, Node) var nodepath := ^"hello"
+
func test():
print(example)
print(example_range)
print(example_range_step)
print(example_range_step_or_greater)
+ print(color)
+ print(color_no_alpha)
+ print(nodepath)