Commit Graph

36 Commits

Author SHA1 Message Date
Russell Keith-Magee
8f6a96adbc Normalized C and Java definition of isDimDefined.
The JavaScript implementation of isDimDefined contains a check to ensure
that the dimension value is positive; the C and Java versions did not
have this check. As a result, a negative style value for 'width' (such
as that used by the "should layout node with negative width" test) would
have different layout under the C/Java implementation to the JavaScript
implementation.

This was hidden because the C/Java transpilers filtered out any negative
instantiation values from the test suite. In effect, the negative value
tests weren't running on the C/Java implementation.

This patch removes the negative value filter from the transpiler, and
makes the isDimDefined definition consistent between the three
implementations.
2015-03-22 14:36:16 +08:00
Christopher Chedeau
0e56641b28 Update font constants 2015-02-04 07:57:13 -08:00
Christopher Chedeau
5f8c3b0eb7 Update C version 2015-02-04 07:50:15 -08:00
Christopher Chedeau
10fb645777 Initial implementation of flexWrap 2014-12-12 12:03:31 +00:00
Christopher Chedeau
28243156e4 make C and Java tests pass and update their code 2014-12-11 20:23:53 +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
Andrew Rasmussen
7eef01f299 make setting bottom/right calculate top/left 2014-09-30 15:24:42 -07:00
Andrew Rasmussen
0ae8bcf8f6 Add second position: absolute pass 2014-09-30 13:11:32 -07:00
Andrew Rasmussen
c149d3110d rename position: absolute test case 2014-09-29 14:07:47 -07:00
Alex Kotliarskyi
ba4cf35804 Return bad error code when tests fail 2014-09-26 20:08:37 -07:00
Alex Kotliarskyi
b6b7849740 Ignore skipped tests 2014-09-26 17:52:27 -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
Andrew Rasmussen
b91bc8b3fc rename position: absolute bottom test case 2014-09-25 16:21:20 -07:00
Andrew Rasmussen
6f347d74a3 Added another pass to calclulate absolutely positioned elements last 2014-09-25 16:05:01 -07:00
Christopher Chedeau
d7f3ea868d Import latest changes 2014-09-11 09:23:30 -07:00
Christopher Chedeau
9a45599b84 better print utils 2014-06-11 21:00:57 -07:00
Christopher Chedeau
d2ce2420f4 Lots of changes that I forgot to properly commit 2014-06-04 10:51:23 -07:00
Christopher Chedeau
e53bf49746 fix bug where nested align: stretch were not properly working
The way the algorithm work is that you first layout fixed children on the main axis, then compute all the dimensions so that you can layout flexible children. This separation doesn't work anymore if we add the other axis. The solution here is a hacky (but working!) attempt at fixing the issue. We start by doing a pass to set the children dimensions if they are stretch.
2014-05-19 12:43:26 -07:00
Christopher Chedeau
eae5cdfe68 -Weverything and fix all the warnings 2014-05-16 18:04:24 -07:00
Christopher Chedeau
e9550a6116 split test utils for c 2014-04-28 12:36:36 -07:00
Christopher Chedeau
6123dbb33b initial support for string in c 2014-04-28 12:34:04 -07:00
Christopher Chedeau
c63281a064 update C 2014-04-22 17:37:55 -07:00
Christopher Chedeau
aad9fab75f port latest updates to C 2014-04-22 14:59:59 -07:00
Christopher Chedeau
db510d590a port changes to C 2014-04-22 13:20:51 -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
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
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
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