Commit Graph

  • f5b738338d auto reduce test cases in randomly generated tests and fix position absolute within space-around Christopher Chedeau 2014-04-22 09:32:49 -07:00
  • 37c518943e increase the random factor in order to get more failing tests :) Christopher Chedeau 2014-04-21 18:50:34 -07:00
  • 78315b5bbf absolute, left, marginLeft Christopher Chedeau 2014-04-21 18:45:57 -07:00
  • 6da9e221d6 absolute, top and marginTop Christopher Chedeau 2014-04-21 18:45:01 -07:00
  • b11c04ed0f cross axis left and padding Christopher Chedeau 2014-04-21 18:40:00 -07:00
  • 756babcdb7 position: absolute, top and left Christopher Chedeau 2014-04-21 18:34:28 -07:00
  • 39cc1e9b01 position: absolute should respect cross padding Christopher Chedeau 2014-04-21 17:31:04 -07:00
  • d5b5ccf56b specific width and stretch should favor the specific width Christopher Chedeau 2014-04-21 17:16:32 -07:00
  • a17fc43756 handling when height/width is smaller than the padding Christopher Chedeau 2014-04-21 17:07:05 -07:00
  • 97c4109434 Add reduceTest util Christopher Chedeau 2014-04-21 16:52:53 -07:00
  • 9760cfd323 position: absolute and alignSelf Christopher Chedeau 2014-04-21 14:58:44 -07:00
  • 72e2d959f2 handle position: absolute margin as child correctly Christopher Chedeau 2014-04-21 14:53:02 -07:00
  • ddcca9107b support position: absolute without top/left/bottom/right set Christopher Chedeau 2014-04-21 14:29:17 -07:00
  • 901db3c3a6 All the generated tests are passing :) Christopher Chedeau 2014-04-19 22:08:10 -07:00
  • 94aedd25f6 swap space_around and between. all tests pass! Christopher Chedeau 2014-04-19 15:21:57 -07:00
  • 13e7e3168b fix bottom issue Christopher Chedeau 2014-04-19 14:43:51 -07:00
  • c95de81d37 print what when wrong in case of errors Christopher Chedeau 2014-04-19 14:41:42 -07:00
  • c0fa2619b1 colorize PASS and FAIL Christopher Chedeau 2014-04-19 14:37:51 -07:00
  • 9e0926adf2 actually do the tests Christopher Chedeau 2014-04-19 14:35:54 -07:00
  • 6fdae626b0 add expected layout to tests Christopher Chedeau 2014-04-19 14:26:19 -07:00
  • fb61491805 c print shorthand for margin and padding instead of the 4 versions Christopher Chedeau 2014-04-19 12:19:02 -07:00
  • 40fac63469 correctly outputting all attributes Christopher Chedeau 2014-04-19 12:15:01 -07:00
  • 05b2c5a749 transpiling all the attributes (rough pass) Christopher Chedeau 2014-04-19 12:11:45 -07:00
  • f540de9d3a probably super wrong but doesn't give random memory issues anymore Christopher Chedeau 2014-04-18 17:19:30 -07:00
  • a90b876e93 autogen c tests initial commit Christopher Chedeau 2014-04-18 17:15:03 -07:00
  • 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 Christopher Chedeau 2014-04-18 16:35:37 -07:00
  • 02d8f35b9a use calloc instead of memset and get rid of a duplicated field Christopher Chedeau 2014-04-18 16:03:29 -07:00
  • 75ab7b6f39 split .c and .h Christopher Chedeau 2014-04-18 16:00:53 -07:00
  • a650e77cb3 update transpiler for &children Christopher Chedeau 2014-04-18 15:48:44 -07:00
  • 43530e51da Merge pull request #2 from swolchok/master Christopher Chedeau 2014-04-18 14:39:40 -07:00
  • 2fce9254d7 don't separately malloc each child, since the list of children never grows Scott Wolchok 2014-04-18 14:35:12 -07:00
  • 1d601935f9 Merge pull request #1 from swolchok/master Christopher Chedeau 2014-04-18 14:06:25 -07:00
  • 5498516087 fix memory leak found by valgrind Scott Wolchok 2014-04-18 13:45:57 -07:00
  • 8cf26abf24 Use isnan(3) to check for NaN Scott Wolchok 2014-04-18 13:41:14 -07:00
  • f34ed85833 s/unsigned int/int/g Christopher Chedeau 2014-04-18 13:17:47 -07:00
  • a5a6c2cf8f stop allocating so much memory for nothing (c is hard) Christopher Chedeau 2014-04-18 13:14:20 -07:00
  • 8317054606 make a separate file for the code generation Christopher Chedeau 2014-04-18 12:10:02 -07:00
  • 803aabf37f extract layoutNode Christopher Chedeau 2014-04-18 11:53:28 -07:00
  • ada35b9ba6 auto-gen the C code Christopher Chedeau 2014-04-18 10:37:01 -07:00
  • 3c7eb7bcfa typo in C, forgot a ! Christopher Chedeau 2014-04-18 10:22:38 -07:00
  • e3430169c0 isDimDefined helper Christopher Chedeau 2014-04-18 10:11:37 -07:00
  • f55bece86e constantify css values for easier port Christopher Chedeau 2014-04-18 10:08:16 -07:00
  • 8af40c07ce replace math.math with ternary Christopher Chedeau 2014-04-18 10:00:46 -07:00
  • 1067fd5997 replace forEach with standard for loop Christopher Chedeau 2014-04-18 09:59:20 -07:00
  • 03da8ea411 replace === to == in order to make the c conversion easier Christopher Chedeau 2014-04-18 09:56:57 -07:00
  • 28d2e3c352 make children always present in the layout function Christopher Chedeau 2014-04-18 09:54:58 -07:00
  • 99c0eb7b6b gitignore Christopher Chedeau 2014-04-18 09:40:31 -07:00
  • 74644cfe41 isUndefined helper to make js and c closer Christopher Chedeau 2014-04-18 09:40:09 -07:00
  • dd79f7599b remove useless top/left setting Christopher Chedeau 2014-04-18 09:33:14 -07:00
  • 0e30f00752 OMG IT WORKS IN C!! Christopher Chedeau 2014-04-18 09:32:13 -07:00
  • 6ac385b234 remove useless top/left setting Christopher Chedeau 2014-04-18 09:30:02 -07:00
  • d701273704 omg, there's a proper bool type in C now! Christopher Chedeau 2014-04-18 09:16:46 -07:00
  • ded76b867e initial commit of the c port. it compiles but doesn't work Christopher Chedeau 2014-04-18 09:06:42 -07:00
  • 47faaffef2 remove horizontal/vertical support Christopher Chedeau 2014-04-18 09:06:22 -07:00
  • 7ad8da74e0 move tests to __tests__ Christopher Chedeau 2014-04-16 18:56:46 -07:00
  • 7549e2c130 Update README.md Christopher Chedeau 2014-04-16 17:46:07 -07:00
  • 3e2dd93db2 Update README.md Christopher Chedeau 2014-04-16 17:35:25 -07:00
  • e465ef7d33 add automated testing support for position: absolute Christopher Chedeau 2014-04-16 16:34:07 -07:00
  • fb9534eed5 support relative right and bottom Christopher Chedeau 2014-04-16 16:31:38 -07:00
  • 88f7e70abe negative top/left tests Christopher Chedeau 2014-04-16 16:14:25 -07:00
  • 7f40bf084b space-around with padding Christopher Chedeau 2014-04-16 16:12:24 -07:00
  • 2471dbe49a simple top left Christopher Chedeau 2014-04-16 15:26:15 -07:00
  • 93ee721ba8 wooooot, padding works! Christopher Chedeau 2014-04-16 15:09:53 -07:00
  • a67c193bef stretch and padding round 2 Christopher Chedeau 2014-04-16 13:32:05 -07:00
  • 5a653ef94b padding and stretch Christopher Chedeau 2014-04-16 13:21:30 -07:00
  • 04fefdb87a cross padding and margin Christopher Chedeau 2014-04-16 13:15:00 -07:00
  • d6abb5d51f make node the first argument of getPadding/getMargin Christopher Chedeau 2014-04-16 12:51:55 -07:00
  • d607b8bb7a padding with a child Christopher Chedeau 2014-04-16 12:49:31 -07:00
  • 36d6108e8d it should apply padding on the node itself Christopher Chedeau 2014-04-15 18:24:37 -07:00
  • 9db106a71c setup automated testing for padding Christopher Chedeau 2014-04-15 18:04:11 -07:00
  • 930c4dc700 fix stretch with margin Christopher Chedeau 2014-04-15 17:53:38 -07:00
  • 1a0cce4f42 typo Christopher Chedeau 2014-04-15 16:46:06 -07:00
  • e55a6fbf27 Introduce getDimWithMargin helper Christopher Chedeau 2014-04-15 16:44:24 -07:00
  • 9313d3d11e fix edge case of flex: 1 Christopher Chedeau 2014-04-15 16:39:42 -07:00
  • 8ebd69437a update test indent in order to make it easier to read, write and more consistent Christopher Chedeau 2014-04-14 18:38:46 -07:00
  • d9e9d95892 auto-test alignSelf Christopher Chedeau 2014-04-14 17:50:55 -07:00
  • bded2b7fe2 layout correctly alignItems with margin Christopher Chedeau 2014-04-14 14:02:04 -07:00
  • a35d4c2216 Remove tests for negative margin for now Christopher Chedeau 2014-04-14 13:40:05 -07:00
  • d65d15cc41 layout flex-end should take into account margin Christopher Chedeau 2014-04-14 12:00:16 -07:00
  • 57dd9e3e28 Fix NaN value with just justifyContent: 'center' Christopher Chedeau 2014-04-14 10:57:16 -07:00
  • 73346dd1ef Don't go negative in height Christopher Chedeau 2014-04-14 10:32:57 -07:00
  • ed1a9f475c don't shrink children Christopher Chedeau 2014-04-14 10:29:04 -07:00
  • b9356e5d85 Write the CSS serially in order to remove async loading Christopher Chedeau 2014-04-14 10:15:37 -07:00
  • d0d8cd0bcf fix DOM layout for more than 2 nested nodes Christopher Chedeau 2014-04-10 09:40:57 -07:00
  • 1b79c9c215 Margin should affect parent dimensions Christopher Chedeau 2014-04-10 09:29:06 -07:00
  • 1452aa7e7b random testing Christopher Chedeau 2014-04-09 21:02:16 -07:00
  • d6e1efdb41 empty node Christopher Chedeau 2014-04-09 19:40:17 -07:00
  • 0dcb7080ff alignItem: stretch Christopher Chedeau 2014-04-09 19:15:46 -07:00
  • e2e49caf86 getFlexDirection function Christopher Chedeau 2014-04-06 21:49:09 -07:00
  • 5c98e1c3cc alignItems and alignSelf, flex-start/end and center Christopher Chedeau 2014-04-06 21:34:41 -07:00
  • a91915d8d2 flex > height in case of conflict Christopher Chedeau 2014-04-06 19:21:06 -07:00
  • 5d8d13b05b Update README.md Christopher Chedeau 2014-04-06 18:43:46 -07:00
  • 869eeb74f8 Create README.md Christopher Chedeau 2014-04-06 18:41:56 -07:00
  • ad30eb7d60 justifyContent Christopher Chedeau 2014-04-06 17:39:30 -07:00
  • 0b939a2eba targetted margin Christopher Chedeau 2014-04-06 10:19:53 -07:00
  • 00107c06b9 remove allocations Christopher Chedeau 2014-04-06 09:47:31 -07:00
  • 6859575797 flex recursively Christopher Chedeau 2014-04-06 09:43:16 -07:00
  • 93b47ef33a flex support Christopher Chedeau 2014-04-05 22:23:00 -07:00
  • 34f994ae56 Modify children position instead of passing it from above Christopher Chedeau 2014-04-05 12:33:12 -07:00
  • d0ae1ea690 Compute main dimensions from chidren when not defined Christopher Chedeau 2014-04-05 11:41:21 -07:00