Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Update `argument_options.tscn` to load `AnimationPlayer` libraries in the most recent format

Synzorasizeea4a213e6c78
diff --git a/modules/gdscript/tests/scripts/completion/argument_options/argument_options.tscn b/modules/gdscript/tests/scripts/completion/argument_options/argument_options.tscn
index 082c87e708f..c60f1ee8aa2 100644
--- a/modules/gdscript/tests/scripts/completion/argument_options/argument_options.tscn
+++ b/modules/gdscript/tests/scripts/completion/argument_options/argument_options.tscn
@@ -1,16 +1,14 @@
-[gd_scene load_steps=1 format=3 uid="uid://dl28pdkxcjvym"]
+[gd_scene format=3 uid="uid://dl28pdkxcjvym"]
[sub_resource type="Animation" id="Animation_d1pub"]
resource_name = "bounce"
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gs7mj"]
_data = {
-"bounce": SubResource("Animation_d1pub")
+&"bounce": SubResource("Animation_d1pub")
}
-[node name="GetNode" type="Node"]
+[node name="GetNode" type="Node" unique_id=876232322]
-[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
-libraries = {
-"": SubResource("AnimationLibrary_gs7mj")
-}
+[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1664998033]
+libraries/ = SubResource("AnimationLibrary_gs7mj")
diff --git a/modules/gdscript/tests/test_completion.h b/modules/gdscript/tests/test_completion.h
index 0576735f2da..f95c8225fbc 100644
--- a/modules/gdscript/tests/test_completion.h
+++ b/modules/gdscript/tests/test_completion.h
@@ -208,7 +208,7 @@ static void test_directory(const String &p_dir) {
}
}
CHECK_MESSAGE(contains_excluded.is_empty(), "Autocompletion suggests illegal option '", contains_excluded, "' for '", path.path_join(next), "'.");
- CHECK(include.is_empty());
+ CHECK_MESSAGE(include.is_empty(), "An autocompletion option is missing for '", path.path_join(next), "'.");
String expected_call_hint = conf.get_value("output", "call_hint", call_hint);
bool expected_forced = conf.get_value("output", "forced", forced);