mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Merge pull request #92688 from HolonProduction/autocompletion-batch-2
Add more autocompletion tests
This commit is contained in:
commit
5ac2631af7
@ -0,0 +1,21 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: self.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1"},
|
||||
{"display": "test_func_2"},
|
||||
]
|
@ -0,0 +1,16 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init():
|
||||
t➡
|
21
modules/gdscript/tests/scripts/completion/common/self.cfg
Normal file
21
modules/gdscript/tests/scripts/completion/common/self.cfg
Normal file
@ -0,0 +1,21 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: self.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1"},
|
||||
{"display": "test_func_2"},
|
||||
]
|
16
modules/gdscript/tests/scripts/completion/common/self.gd
Normal file
16
modules/gdscript/tests/scripts/completion/common/self.gd
Normal file
@ -0,0 +1,16 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init():
|
||||
self.➡
|
@ -0,0 +1,6 @@
|
||||
[output]
|
||||
exclude=[
|
||||
{"display": "Test Category"},
|
||||
{"display": "Test Group"},
|
||||
{"display": "Test Subgroup"},
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
extends CPUParticles2D
|
||||
|
||||
@export_category("Test Category")
|
||||
@export_group("Test Group")
|
||||
@export_subgroup("Test Subgroup")
|
||||
|
||||
func _init():
|
||||
➡
|
@ -0,0 +1,4 @@
|
||||
[output]
|
||||
exclude=[
|
||||
{"display": "messages"},
|
||||
]
|
@ -0,0 +1,3 @@
|
||||
func test():
|
||||
var trans = Translation.new()
|
||||
trans.➡
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test := A.new()
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test = A.new()
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test: A
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test: Node = A.new()
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test: A = Node.new()
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
var test := A.new()
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
var test = A.new()
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
var test: A
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,13 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
var test: Node = A.new()
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
pass
|
@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
var test: A = Node.new()
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
pass
|
Loading…
Reference in New Issue
Block a user