Commit Graph

2615 Commits

Author SHA1 Message Date
Christopher Chedeau
b6f3bbc3b8 absolute child and parent border main axis. s/getPadding/getPaddingAndBorder/ 2014-04-22 11:40:31 -07:00
Christopher Chedeau
3d280fe3f1 initial support for borderWidth 2014-04-22 11:31:42 -07:00
Christopher Chedeau
5922c88f84 double flex and position absolute 2014-04-22 10:21:17 -07:00
Christopher Chedeau
a18bc27c6b flex and position absolute 2014-04-22 10:02:33 -07:00
Christopher Chedeau
f564effb5c flex overflow 2014-04-22 09:56:48 -07:00
Christopher Chedeau
4dd147e92a multiple flex and margin 2014-04-22 09:53:54 -07:00
Christopher Chedeau
fce826f18b multiple flex and padding 2014-04-22 09:48:33 -07:00
Christopher Chedeau
bda6b23b8b flex and main axis margin 2014-04-22 09:38:17 -07:00
Christopher Chedeau
f5b738338d auto reduce test cases in randomly generated tests and fix position absolute within space-around 2014-04-22 09:32:49 -07:00
Christopher Chedeau
37c518943e increase the random factor in order to get more failing tests :) 2014-04-21 18:50:34 -07:00
Christopher Chedeau
78315b5bbf absolute, left, marginLeft 2014-04-21 18:45:57 -07:00
Christopher Chedeau
6da9e221d6 absolute, top and marginTop 2014-04-21 18:45:01 -07:00
Christopher Chedeau
b11c04ed0f cross axis left and padding 2014-04-21 18:40:00 -07:00
Christopher Chedeau
756babcdb7 position: absolute, top and left 2014-04-21 18:34:28 -07:00
Christopher Chedeau
39cc1e9b01 position: absolute should respect cross padding 2014-04-21 17:31:04 -07:00
Christopher Chedeau
d5b5ccf56b specific width and stretch should favor the specific width 2014-04-21 17:16:32 -07:00
Christopher Chedeau
a17fc43756 handling when height/width is smaller than the padding 2014-04-21 17:07:05 -07:00
Christopher Chedeau
97c4109434 Add reduceTest util 2014-04-21 16:52:53 -07:00
Christopher Chedeau
9760cfd323 position: absolute and alignSelf 2014-04-21 14:58:44 -07:00
Christopher Chedeau
72e2d959f2 handle position: absolute margin as child correctly 2014-04-21 14:53:02 -07:00
Christopher Chedeau
ddcca9107b support position: absolute without top/left/bottom/right set 2014-04-21 14:29:17 -07:00
Christopher Chedeau
901db3c3a6 All the generated tests are passing :) 2014-04-19 22:08:10 -07:00
Christopher Chedeau
94aedd25f6 swap space_around and between. all tests pass! 2014-04-19 15:21:57 -07:00
Christopher Chedeau
13e7e3168b fix bottom issue 2014-04-19 14:43:51 -07:00
Christopher Chedeau
c95de81d37 print what when wrong in case of errors 2014-04-19 14:41:42 -07:00
Christopher Chedeau
c0fa2619b1 colorize PASS and FAIL 2014-04-19 14:37:51 -07:00
Christopher Chedeau
9e0926adf2 actually do the tests 2014-04-19 14:35:54 -07:00
Christopher Chedeau
6fdae626b0 add expected layout to tests 2014-04-19 14:26:19 -07:00
Christopher Chedeau
fb61491805 c print shorthand for margin and padding instead of the 4 versions 2014-04-19 12:19:02 -07:00
Christopher Chedeau
40fac63469 correctly outputting all attributes 2014-04-19 12:15:01 -07:00
Christopher Chedeau
05b2c5a749 transpiling all the attributes (rough pass) 2014-04-19 12:11:45 -07:00
Christopher Chedeau
f540de9d3a probably super wrong but doesn't give random memory issues anymore 2014-04-18 17:19:30 -07:00
Christopher Chedeau
a90b876e93 autogen c tests initial commit 2014-04-18 17:15:03 -07:00
Christopher Chedeau
5f2a219394 decouple js tests from jasmine so that we can generate them in c
moved the c example inside of test file
added a make test
2014-04-18 16:35:37 -07:00
Christopher Chedeau
02d8f35b9a use calloc instead of memset and get rid of a duplicated field 2014-04-18 16:03:29 -07:00
Christopher Chedeau
75ab7b6f39 split .c and .h 2014-04-18 16:00:53 -07:00
Christopher Chedeau
a650e77cb3 update transpiler for &children 2014-04-18 15:48:44 -07:00
Christopher Chedeau
43530e51da Merge pull request #2 from swolchok/master
don't separately malloc each child, since the list of children never grows
2014-04-18 14:39:40 -07:00
Scott Wolchok
2fce9254d7 don't separately malloc each child, since the list of children never grows 2014-04-18 14:35:12 -07:00
Christopher Chedeau
1d601935f9 Merge pull request #1 from swolchok/master
Use isnan(3) to check for NaN
2014-04-18 14:06:25 -07:00
Scott Wolchok
5498516087 fix memory leak found by valgrind 2014-04-18 13:45:57 -07:00
Scott Wolchok
8cf26abf24 Use isnan(3) to check for NaN 2014-04-18 13:41:14 -07:00
Christopher Chedeau
f34ed85833 s/unsigned int/int/g 2014-04-18 13:17:47 -07:00
Christopher Chedeau
a5a6c2cf8f stop allocating so much memory for nothing (c is hard) 2014-04-18 13:14:20 -07:00
Christopher Chedeau
8317054606 make a separate file for the code generation 2014-04-18 12:10:02 -07:00
Christopher Chedeau
803aabf37f extract layoutNode 2014-04-18 11:53:28 -07:00
Christopher Chedeau
ada35b9ba6 auto-gen the C code 2014-04-18 10:37:01 -07:00
Christopher Chedeau
3c7eb7bcfa typo in C, forgot a ! 2014-04-18 10:22:38 -07:00
Christopher Chedeau
e3430169c0 isDimDefined helper 2014-04-18 10:11:37 -07:00
Christopher Chedeau
f55bece86e constantify css values for easier port 2014-04-18 10:08:16 -07:00