Adding log.gd
This commit is contained in:
parent
eb32d6614e
commit
4522259397
547 changed files with 46844 additions and 0 deletions
122
addons/gdUnit4/test/update/GdMarkDownReaderTest.gd
Normal file
122
addons/gdUnit4/test/update/GdMarkDownReaderTest.gd
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
# GdUnit generated TestSuite
|
||||
class_name GdMarkDownReaderTest
|
||||
extends GdUnitTestSuite
|
||||
|
||||
# TestSuite generated from
|
||||
const __source = 'res://addons/gdUnit4/src/update/GdMarkDownReader.gd'
|
||||
const GdUnitUpdateClient = preload("res://addons/gdUnit4/src/update/GdUnitUpdateClient.gd")
|
||||
|
||||
var _reader = preload("res://addons/gdUnit4/src/update/GdMarkDownReader.gd").new()
|
||||
var _client :GdUnitUpdateClient
|
||||
|
||||
|
||||
func before():
|
||||
_client = GdUnitUpdateClient.new()
|
||||
add_child(_client)
|
||||
_reader.set_http_client(_client)
|
||||
|
||||
|
||||
func after():
|
||||
_client.queue_free()
|
||||
|
||||
|
||||
func test_tobbcode() -> void:
|
||||
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/markdown_example.txt")
|
||||
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_example.txt")
|
||||
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
|
||||
|
||||
|
||||
func test_tobbcode_table() -> void:
|
||||
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/markdown_table.txt")
|
||||
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_table.txt")
|
||||
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
|
||||
|
||||
|
||||
func test_tobbcode_html_headers() -> void:
|
||||
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/html_header.txt")
|
||||
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_header.txt")
|
||||
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
|
||||
|
||||
|
||||
func test_tobbcode_md_headers() -> void:
|
||||
var source := resource_as_string("res://addons/gdUnit4/test/update/resources/md_header.txt")
|
||||
var expected := resource_as_string("res://addons/gdUnit4/test/update/resources/bbcode_md_header.txt")
|
||||
assert_str(await _reader.to_bbcode(source)).is_equal(expected)
|
||||
|
||||
|
||||
func test_tobbcode_list() -> void:
|
||||
assert_str(await _reader.to_bbcode("- item")).is_equal("[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] item\n")
|
||||
assert_str(await _reader.to_bbcode(" - item")).is_equal(" [img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] item\n")
|
||||
assert_str(await _reader.to_bbcode(" - item")).is_equal(" [img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] item\n")
|
||||
assert_str(await _reader.to_bbcode(" - item")).is_equal(" [img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] item\n")
|
||||
|
||||
|
||||
func test_to_bbcode_embeded_text() -> void:
|
||||
assert_str(await _reader.to_bbcode("> some text")).is_equal("[img=50x14]res://addons/gdUnit4/src/update/assets/embedded.png[/img][i] some text[/i]\n")
|
||||
|
||||
|
||||
func test_process_image() -> void:
|
||||
#regex("!\\[(.*?)\\]\\((.*?)(( )+(.*?))?\\)")
|
||||
var reg_ex :RegEx = _reader.md_replace_patterns[24][0]
|
||||
|
||||
# without tooltip
|
||||
assert_str(await _reader.process_image(reg_ex, ""))\
|
||||
.is_equal("[img]res://addons/gdUnit4/test/update/resources/icon48.png[/img]")
|
||||
# with tooltip
|
||||
assert_str(await _reader.process_image(reg_ex, ""))\
|
||||
.is_equal("[img]res://addons/gdUnit4/test/update/resources/icon48.png[/img]")
|
||||
# multiy lines
|
||||
var input := """
|
||||

|
||||
|
||||

|
||||
|
||||
""".dedent()
|
||||
var expected := """
|
||||
[img]res://addons/gdUnit4/test/update/resources/icon48.png[/img]
|
||||
|
||||
[img]res://addons/gdUnit4/test/update/resources/icon23.png[/img]
|
||||
|
||||
""".dedent()
|
||||
assert_str(await _reader.process_image(reg_ex, input))\
|
||||
.is_equal(expected)
|
||||
|
||||
|
||||
func test_process_image_by_reference() -> void:
|
||||
#regex("!\\[(.*?)\\]\\((.*?)(( )+(.*?))?\\)")
|
||||
var reg_ex :RegEx = _reader.md_replace_patterns[23][0]
|
||||
var input := """
|
||||
![alt text1][logo-1]
|
||||
|
||||
[logo-1]:https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
|
||||
|
||||
![alt text2][logo-1]
|
||||
|
||||
""".dedent()
|
||||
|
||||
var expected := """
|
||||

|
||||
|
||||
|
||||

|
||||
|
||||
""".replace("\r", "").dedent()
|
||||
|
||||
# without tooltip
|
||||
assert_str(_reader.process_image_references(reg_ex, input))\
|
||||
.is_equal(expected)
|
||||
|
||||
|
||||
func test_process_external_image_save_as_png() -> void:
|
||||
var input := """
|
||||
[img]https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png[/img]
|
||||
[img]https://github.com/MikeSchulze/gdUnit4/assets/347037/3205c9f1-1746-4716-aa6d-e3a1808b761d[/img]
|
||||
""".dedent()
|
||||
|
||||
var output := await _reader._process_external_image_resources(input)
|
||||
assert_str(output).is_equal("""
|
||||
[img]res://addons/gdUnit4/tmp-update/icon48.png[/img]
|
||||
[img]res://addons/gdUnit4/tmp-update/3205c9f1-1746-4716-aa6d-e3a1808b761d.png[/img]
|
||||
""".dedent())
|
||||
assert_file("res://addons/gdUnit4/tmp-update/icon48.png").exists()
|
||||
assert_file("res://addons/gdUnit4/tmp-update/3205c9f1-1746-4716-aa6d-e3a1808b761d.png").exists()
|
||||
114
addons/gdUnit4/test/update/GdUnitPatcherTest.gd
Normal file
114
addons/gdUnit4/test/update/GdUnitPatcherTest.gd
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
# GdUnit generated TestSuite
|
||||
class_name GdUnitPatcherTest
|
||||
extends GdUnitTestSuite
|
||||
|
||||
# TestSuite generated from
|
||||
const __source = 'res://addons/gdUnit4/src/update/GdUnitPatcher.gd'
|
||||
|
||||
const _patches := "res://addons/gdUnit4/test/update/resources/patches/"
|
||||
|
||||
var _patcher :GdUnitPatcher
|
||||
|
||||
|
||||
func before():
|
||||
_patcher = auto_free(GdUnitPatcher.new())
|
||||
|
||||
|
||||
func before_test():
|
||||
Engine.set_meta(GdUnitPatch.PATCH_VERSION, [])
|
||||
_patcher._patches.clear()
|
||||
|
||||
|
||||
func test__collect_patch_versions_no_patches() -> void:
|
||||
# using higher version than patches exists in patch folder
|
||||
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(3,0,0))).is_empty()
|
||||
|
||||
|
||||
func test__collect_patch_versions_current_eq_latest_version() -> void:
|
||||
# using equal version than highst available patch
|
||||
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(1,1,4))).is_empty()
|
||||
|
||||
|
||||
func test__collect_patch_versions_current_lower_latest_version() -> void:
|
||||
# using one version lower than highst available patch
|
||||
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(0,9,9)))\
|
||||
.contains_exactly(["res://addons/gdUnit4/test/update/resources/patches/v1.1.4"])
|
||||
|
||||
# using two versions lower than highst available patch
|
||||
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(0,9,8)))\
|
||||
.contains_exactly([
|
||||
"res://addons/gdUnit4/test/update/resources/patches/v0.9.9",
|
||||
"res://addons/gdUnit4/test/update/resources/patches/v1.1.4"])
|
||||
|
||||
# using three versions lower than highst available patch
|
||||
assert_array(_patcher._collect_patch_versions(_patches, GdUnit4Version.new(0,9,5)))\
|
||||
.contains_exactly([
|
||||
"res://addons/gdUnit4/test/update/resources/patches/v0.9.6",
|
||||
"res://addons/gdUnit4/test/update/resources/patches/v0.9.9",
|
||||
"res://addons/gdUnit4/test/update/resources/patches/v1.1.4"])
|
||||
|
||||
|
||||
func test_scan_patches() -> void:
|
||||
_patcher._scan(_patches, GdUnit4Version.new(0,9,6))
|
||||
assert_dict(_patcher._patches)\
|
||||
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v0.9.9", PackedStringArray(["patch_a.gd", "patch_b.gd"]))\
|
||||
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v1.1.4", PackedStringArray(["patch_a.gd"]))
|
||||
assert_int(_patcher.patch_count()).is_equal(3)
|
||||
|
||||
_patcher._patches.clear()
|
||||
_patcher._scan(_patches, GdUnit4Version.new(0,9,5))
|
||||
assert_dict(_patcher._patches)\
|
||||
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v0.9.6", PackedStringArray(["patch_x.gd"]))\
|
||||
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v0.9.9", PackedStringArray(["patch_a.gd", "patch_b.gd"]))\
|
||||
.contains_key_value("res://addons/gdUnit4/test/update/resources/patches/v1.1.4", PackedStringArray(["patch_a.gd"]))
|
||||
assert_int(_patcher.patch_count()).is_equal(4)
|
||||
|
||||
|
||||
func test_execute_no_patches() -> void:
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
|
||||
_patcher.execute()
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
|
||||
|
||||
func test_execute_v_095() -> void:
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
_patcher._scan(_patches, GdUnit4Version.parse("v0.9.5"))
|
||||
|
||||
_patcher.execute()
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_equal([
|
||||
GdUnit4Version.parse("v0.9.6"),
|
||||
GdUnit4Version.parse("v0.9.9-a"),
|
||||
GdUnit4Version.parse("v0.9.9-b"),
|
||||
GdUnit4Version.parse("v1.1.4"),
|
||||
])
|
||||
|
||||
|
||||
func test_execute_v_096() -> void:
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
_patcher._scan(_patches, GdUnit4Version.parse("v0.9.6"))
|
||||
|
||||
_patcher.execute()
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_equal([
|
||||
GdUnit4Version.parse("v0.9.9-a"),
|
||||
GdUnit4Version.parse("v0.9.9-b"),
|
||||
GdUnit4Version.parse("v1.1.4"),
|
||||
])
|
||||
|
||||
|
||||
func test_execute_v_099() -> void:
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
_patcher._scan(_patches, GdUnit4Version.new(0,9,9))
|
||||
|
||||
_patcher.execute()
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_equal([
|
||||
GdUnit4Version.parse("v1.1.4"),
|
||||
])
|
||||
|
||||
|
||||
func test_execute_v_150() -> void:
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
_patcher._scan(_patches, GdUnit4Version.parse("v1.5.0"))
|
||||
|
||||
_patcher.execute()
|
||||
assert_array(Engine.get_meta(GdUnitPatch.PATCH_VERSION)).is_empty()
|
||||
18
addons/gdUnit4/test/update/GdUnitUpdateTest.gd
Normal file
18
addons/gdUnit4/test/update/GdUnitUpdateTest.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# GdUnit generated TestSuite
|
||||
class_name GdUnitUpdateTest
|
||||
extends GdUnitTestSuite
|
||||
|
||||
# TestSuite generated from
|
||||
const GdUnitUpdate = preload('res://addons/gdUnit4/src/update/GdUnitUpdate.gd')
|
||||
|
||||
|
||||
func after_test():
|
||||
clean_temp_dir()
|
||||
|
||||
|
||||
func test__prepare_update_deletes_old_content() -> void:
|
||||
var _update :GdUnitUpdate = auto_free(GdUnitUpdate.new())
|
||||
|
||||
|
||||
|
||||
|
||||
48
addons/gdUnit4/test/update/bbcodeView.gd
Normal file
48
addons/gdUnit4/test/update/bbcodeView.gd
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
extends Control
|
||||
|
||||
const GdUnitTools := preload("res://addons/gdUnit4/src/core/GdUnitTools.gd")
|
||||
const GdMarkDownReader := preload("res://addons/gdUnit4/src/update/GdMarkDownReader.gd")
|
||||
const GdUnitUpdateClient := preload("res://addons/gdUnit4/src/update/GdUnitUpdateClient.gd")
|
||||
|
||||
@onready var _input :TextEdit = $HSplitContainer/TextEdit
|
||||
@onready var _text :RichTextLabel = $HSplitContainer/RichTextLabel
|
||||
|
||||
@onready var _update_client :GdUnitUpdateClient = $GdUnitUpdateClient
|
||||
|
||||
var _md_reader := GdMarkDownReader.new()
|
||||
|
||||
|
||||
func _ready():
|
||||
_md_reader.set_http_client(_update_client)
|
||||
var source := GdUnitFileAccess.resource_as_string("res://addons/gdUnit4/test/update/resources/markdown_example.txt")
|
||||
_input.text = source
|
||||
await set_bbcode(source)
|
||||
|
||||
|
||||
func set_bbcode(text :String) :
|
||||
var bbcode = await _md_reader.to_bbcode(text)
|
||||
_text.clear()
|
||||
_text.append_text(bbcode)
|
||||
_text.queue_redraw()
|
||||
|
||||
|
||||
func _on_TextEdit_text_changed():
|
||||
await set_bbcode(_input.get_text())
|
||||
|
||||
|
||||
func _on_RichTextLabel_meta_clicked(meta :String):
|
||||
var properties = str_to_var(meta)
|
||||
prints("meta_clicked", properties)
|
||||
if properties.has("url"):
|
||||
OS.shell_open(properties.get("url"))
|
||||
|
||||
|
||||
func _on_RichTextLabel_meta_hover_started(meta :String):
|
||||
var properties = str_to_var(meta)
|
||||
prints("hover_started", properties)
|
||||
if properties.has("tool_tip"):
|
||||
_text.set_tooltip(properties.get("tool_tip"))
|
||||
|
||||
|
||||
func _on_RichTextLabel_meta_hover_ended(_meta :String):
|
||||
_text.set_tooltip("")
|
||||
39
addons/gdUnit4/test/update/bbcodeView.tscn
Normal file
39
addons/gdUnit4/test/update/bbcodeView.tscn
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://c1rwx6anh3u3m"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/gdUnit4/test/update/bbcodeView.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://addons/gdUnit4/src/update/GdUnitUpdateClient.gd" id="6"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
split_offset = 600
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="HSplitContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="HSplitContainer"]
|
||||
use_parent_material = true
|
||||
layout_mode = 2
|
||||
tooltip_text = "test"
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="GdUnitUpdateClient" type="Node" parent="."]
|
||||
script = ExtResource("6")
|
||||
|
||||
[connection signal="text_changed" from="HSplitContainer/TextEdit" to="." method="_on_TextEdit_text_changed"]
|
||||
[connection signal="meta_clicked" from="HSplitContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_clicked"]
|
||||
[connection signal="meta_hover_ended" from="HSplitContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_ended"]
|
||||
[connection signal="meta_hover_started" from="HSplitContainer/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_started"]
|
||||
28
addons/gdUnit4/test/update/resources/bbcode_example.txt
Normal file
28
addons/gdUnit4/test/update/resources/bbcode_example.txt
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
[font_size=28]GdUnit3 v0.9.4 - Release Candidate[/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=24]Improvements[/font_size]
|
||||
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] Added project settings to configure:
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] [b]Verbose Orphans[/b] to enable/disable report detected orphans
|
||||
[img]res://addons/gdUnit4/tmp-update/119266895-e09d1900-bbec-11eb-91e9-45409ba2edb2.png[/img]
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] [b]Server Connection Timeout Minites[/b] to set test server connection timeout in minutes
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] [b]Test Timeout Seconds[/b] to set the default test case timeout in seconds
|
||||
[img]res://addons/gdUnit4/tmp-update/119266875-d1b66680-bbec-11eb-856f-8fac9b0ed31c.png[/img]
|
||||
|
||||
test seperator
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=24]Bugfixes[/font_size]
|
||||
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] GdUnit inspecor:
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Fixed invalid test case state visualisation for detected orphan nodes (#63)
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Fixed a ui bug to auto select the first report failure after a test run
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Fixed invalid visualisation state and error counter (#66)
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] TestSuite:
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] Using asserts on stage after() now reporting
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot1.png[/img] Core:
|
||||
[img=12x12]res://addons/gdUnit4/src/update/assets/dot2.png[/img] The GdUnit network layer was replaced by a new TCP server/client architecture to enable network-related testing (#64 )
|
||||
|
||||
40
addons/gdUnit4/test/update/resources/bbcode_header.txt
Normal file
40
addons/gdUnit4/test/update/resources/bbcode_header.txt
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[font_size=32]Header 1 Text[/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
[font_size=32][center]Header 1 Centered Text[/center][/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=28]Header 2 Text[/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
[font_size=32][center]Header 2 Centered Text[/center][/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=32][center]Header 2 Centered Text
|
||||
Multiline Test
|
||||
Is here[/center][/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=24]Header 3 Text[/font_size]
|
||||
|
||||
[font_size=24][center]Header 3 Centered Text[/center][/font_size]
|
||||
|
||||
|
||||
[font_size=20]Header 4 Text[/font_size]
|
||||
|
||||
[font_size=20][center]Header 4 Centered Text[/center][/font_size]
|
||||
|
||||
|
||||
[font_size=16]Header 5 Text[/font_size]
|
||||
|
||||
[font_size=16][center]Header 5 Centered Text[/center][/font_size]
|
||||
|
||||
|
||||
[font_size=12]Header 6 Text[/font_size]
|
||||
|
||||
[font_size=12][center]Header 6 Centered Text[/center][/font_size]
|
||||
|
||||
|
||||
20
addons/gdUnit4/test/update/resources/bbcode_md_header.txt
Normal file
20
addons/gdUnit4/test/update/resources/bbcode_md_header.txt
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[font_size=32]Header 1 Text[/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=28]Header 2 Text[/font_size]
|
||||
[img=4000x2]res://addons/gdUnit4/src/update/assets/horizontal-line2.png[/img]
|
||||
|
||||
|
||||
[font_size=24]Header 3 Text[/font_size]
|
||||
|
||||
|
||||
[font_size=20]Header 4 Text[/font_size]
|
||||
|
||||
|
||||
[font_size=16]Header 5 Text[/font_size]
|
||||
|
||||
|
||||
[font_size=12]Header 6 Text[/font_size]
|
||||
|
||||
|
||||
9
addons/gdUnit4/test/update/resources/bbcode_table.txt
Normal file
9
addons/gdUnit4/test/update/resources/bbcode_table.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[table=2]
|
||||
[cell][b] type [/b][/cell]|[cell][b] description[/b][/cell]
|
||||
[cell]--------------[/cell]|[cell]--------------------------------------------[/cell]
|
||||
[cell]any_color() [/cell]|[cell] Argument matcher to match any Color value[/cell]
|
||||
[cell]any_vector2() [/cell]|[cell] Argument matcher to match any Vector2 value[/cell]
|
||||
[cell]any_vector3() [/cell]|[cell] Argument matcher to match any Vector3 value[/cell]
|
||||
[cell]any_rect2() [/cell]|[cell] Argument matcher to match any Rect2 value[/cell]
|
||||
[/table]
|
||||
|
||||
21
addons/gdUnit4/test/update/resources/html_header.txt
Normal file
21
addons/gdUnit4/test/update/resources/html_header.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<h1>Header 1 Text</h1>
|
||||
<h1 align="center">Header 1 Centered Text</h1>
|
||||
|
||||
<h2>Header 2 Text</h2>
|
||||
<h2 align="center">Header 2 Centered Text</h2>
|
||||
|
||||
<h2 align="center">Header 2 Centered Text
|
||||
Multiline Test
|
||||
Is here</h2>
|
||||
|
||||
<h3>Header 3 Text</h3>
|
||||
<h3 align="center">Header 3 Centered Text</h3>
|
||||
|
||||
<h4>Header 4 Text</h4>
|
||||
<h4 align="center">Header 4 Centered Text</h4>
|
||||
|
||||
<h5>Header 5 Text</h5>
|
||||
<h5 align="center">Header 5 Centered Text</h5>
|
||||
|
||||
<h6>Header 6 Text</h6>
|
||||
<h6 align="center">Header 6 Centered Text</h6>
|
||||
BIN
addons/gdUnit4/test/update/resources/icon48.png
Normal file
BIN
addons/gdUnit4/test/update/resources/icon48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 916 B |
34
addons/gdUnit4/test/update/resources/icon48.png.import
Normal file
34
addons/gdUnit4/test/update/resources/icon48.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://4d6aqwgnxyla"
|
||||
path="res://.godot/imported/icon48.png-e87a81340792ea4239ce79ba4259a0dd.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/gdUnit4/test/update/resources/icon48.png"
|
||||
dest_files=["res://.godot/imported/icon48.png-e87a81340792ea4239ce79ba4259a0dd.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
168
addons/gdUnit4/test/update/resources/markdown.txt
Normal file
168
addons/gdUnit4/test/update/resources/markdown.txt
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
------ HTML Headers ---
|
||||
[font_size=24]Header 1 Text[/font_size]
|
||||
[font_size=24][center]Header 1Centered Text[/center][/font_size]
|
||||
|
||||
[font_size=20]Header 2 Text[/font_size]
|
||||
[font_size=20][center]Header 2 Centered Text[/center][/font_size]
|
||||
|
||||
[font_size=20][center]Header 2 Centered Text
|
||||
Multiline Test
|
||||
Is here[/center][/font_size]
|
||||
|
||||
---
|
||||
|
||||
------ Markdown -------------
|
||||
|
||||
# Heading 1
|
||||
## Heading 2
|
||||
### Heading 3
|
||||
#### Heading 4
|
||||
##### Heading 5
|
||||
|
||||
|
||||
------ embeded ------
|
||||
>This is an **embedded section**.
|
||||
>The section continues here
|
||||
|
||||
>This is another **embedded section**.
|
||||
>This section also continues in the second like
|
||||
>- aba
|
||||
>This line isn’t embedded any more.
|
||||
>- tets
|
||||
> - aha
|
||||
> - akaka
|
||||
|
||||
|
||||
|
||||
|
||||
------ lists ------
|
||||
* an asterisk starts an unordered list
|
||||
* and this is another item in the list
|
||||
+ or you can also use the + character
|
||||
- or the - character
|
||||
|
||||
To start an ordered list, write this:
|
||||
|
||||
1. this starts a list *with* numbers
|
||||
* this will show as number "2"
|
||||
* this will show as number "3."
|
||||
9. any number, +, -, or * will keep the list going.
|
||||
* just indent by 4 spaces (or tab) to make a sub-list
|
||||
1. keep indenting for more sub lists
|
||||
* here i'm back to the second level
|
||||
|
||||
|
||||
|
||||
- Asserts:
|
||||
- Added new `assert_vector2` to verify Vector2 values (#69 )
|
||||
- Added new `assert_vector3` to verify Vector3 values (#69 )
|
||||
- ahss
|
||||
- kaka
|
||||
- kaka
|
||||
- kaka
|
||||
- lll
|
||||
- kkk
|
||||
|
||||
|
||||
- Fuzzers:
|
||||
- Added `rangev2` to generate random Vector2 values
|
||||
- Added `rangev3` to generate random Vector3 values
|
||||
- one or more fuzzers are now allowed for a test case (#71)
|
||||
- GitHub Action
|
||||
- Added GitHub action to automatic trigger selftest on push events (tests against Godot 3.2.3, 3.3, 3.3.1, 3.3.2) (#74 )
|
||||
|
||||
|
||||
|
||||
------ check lists ------
|
||||
[ ] A
|
||||
[x] B
|
||||
[ ] C
|
||||
|
||||
------ code ------
|
||||
This is `code`.
|
||||
|
||||
``This is all `code`.``
|
||||
|
||||
```javascript
|
||||
var s = "JavaScript syntax highlighting";
|
||||
alert(s);
|
||||
```
|
||||
|
||||
```python
|
||||
s = "Python syntax highlighting"
|
||||
print s
|
||||
```
|
||||
|
||||
```
|
||||
No language indicated, so no syntax highlighting.
|
||||
But let's throw in a <b>tag</b>.
|
||||
```
|
||||
|
||||
------ links ------
|
||||
Here is a [Link](https://example.com/ "Optional link title").
|
||||
|
||||
------ image ------
|
||||
Inline-style:
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
Reference-style:
|
||||
![alt text][logo]
|
||||
|
||||
[logo]:res://addons/gdUnit4/test/update/resources/icon48.png "Logo Title Text 2"
|
||||
|
||||
|
||||
------ Horizontal Rules ------
|
||||
|
||||
---
|
||||
Hyphens
|
||||
***
|
||||
Asterisks
|
||||
___
|
||||
Underscores
|
||||
|
||||
|
||||
|
||||
------ table ------
|
||||
|Column 1|Column 2|
|
||||
|--------|--------|
|
||||
| A | B |
|
||||
| C | D |
|
||||
|
||||
Column 1|Column 2
|
||||
--------|--------
|
||||
A | B
|
||||
C | D
|
||||
|
||||
|
||||
------ foodnodes ------
|
||||
You can easily place footnotes [^2] in the continuous text [^1].
|
||||
[^1]: Here you can find the text for the footnote.
|
||||
[^2]: **Footnotes** themselves can also be *formatted*.
|
||||
And these even include several lines.
|
||||
|
||||
|
||||
------ asterisk ------
|
||||
This *is* an \*example with an asterisk\**.
|
||||
This _is_ an \_example with an asterisk\_.
|
||||
|
||||
------ bold ------
|
||||
<b>test</b>
|
||||
**test**
|
||||
__test__
|
||||
|
||||
------ italic ------
|
||||
<i>test</i>
|
||||
*test*
|
||||
_test_
|
||||
|
||||
------ italic + bold ------
|
||||
***Italic and Bold Text***
|
||||
___Italic and Bold Text___
|
||||
|
||||
------ stroke ------
|
||||
<s>test</s>
|
||||
~test~
|
||||
~~test~~
|
||||
22
addons/gdUnit4/test/update/resources/markdown_example.txt
Normal file
22
addons/gdUnit4/test/update/resources/markdown_example.txt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
## GdUnit3 v0.9.4 - Release Candidate
|
||||
|
||||
### Improvements
|
||||
- Added project settings to configure:
|
||||
- <b>Verbose Orphans</b> to enable/disable report detected orphans
|
||||

|
||||
- <b>Server Connection Timeout Minites</b> to set test server connection timeout in minutes
|
||||
- <b>Test Timeout Seconds</b> to set the default test case timeout in seconds
|
||||

|
||||
|
||||
test seperator
|
||||
---
|
||||
|
||||
### Bugfixes
|
||||
- GdUnit inspecor:
|
||||
- Fixed invalid test case state visualisation for detected orphan nodes (#63)
|
||||
- Fixed a ui bug to auto select the first report failure after a test run
|
||||
- Fixed invalid visualisation state and error counter (#66)
|
||||
- TestSuite:
|
||||
- Using asserts on stage after() now reporting
|
||||
- Core:
|
||||
- The GdUnit network layer was replaced by a new TCP server/client architecture to enable network-related testing (#64 )
|
||||
6
addons/gdUnit4/test/update/resources/markdown_table.txt
Normal file
6
addons/gdUnit4/test/update/resources/markdown_table.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
type | description
|
||||
-- | --
|
||||
any_color() | Argument matcher to match any Color value
|
||||
any_vector2() | Argument matcher to match any Vector2 value
|
||||
any_vector3() | Argument matcher to match any Vector3 value
|
||||
any_rect2() | Argument matcher to match any Rect2 value
|
||||
11
addons/gdUnit4/test/update/resources/md_header.txt
Normal file
11
addons/gdUnit4/test/update/resources/md_header.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Header 1 Text
|
||||
|
||||
## Header 2 Text
|
||||
|
||||
### Header 3 Text
|
||||
|
||||
#### Header 4 Text
|
||||
|
||||
##### Header 5 Text
|
||||
|
||||
###### Header 6 Text
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
extends GdUnitPatch
|
||||
|
||||
func _init():
|
||||
super(GdUnit4Version.parse("v0.9.5"))
|
||||
|
||||
func execute() -> bool:
|
||||
var patches := Array()
|
||||
if Engine.has_meta(PATCH_VERSION):
|
||||
patches = Engine.get_meta(PATCH_VERSION)
|
||||
patches.append(version())
|
||||
Engine.set_meta(PATCH_VERSION, patches)
|
||||
return true
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
extends GdUnitPatch
|
||||
|
||||
func _init():
|
||||
super(GdUnit4Version.parse("v0.9.6"))
|
||||
|
||||
func execute() -> bool:
|
||||
var patches := Array()
|
||||
if Engine.has_meta(PATCH_VERSION):
|
||||
patches = Engine.get_meta(PATCH_VERSION)
|
||||
patches.append(version())
|
||||
Engine.set_meta(PATCH_VERSION, patches)
|
||||
return true
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
extends GdUnitPatch
|
||||
|
||||
func _init():
|
||||
super(GdUnit4Version.parse("v0.9.9-a"))
|
||||
|
||||
func execute() -> bool:
|
||||
var patches := Array()
|
||||
if Engine.has_meta(PATCH_VERSION):
|
||||
patches = Engine.get_meta(PATCH_VERSION)
|
||||
patches.append(version())
|
||||
Engine.set_meta(PATCH_VERSION, patches)
|
||||
return true
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
extends GdUnitPatch
|
||||
|
||||
func _init():
|
||||
super(GdUnit4Version.parse("v0.9.9-b"))
|
||||
|
||||
func execute() -> bool:
|
||||
var patches := Array()
|
||||
if Engine.has_meta(PATCH_VERSION):
|
||||
patches = Engine.get_meta(PATCH_VERSION)
|
||||
patches.append(version())
|
||||
Engine.set_meta(PATCH_VERSION, patches)
|
||||
return true
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
extends GdUnitPatch
|
||||
|
||||
func _init():
|
||||
super(GdUnit4Version.parse("v1.1.4"))
|
||||
|
||||
func execute() -> bool:
|
||||
var patches := Array()
|
||||
if Engine.has_meta(PATCH_VERSION):
|
||||
patches = Engine.get_meta(PATCH_VERSION)
|
||||
patches.append(version())
|
||||
Engine.set_meta(PATCH_VERSION, patches)
|
||||
return true
|
||||
BIN
addons/gdUnit4/test/update/resources/update.zip
Normal file
BIN
addons/gdUnit4/test/update/resources/update.zip
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue