Logo
Explore Help
Sign In
DaddyFrosty/yoga
1
0
Fork 0
You've already forked yoga
Code Issues 96 Pull Requests 31 Actions Packages Projects Releases 33 Wiki Activity
Files
a43b813517779557fe2edb01ecd1595cc9db4cc9
yoga/gentest/gentest.sh

6 lines
225 B
Bash
Raw Normal View History

Add test generation scripts Summary: Add first version of test generation script. Currently works for most layouts and styles. Probably has a bunch of broken edge-case. Usage: $ gentest/gentest.sh <Enter HTML with inline styles> e.g. <div style="width: 100px; height: 100px;"></div> Open chrome dev tools console tab. Copy code from console into file and save. Run buck test //:CSSLayout Differential Revision: D3697812 fbshipit-source-id: e6809f95bf6782e7e2cc47b9cdd3a25a13163c5c
2016-08-11 11:45:45 -07:00
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
open $(dirname $0)/test.html
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 159ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API