Commit Graph

51 Commits

Author SHA1 Message Date
Jared Forsyth
e1d99952f7 update const 2015-08-05 21:57:06 -07:00
Pierre Renaux
019fc9b88c Merge remote-tracking branch 'upstream/master' 2015-05-17 21:54:30 +08:00
Lucas Rocha
03dfe7bb17 Implement (padding|border|margin)-(start|end) support 2015-05-14 17:43:33 +01:00
Lucas Rocha
36a46673f9 Support ROW_REVERSE, COLUMN_REVERSE and RTL direction 2015-05-11 11:24:21 +01:00
Pierre Renaux
14e264f5be Made relevant JS tests transpile to C ; [src/Layout.c]: print_css_node_rec(): print alignContent ; [src/Layout-test-utils.c]: add_failed_test(): Sets failed_test->next to NULL, otherwise the test crashes if there's one and only one failure ; Added type casts so that it can be compiled as C++ by MSVC on Windows ; [Makefile]: Added c_test_msvc target when running in Windows so that the test executable can be built and debugged with Visual Studio on Windows ; 2015-05-10 00:20:28 +08:00
Pierre Renaux
c7fbf44474 'alignContent' defaults to 'flex-start' instead of 'stretch' ; 2015-05-10 00:19:30 +08:00
Pierre Renaux
8493789989 [src/Layout-test-utils.js]: Fix so that RunLayoutTests.html works on Chrome for Windows ; 2015-05-10 00:19:29 +08:00
Pierre Renaux
cc5f772bff Style fixes ; 2015-05-10 00:19:29 +08:00
Pierre Renaux
9ca681ff28 [src/__tests__/Layout-random-test.js]: Added alignContent in the list of random permutations ; 2015-05-10 00:19:28 +08:00
Pierre Renaux
15a8430be9 [src/Layout-test-utils.js]: Added inplaceRoundNumbersInObject to testRandomLayout so that much less random tests fail ; Moved inplaceRoundNumbersInObject in the main functions instead of having it in nameLayout ; 2015-05-10 00:19:28 +08:00
Pierre Renaux
68d029e460 [src/__tests__/Layout-test.js]: Added 16 test cases for each alignContent / alignItems combination - also includes alignSelf testing within the test data ; 2015-05-10 00:19:27 +08:00
Pierre Renaux
f4226d3ff5 [src/Layout-test-utils.js]: Added testMeasurePrecision and inplaceRoundNumbersInObject which snap the numbers to pixels so that we don't have to re-adjust for each browser version (Chrome 42 changed their computation, it can output floating point values for dom elements) ; 2015-05-10 00:19:27 +08:00
Tadeu Zagallo
1cbb5eef26 Fix lint errors and consts tests 2015-04-24 14:00:40 +01:00
Jan Kassens
dda464cdb9 Fix getIframe test helper
Chrome seems to always be ready on the first iteration, so this doesn't affect
Chrome, but on Firefox, the `iframe` is undefined in the recursive call.

This makes most of the test in `RunLayoutTests.html` pass in Firefox. The only
failing test is the one checking font sizes.
2015-03-31 20:27:58 -07:00
Russell Keith-Magee
c523b7c404 Added support for min/max width and height constraints. 2015-03-31 17:32:54 +08:00
daviskoh
9c71cc6d1f resolve merge conflicts 2015-02-17 21:30:41 -05:00
daviskoh
3a6e50db99 Address eslint errors:
* modify .eslintrc w/ globals & rules
* use judgement in deciding bet proj style & eslint recommendation
* make
2015-02-17 21:12:29 -05:00
Jimmy Miller
8fe8c15e6d Rework javascript api to match README 2015-02-15 20:56:37 -05:00
Ryan Seddon
1ad94fa4e1 Fix firefox iframe timing issue, fixes #25 2015-02-05 21:14:19 +11:00
Christopher Chedeau
0e56641b28 Update font constants 2015-02-04 07:57:13 -08:00
Christopher Chedeau
28243156e4 make C and Java tests pass and update their code 2014-12-11 20:23:53 +00:00
Christopher Chedeau
544f377f20 implement 1/64 rounding like chrome. Didn't add a test for it because this is Chrome specific and shouldn't be on ios and android 2014-12-11 16:31:57 +00:00
Christopher Chedeau
e0bcbdcfc1 more tweaks to the pretty print function 2014-12-11 13:56:29 +00:00
Christopher Chedeau
0f9b777623 better way to ignore iframe width 2014-12-11 13:44:03 +00:00
Christopher Chedeau
fde2328ba6 better pretty-print function 2014-12-11 13:30:46 +00:00
Christopher Chedeau
8031cbe134 do not infinite loop on random layouts anymore 2014-12-11 12:17:40 +00:00
Christopher Chedeau
c2aa92cd0b Add licenses and remove third party libraries 2014-10-29 08:01:22 -07:00
Christopher Chedeau
c0f895c6f2 Make align-items: stretch the default 2014-10-08 09:35:44 -07:00
Alex Kotliarskyi
308d0edc0b Add test that makes sure text consts are in sync 2014-09-26 20:38:34 -07:00
Alex Kotliarskyi
a047e4d5fe Automated script to transpile code and tests to C 2014-09-26 17:19:59 -07:00
Andrew Rasmussen
e506416fa3 aggregate test failures and print a summary after running tests 2014-09-25 17:56:02 -07:00
Christopher Chedeau
d8c1889ba4 use constants for text examples 2014-09-19 18:36:18 -07:00
Christopher Chedeau
9119ebcea6 Make vendor prefix work on safari 2014-09-19 18:26:53 -07:00
Christopher Chedeau
8974b7fdb7 Make variables for text sizes so it is easier to fix when the browser changes 2014-09-19 18:22:09 -07:00
Christopher Chedeau
d7f3ea868d Import latest changes 2014-09-11 09:23:30 -07:00
Christopher Chedeau
842d654b0f overlapping left and right + workaround chrome bug 2014-06-12 11:27:49 -07:00
Christopher Chedeau
d2ce2420f4 Lots of changes that I forgot to properly commit 2014-06-04 10:51:23 -07:00
Christopher Chedeau
0708b5eb75 autogen c version of text from js 2014-04-28 13:06:00 -07:00
Christopher Chedeau
6123dbb33b initial support for string in c 2014-04-28 12:34:04 -07:00
Christopher Chedeau
490a7c74d5 move extractLayoutNode out of layout.js 2014-04-27 12:37:26 -07:00
Christopher Chedeau
a0ffafe37d support <Text> 2014-04-26 19:02:16 -07:00
Christopher Chedeau
61919a1b2f text with padding and margin 2014-04-26 17:11:22 -07:00
Christopher Chedeau
8ca7bd0ccb make text with specific width work. plus a lot of hacks to manage dependencies. need to clean it up 2014-04-26 12:46:21 -07:00
Christopher Chedeau
c06f48c45f initial support for text layout 2014-04-26 12:16:27 -07:00
Christopher Chedeau
3d280fe3f1 initial support for borderWidth 2014-04-22 11:31:42 -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
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
901db3c3a6 All the generated tests are passing :) 2014-04-19 22:08:10 -07:00