Summary: - Revise scripts to generate Java and C# unittests using the same HTML fixtures as well as C for code coverage. - Add wrap_column test workaround in gentest.js. - Add checkDefaultValues for sanity check of the CSSLayout default values by test-template.html - Add `align-content: flex-start;` in default div to align with CSSLayout default $ cd csharp/gentest $ ruby gentest.rb - macOS example for C# $ cd csharp/tests/Facebook.CSSLayout $ clang -DCSS_ASSERT_FAIL_ENABLED -Wall -Wextra -dynamiclib -o libCSSLayout.dylib -g -I../../.. ../../../CSSLayout/*.c ../../CSSLayout/CSSInterop.cpp $ mcs -debug -t:library -r:nunit.framework.dll -out:CSSLayoutTest.dll *.cs ../../../csharp/Facebook.CSSLayout/*cs $ mono64 --debug nunit-console.exe CSSLayoutTest.dll Reviewed By: emilsjolander Differential Revision: D4053777 fbshipit-source-id: 84450208015e65baf604987bd56c6a268598b545
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
<div id="max_width" style="width: 100px; height: 100px;">
|
|
<div style="height: 10px; max-width: 50px;"></div>
|
|
</div>
|
|
|
|
<div id="max_height" style="width: 100px; height: 100px; flex-direction: row;">
|
|
<div style="width: 10px; max-height: 50px;"></div>
|
|
</div>
|
|
|
|
<div id="min_height" style="width: 100px; height: 100px;">
|
|
<div style="flex-grow: 1; min-height: 60px;"></div>
|
|
<div style="flex-grow: 1;"></div>
|
|
</div>
|
|
|
|
<div id="min_width" style="width: 100px; height: 100px; flex-direction: row">
|
|
<div style="flex-grow: 1; min-width: 60px;"></div>
|
|
<div style="flex-grow: 1;"></div>
|
|
</div>
|
|
|
|
<div id="justify_content_min_max" style="max-height: 200px; min-height: 100px; width: 100px; justify-content: center;">
|
|
<div style="width: 60px; height: 60px;"></div>
|
|
</div>
|
|
|
|
<div id="align_items_min_max" style="max-width: 200px; min-width: 100px; height: 100px; align-items: center;">
|
|
<div style="width: 60px; height: 60px;"></div>
|
|
</div>
|
|
|
|
<div id="justify_content_overflow_min_max" style="min-height: 100px; max-height: 110px; justify-content: center;">
|
|
<div style="width: 50px; height: 50px;"></div>
|
|
<div style="width: 50px; height: 50px;"></div>
|
|
<div style="width: 50px; height: 50px;"></div>
|
|
</div>
|