Generate RTL version of tests
Summary: Generate RTL versions of css-layout tests Reviewed By: lucasr Differential Revision: D3863081 fbshipit-source-id: df4debb3c1e371425d7c297f8d013b8042ad1e0e
This commit is contained in:
committed by
Facebook Github Bot 0
parent
8fcb265830
commit
21a05417cd
@@ -1,5 +1,15 @@
|
||||
rm $(dirname $0)/test.html
|
||||
$EDITOR $(dirname $0)/test.html
|
||||
export TEST=$(cat test.html)
|
||||
printf "$(cat $(dirname $0)/test-template.html)" "$(cat $(dirname $0)/test.html)" > $(dirname $0)/test.html
|
||||
|
||||
GENERIC_TEST="$(cat $(dirname $0)/test.html)"
|
||||
LTR_TEST="$(cat $(dirname $0)/test.html)"
|
||||
RTL_TEST="$(cat $(dirname $0)/test.html)"
|
||||
|
||||
LTR_TEST=${LTR_TEST//start/left}
|
||||
LTR_TEST=${LTR_TEST//end/right}
|
||||
|
||||
RTL_TEST=${RTL_TEST//start/right}
|
||||
RTL_TEST=${RTL_TEST//end/left}
|
||||
|
||||
printf "$(cat $(dirname $0)/test-template.html)" "$LTR_TEST" "$RTL_TEST" "$GENERIC_TEST" > $(dirname $0)/test.html
|
||||
open $(dirname $0)/test.html
|
||||
|
Reference in New Issue
Block a user