mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
a9669639ce
The popover property now reflects the attribute. It cannot currently use the Reflect IDL concept because the empty string value is special cased.
20 lines
565 B
Bash
Executable file
20 lines
565 B
Bash
Executable file
#!/bin/bash
|
|
set +e
|
|
|
|
t=$1
|
|
if echo -n $t | grep ^file: ; then
|
|
t=$(echo -n $t | sed s@^file://@@)
|
|
fi
|
|
|
|
if echo -n $t | grep Layout ; then
|
|
mode_flag="-d"
|
|
else
|
|
mode_flag="-T"
|
|
fi
|
|
|
|
input_dir=$(dirname $t)
|
|
expected_dir=$(echo $input_dir | sed s/input/expected/)
|
|
test_name=$(basename $t .html)
|
|
cd $LADYBIRD_SOURCE_DIR/Build/ladybird
|
|
mkdir -p $expected_dir
|
|
./bin/Ladybird.app/Contents/MacOS/headless-browser $mode_flag --layout-test-mode $LADYBIRD_SOURCE_DIR/Tests/LibWeb/$input_dir/$test_name.html > $LADYBIRD_SOURCE_DIR/Tests/LibWeb/$expected_dir/$test_name.txt
|