about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-27 17:17:48 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-27 17:17:48 +0200
commitd8679af92bf88896a033238a1b0bea0648632b4c (patch)
tree90679172a6138b2081a9d6e6f62fe2d2670604fb /test
parentdfc0b6c73f263876c10e56aee18e8ecabd1465c3 (diff)
downloadchawan-d8679af92bf88896a033238a1b0bea0648632b4c.tar.gz
layout: fix float size in table cells; remove redundant positioning
Diffstat (limited to 'test')
-rwxr-xr-xtest/js/run_js_tests.sh2
-rw-r--r--test/layout/float-height-in-table.expected3
-rw-r--r--test/layout/float-height-in-table.html8
-rwxr-xr-xtest/layout/run_layout_tests.sh2
4 files changed, 13 insertions, 2 deletions
diff --git a/test/js/run_js_tests.sh b/test/js/run_js_tests.sh
index a8cad435..8e1adeb3 100755
--- a/test/js/run_js_tests.sh
+++ b/test/js/run_js_tests.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 if ! test "$CHA_TEST_BIN"
-then	test -f ../../../cha && CHA_TEST_BIN=../../../cha || CHA_TEST_BIN=cha
+then	test -f ../../cha && CHA_TEST_BIN=../../cha || CHA_TEST_BIN=cha
 fi
 failed=0
 for h in *.html
diff --git a/test/layout/float-height-in-table.expected b/test/layout/float-height-in-table.expected
new file mode 100644
index 00000000..de4d7b4d
--- /dev/null
+++ b/test/layout/float-height-in-table.expected
@@ -0,0 +1,3 @@
+                                                  first first first first first
+ second second second second second second second second second second second
+ second second second second second second second second second
diff --git a/test/layout/float-height-in-table.html b/test/layout/float-height-in-table.html
new file mode 100644
index 00000000..15d68abb
--- /dev/null
+++ b/test/layout/float-height-in-table.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<table>
+<tr>
+<td><div style="float: right">first first first first first</div>
+</td>
+</tr>
+<tr>
+<td>second second second second second second second second second second second second second second second second second second second second
diff --git a/test/layout/run_layout_tests.sh b/test/layout/run_layout_tests.sh
index 03c9c818..6a6c7e4f 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
+then	test -f ../../cha && CHA_TEST_BIN=../../cha || CHA_TEST_BIN=cha
 fi
 failed=0
 for h in *.html