Improve formatting of generated test code input

Summary: Make input html easier to read by indenting it and adding a space between children. The code to do this could very well be improved but it works for the current set of inputs.

Reviewed By: lucasr

Differential Revision: D3798087

fbshipit-source-id: 0d50ff276000f14ed078cf5ce2e7560ace285a6a
This commit is contained in:
Emil Sjolander
2016-08-31 11:07:26 -07:00
committed by Facebook Github Bot 5
parent 57725e849a
commit 059384f277
10 changed files with 157 additions and 108 deletions

View File

@@ -11,21 +11,25 @@
* @Generated by gentest/gentest.sh with the following input
*
* <div id="absolute_layout_width_height_left_top" style="width: 100px; height: 100px;">
* <div style="width:10px; height: 10px; position: absolute; left: 10px; top: 10px;"></div>
* <div style="width:10px; height: 10px; position: absolute; left: 10px; top: 10px;"></div>
* </div>
*
* <div id="absolute_layout_width_height_right_bottom" style="width: 100px; height: 100px;">
* <div style="width:10px; height: 10px; position: absolute; right: 10px; bottom: 10px;"></div>
* <div style="width:10px; height: 10px; position: absolute; right: 10px; bottom: 10px;"></div>
* </div>
*
* <div id="absolute_layout_left_top_right_bottom" style="width: 100px; height: 100px;">
* <div style="position: absolute; left: 10px; top: 10px; right: 10px; bottom: 10px;"></div>
* <div style="position: absolute; left: 10px; top: 10px; right: 10px; bottom: 10px;"></div>
* </div>
*
* <div id="absolute_layout_width_height_left_top_right_bottom" style="width: 100px; height: 100px;">
* <div style="width:10px; height: 10px; position: absolute; left: 10px; top: 10px; right: 10px; bottom: 10px;"></div>
* <div style="width:10px; height: 10px; position: absolute; left: 10px; top: 10px; right: 10px; bottom: 10px;"></div>
* </div>
*
* <div id="do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_parent" style="height: 50px; width: 50px; overflow: hidden; flex-direction: row;">
* <div style="position: absolute; left: 0; top: 0;">
* <div style="width: 100px; height: 100px;"></div>
* </div>
* <div style="position: absolute; left: 0; top: 0;">
* <div style="width: 100px; height: 100px;"></div>
* </div>
* </div>
*
*/