From 3578dc7334bb950092476d18da6b6f9952f4a07e Mon Sep 17 00:00:00 2001 From: Face <69168154+face-hh@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:55:23 +0300 Subject: [PATCH] move tests to dedicated folder --- dns/frontend/index.html | 105 ++ dns/frontend/style.css | 0 flumi/Scripts/Constants.gd | 2877 +------------------------------ tests/add-remove-child.html | 55 + tests/attribute.html | 184 ++ tests/audio.html | 133 ++ tests/center-and-button.html | 120 ++ tests/clipboard.html | 38 + tests/css-selector.html | 76 + tests/dashboard.html | 74 + tests/dom-utils.html | 70 + tests/index.html | 289 ++++ tests/input-events.html | 273 +++ tests/interval-and-network.html | 167 ++ tests/lua-api.html | 148 ++ tests/network-and-json.html | 231 +++ tests/object-fit.html | 72 + tests/signal.html | 195 +++ tests/transform.html | 132 ++ tests/tween.html | 264 +++ tests/websocket.html | 211 +++ 21 files changed, 2838 insertions(+), 2876 deletions(-) create mode 100644 dns/frontend/index.html create mode 100644 dns/frontend/style.css create mode 100644 tests/add-remove-child.html create mode 100644 tests/attribute.html create mode 100644 tests/audio.html create mode 100644 tests/center-and-button.html create mode 100644 tests/clipboard.html create mode 100644 tests/css-selector.html create mode 100644 tests/dashboard.html create mode 100644 tests/dom-utils.html create mode 100644 tests/index.html create mode 100644 tests/input-events.html create mode 100644 tests/interval-and-network.html create mode 100644 tests/lua-api.html create mode 100644 tests/network-and-json.html create mode 100644 tests/object-fit.html create mode 100644 tests/signal.html create mode 100644 tests/transform.html create mode 100644 tests/tween.html create mode 100644 tests/websocket.html diff --git a/dns/frontend/index.html b/dns/frontend/index.html new file mode 100644 index 0000000..812d7f8 --- /dev/null +++ b/dns/frontend/index.html @@ -0,0 +1,105 @@ +
+Don't have an account? Register here
+ + +1,240
-$9,842
-3,590
-Name: Jane Doe
-Email: jane@example.com
-Status: Active
-Plan: Pro
-Projects: 8
-Tasks: 42
-This paragraph should be red and bold (h1 + p)
-This paragraph should be blue (h1 ~ p)
- -This paragraph should be purple and bold (div p and .outer-div > p)
-This paragraph should be purple but not bold (div p only)
-Regular paragraph in container
-Keep track of your to-do list
- - -This page demonstrates the GURT Lua API in action.
- -Click the button
- -Move your mouse
- -Move mouse over Button
- -Type something
- -Use the buttons below to add or remove items from the list:
- - -Note: This demo showcases the Lua Tween API for smooth animations. Each box demonstrates different animation properties and easing functions.
-Test
- -""".to_utf8_buffer() - -var HTML_CONTENTc = """ -Waiting for events... --
Signal API Usage Example:
-local mySignal = Signal.new()
mySignal:connect(function(arg1, arg2) print("Event fired with: ", arg1, arg2) end)
mySignal:fire("Hello", 123)
connection:disconnect()
Loading status...-
Initializing...-
โ Target button is currently ENABLED. Click it to see the counter increase!
-Button clicked 0 times!
-Loading status...-
setAttribute('disabled', '') to remove the disabled attributesetAttribute('disabled', 'true') to add the disabled attributegetAttribute('disabled') to check current state, then toggles itgetAttribute() to read multiple attributes and displays themlocal socket = WebSocket:new(url)
socket:on('open', function() ... end)
socket:on('message', function(event) print(event.data) end)
socket:send('Hello Server!')
socket:close()
Initializing...-
Network: fetch(url, {method: "POST", headers: {...}, body: "..."})
JSON: JSON.stringify(data) and JSON.parse(jsonString)
Initializing...-
Intervals: gurt.setInterval(callback, delay) and gurt.clearInterval(id)
Network Images: fetch() with binary data and dynamic <img> creation
Click "Load Random Image" to test binary data fetching
-Initializing...-
object-none: Godot's STRETCH_KEEP - Image keeps original dimensions
-object-fill: Godot's STRETCH_SCALE - Image stretches to fill container
-object-contain: Godot's STRETCH_KEEP_ASPECT - Image fits inside with preserved aspect ratio
-object-cover: Godot's STRETCH_KEEP_ASPECT_COVERED - Image covers container with preserved aspect ratio
-Scale utilities: scale-{value}, scale-x-{value}, scale-y-{value}
-Named values: 0, 50, 75, 90, 95, 100, 105, 110, 125, 150, 200
-Custom values: scale-[{number}] where number is percentage (100 = 1.0)
-Rotation utilities: rotate-{degrees}, rotate-x-{degrees}, rotate-y-{degrees}
-Named degrees: 0, 1, 2, 3, 6, 12, 45, 90, 180, 270
-Custom rotations: rotate-[{value}deg], rotate-[{value}rad], rotate-[{value}turn]
-Don't have an account? Register here
- - -Use the buttons below to add or remove items from the list:
+ + +โ Target button is currently ENABLED. Click it to see the counter increase!
+Button clicked 0 times!
+Loading status...+
setAttribute('disabled', '') to remove the disabled attributesetAttribute('disabled', 'true') to add the disabled attributegetAttribute('disabled') to check current state, then toggles itgetAttribute() to read multiple attributes and displays themKeep track of your to-do list
+ + +This paragraph should be red and bold (h1 + p)
+This paragraph should be blue (h1 ~ p)
+ +This paragraph should be purple and bold (div p and .outer-div > p)
+This paragraph should be purple but not bold (div p only)
+Regular paragraph in container
+1,240
+$9,842
+3,590
+Name: Jane Doe
+Email: jane@example.com
+Status: Active
+Plan: Pro
+Projects: 8
+Tasks: 42
+Test
+ \ No newline at end of file diff --git a/tests/index.html b/tests/index.html new file mode 100644 index 0000000..305ab3a --- /dev/null +++ b/tests/index.html @@ -0,0 +1,289 @@ + +Waiting for events... ++
Intervals: gurt.setInterval(callback, delay) and gurt.clearInterval(id)
Network Images: fetch() with binary data and dynamic <img> creation
Click "Load Random Image" to test binary data fetching
+Initializing...+
This page demonstrates the GURT Lua API in action.
+ +Click the button
+ +Move your mouse
+ +Move mouse over Button
+ +Type something
+ +Network: fetch(url, {method: "POST", headers: {...}, body: "..."})
JSON: JSON.stringify(data) and JSON.parse(jsonString)
Initializing...+
object-none: Godot's STRETCH_KEEP - Image keeps original dimensions
+object-fill: Godot's STRETCH_SCALE - Image stretches to fill container
+object-contain: Godot's STRETCH_KEEP_ASPECT - Image fits inside with preserved aspect ratio
+object-cover: Godot's STRETCH_KEEP_ASPECT_COVERED - Image covers container with preserved aspect ratio
+Signal API Usage Example:
+local mySignal = Signal.new()
mySignal:connect(function(arg1, arg2) print("Event fired with: ", arg1, arg2) end)
mySignal:fire("Hello", 123)
connection:disconnect()
Loading status...+
Initializing...+
Scale utilities: scale-{value}, scale-x-{value}, scale-y-{value}
+Named values: 0, 50, 75, 90, 95, 100, 105, 110, 125, 150, 200
+Custom values: scale-[{number}] where number is percentage (100 = 1.0)
+Rotation utilities: rotate-{degrees}, rotate-x-{degrees}, rotate-y-{degrees}
+Named degrees: 0, 1, 2, 3, 6, 12, 45, 90, 180, 270
+Custom rotations: rotate-[{value}deg], rotate-[{value}rad], rotate-[{value}turn]
+Note: This demo showcases the Lua Tween API for smooth animations. Each box demonstrates different animation properties and easing functions.
+local socket = WebSocket:new(url)
socket:on('open', function() ... end)
socket:on('message', function(event) print(event.data) end)
socket:send('Hello Server!')
socket:close()
Initializing...+