From 4bf895db711f3d4d229d3f18fbb2145cce2a73af Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 15 Aug 2024 19:11:49 +0200 Subject: xhr: more progress * add responseText, response * add net tests -> currently sync XHR only; should find a way to do async tests... * update monoucha -> simplified & updated some related code that no longer worked properly --- test/layout/run_layout_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/layout') diff --git a/test/layout/run_layout_tests.sh b/test/layout/run_layout_tests.sh index 20b85ce1..429d2ba1 100755 --- a/test/layout/run_layout_tests.sh +++ b/test/layout/run_layout_tests.sh @@ -1,6 +1,6 @@ #!/bin/sh -if test -z "$CHA_TEST_BIN" -then test -f ../../cha && CHA_TEST_BIN=../../cha || CHA_TEST_BIN=cha +if test -z "$CHA" +then test -f ../../cha && CHA=../../cha || CHA=cha fi failed=0 for h in *.html @@ -8,12 +8,12 @@ do printf '%s\r' "$h" expected="$(basename "$h" .html).expected" color_expected="$(basename "$h" .html).color.expected" if test -f "$expected" - then if ! "$CHA_TEST_BIN" -C config.toml "$h" | diff "$expected" - + then if ! "$CHA" -C config.toml "$h" | diff "$expected" - then failed=$(($failed+1)) printf 'FAIL: %s\n' "$h" fi elif test -f "$color_expected" - then if ! "$CHA_TEST_BIN" -C config.color.toml "$h" | diff "$color_expected" - + then if ! "$CHA" -C config.color.toml "$h" | diff "$color_expected" - then failed=$(($failed+1)) printf 'FAIL: %s\n' "$h" fi -- cgit