mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-06-29 10:45:31 +02:00
added windows pty support
This commit is contained in:
parent
bd26137e78
commit
f3820365c6
23 changed files with 1478 additions and 695 deletions
|
@ -10,6 +10,7 @@ func before_each():
|
|||
|
||||
|
||||
func test_bell() -> void:
|
||||
watch_signals(terminal)
|
||||
terminal.bell_cooldown = 0
|
||||
terminal.write(char(7))
|
||||
terminal.write(char(0x07))
|
||||
|
@ -42,8 +43,8 @@ class TestTheme:
|
|||
|
||||
const TestScene := preload("../scenes/theme.tscn")
|
||||
|
||||
const default_theme := preload("res://addons/godot_xterm/themes/default.tres")
|
||||
const alt_theme := preload("res://addons/godot_xterm/themes/default_light.tres")
|
||||
const default_theme := preload("res://addons/godot_xterm/themes/default_green.tres")
|
||||
const alt_theme := preload("res://addons/godot_xterm/themes/default_white.tres")
|
||||
|
||||
const COLORS := [
|
||||
"ansi_0_color",
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
extends "res://addons/gut/test.gd"
|
||||
|
||||
const EMPTY_VAR = "GODOT_XTERM_TEST_EMPTY_ENV_VAR"
|
||||
const TEST_VAR = "GODOT_XTERM_TEST_ENV_VAR"
|
||||
const TEST_VAL = "TEST123"
|
||||
|
||||
var env: Dictionary
|
||||
|
||||
|
||||
func before_each():
|
||||
OS.set_environment(EMPTY_VAR, "")
|
||||
OS.set_environment(TEST_VAR, TEST_VAL)
|
||||
env = LibuvUtils.get_os_environ()
|
||||
|
||||
|
||||
func test_has_empty_var():
|
||||
assert_has(env, EMPTY_VAR)
|
||||
|
||||
|
||||
func test_empty_var_has_empty_val():
|
||||
assert_eq(env[EMPTY_VAR], "")
|
||||
|
||||
|
||||
func test_has_test_var():
|
||||
assert_has(env, TEST_VAR)
|
||||
|
||||
|
||||
func test_test_var_has_correct_val():
|
||||
assert_eq(env[TEST_VAR], TEST_VAL)
|
Loading…
Add table
Add a link
Reference in a new issue