forked from facebook/yoga
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Generate RTL versions of css-layout tests Reviewed By: lucasr Differential Revision: D3863081 fbshipit-source-id: df4debb3c1e371425d7c297f8d013b8042ad1e0e
- Loading branch information
Emil Sjolander
authored and
Facebook Github Bot 0
committed
Sep 14, 2016
1 parent
8fcb265
commit 21a0541
Showing
15 changed files
with
1,229 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.