summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdscript/tests/scripts')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.gd5
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.out2
-rw-r--r--modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate_class.notest.gd1
-rw-r--r--modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd6
-rw-r--r--modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out1
-rw-r--r--modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd1
-rw-r--r--modules/gdscript/tests/scripts/parser/features/super_class_check.gd13
-rw-r--r--modules/gdscript/tests/scripts/parser/features/super_class_check.out1
-rw-r--r--modules/gdscript/tests/scripts/runtime/features/static_duplicate.gd19
-rw-r--r--modules/gdscript/tests/scripts/runtime/features/static_duplicate.out9
-rw-r--r--modules/gdscript/tests/scripts/runtime/features/static_duplicate_preload.notest.gd5
11 files changed, 0 insertions, 63 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.gd b/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.gd
deleted file mode 100644
index 966d2b0aa2..0000000000
--- a/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-const TestClass = preload("gdscript_duplicate_class.notest.gd")
-
-func test():
- # (TestClass as GDScript).duplicate() exists
- TestClass.duplicate()
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.out b/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.out
deleted file mode 100644
index b2c7fec86e..0000000000
--- a/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate.out
+++ /dev/null
@@ -1,2 +0,0 @@
-GDTEST_ANALYZER_ERROR
-Cannot call non-static function "duplicate()" on a class directly. Make an instance instead.
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate_class.notest.gd b/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate_class.notest.gd
deleted file mode 100644
index 61510e14cd..0000000000
--- a/modules/gdscript/tests/scripts/analyzer/errors/gdscript_duplicate_class.notest.gd
+++ /dev/null
@@ -1 +0,0 @@
-extends Node
diff --git a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd b/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd
deleted file mode 100644
index 030daf502c..0000000000
--- a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd
+++ /dev/null
@@ -1,6 +0,0 @@
-const TestClass = preload("gdscript_duplicate_class.notest.gd")
-
-func test():
- # TestClass.duplicate() fails
- @warning_ignore("return_value_discarded")
- (TestClass as GDScript).duplicate()
diff --git a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out b/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out
deleted file mode 100644
index d73c5eb7cd..0000000000
--- a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out
+++ /dev/null
@@ -1 +0,0 @@
-GDTEST_OK
diff --git a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd b/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd
deleted file mode 100644
index 61510e14cd..0000000000
--- a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd
+++ /dev/null
@@ -1 +0,0 @@
-extends Node
diff --git a/modules/gdscript/tests/scripts/parser/features/super_class_check.gd b/modules/gdscript/tests/scripts/parser/features/super_class_check.gd
deleted file mode 100644
index edfc45a8d8..0000000000
--- a/modules/gdscript/tests/scripts/parser/features/super_class_check.gd
+++ /dev/null
@@ -1,13 +0,0 @@
-# https://github.com/godotengine/godot/issues/71994
-
-func test():
- pass
-
-class A extends RefCounted:
- pass
-
-class B extends A:
- # Parsing `duplicate()` here would throw this error:
- # Parse Error: The function signature doesn't match the parent. Parent signature is "duplicate(bool = default) -> Resource".
- func duplicate():
- pass
diff --git a/modules/gdscript/tests/scripts/parser/features/super_class_check.out b/modules/gdscript/tests/scripts/parser/features/super_class_check.out
deleted file mode 100644
index d73c5eb7cd..0000000000
--- a/modules/gdscript/tests/scripts/parser/features/super_class_check.out
+++ /dev/null
@@ -1 +0,0 @@
-GDTEST_OK
diff --git a/modules/gdscript/tests/scripts/runtime/features/static_duplicate.gd b/modules/gdscript/tests/scripts/runtime/features/static_duplicate.gd
deleted file mode 100644
index 418501dcc5..0000000000
--- a/modules/gdscript/tests/scripts/runtime/features/static_duplicate.gd
+++ /dev/null
@@ -1,19 +0,0 @@
-const PreloadClass = preload("static_duplicate_preload.notest.gd")
-const PreloadClassAlias = PreloadClass
-
-func test():
- var dup_preload_one = PreloadClass.duplicate()
- print(dup_preload_one == Vector2.ONE)
-
- var dup_preload_two = (PreloadClass as GDScript).duplicate()
- print(dup_preload_two is GDScript)
-
- var dup_preload_alias_one = PreloadClassAlias.duplicate()
- print(dup_preload_alias_one == Vector2.ONE)
-
- var dup_preload_alias_two = (PreloadClassAlias as GDScript).duplicate()
- print(dup_preload_alias_two is GDScript)
-
- var PreloadClassAsGDScript = PreloadClass as GDScript
- var dup_preload_class_as_gdscript_one = PreloadClassAsGDScript.duplicate()
- print(dup_preload_class_as_gdscript_one is GDScript)
diff --git a/modules/gdscript/tests/scripts/runtime/features/static_duplicate.out b/modules/gdscript/tests/scripts/runtime/features/static_duplicate.out
deleted file mode 100644
index 34cd5c7652..0000000000
--- a/modules/gdscript/tests/scripts/runtime/features/static_duplicate.out
+++ /dev/null
@@ -1,9 +0,0 @@
-GDTEST_OK
-preload duplicate
-true
-true
-preload duplicate
-true
-true
-preload duplicate
-false
diff --git a/modules/gdscript/tests/scripts/runtime/features/static_duplicate_preload.notest.gd b/modules/gdscript/tests/scripts/runtime/features/static_duplicate_preload.notest.gd
deleted file mode 100644
index 291ffc2c0b..0000000000
--- a/modules/gdscript/tests/scripts/runtime/features/static_duplicate_preload.notest.gd
+++ /dev/null
@@ -1,5 +0,0 @@
-extends RefCounted
-
-static func duplicate() -> Vector2:
- print("preload duplicate")
- return Vector2.ONE