Commit Graph

428 Commits

Author SHA1 Message Date
Christopher Chedeau
b138d3a5e6 Merge pull request #68 from freakboy3742/minmax
Ensure that flex children adopt their parent's cross-axis min dimension.
2015-04-06 20:06:26 -07:00
Russell Keith-Magee
b8316413b3 Ensure that flex children adopt their parent's cross-axis min dimension. 2015-04-07 10:52:15 +08:00
Christopher Chedeau
b912acf8e3 Add more failing tests if someone wants to pick them up and have fun :p 2015-04-06 16:08:12 -07:00
Christopher Chedeau
9c6fc6caf9 Merge pull request #67 from freakboy3742/minmax
Cleanup and extra tests for min/max support
2015-04-01 03:53:58 -07:00
Russell Keith-Magee
6ca5fc5cb4 Cleanup of accessor logic in boundAxis. 2015-04-01 14:46:55 +08:00
Russell Keith-Magee
9cf2e71e01 Added extra test to check for potential division by zero. 2015-04-01 14:46:28 +08:00
Christopher Chedeau
8ae56041b5 Merge pull request #66 from kassens/test-helper
Fix getIframe test helper
2015-03-31 20:42:40 -07: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
Christopher Chedeau
b664517e52 Merge pull request #65 from freakboy3742/minmax
Added support for min/max width and height constraints.
2015-03-31 08:43:37 -07:00
Russell Keith-Magee
2b6844f00a Simplified logic distributing flex space. 2015-03-31 18:58:56 +08:00
Russell Keith-Magee
c523b7c404 Added support for min/max width and height constraints. 2015-03-31 17:32:54 +08:00
Krzysztof Magiera
cf3f7ccda1 Merge pull request #60 from tcmulcahy/thread-safe-measure
Make Java measure thread-safe.
2015-03-27 10:01:33 -07:00
Tom Mulcahy
ddd7a899ac Make Java measure thread-safe. 2015-03-26 22:49:48 +00:00
Christopher Chedeau
a7a8d1d40d Merge pull request #59 from freakboy3742/normalize_isDimDefined
Normalized C and Java definition of isDimDefined.
2015-03-22 09:08:53 -07:00
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
f5850b56e5 update link for infer 1.4 2015-03-05 10:03:37 -08:00
Christopher Chedeau
24a97a5384 Update package.json 2015-03-05 09:35:37 -08:00
Christopher Chedeau
0b892f7142 Update README.md 2015-02-22 09:25:54 -08:00
Christopher Chedeau
74a031e396 Merge pull request #44 from daviskoh/improvement/add-linter
Improvement/add linter
2015-02-20 11:44:19 -06: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
daviskoh
4dc175dda4 replace jshint w/ eslint 2015-02-17 15:44:08 -05:00
Christopher Chedeau
b99ce3736f Merge pull request #50 from jimmyhmiller/master
Rework javascript api to match README
2015-02-15 18:07:59 -08:00
Jimmy Miller
8fe8c15e6d Rework javascript api to match README 2015-02-15 20:56:37 -05:00
daviskoh
0c62b9e4ed Merge branch 'improvement/add-linter' of github.com:daviskoh/css-layout into improvement/add-linter 2015-02-14 12:24:37 -05:00
daviskoh
654a1a67e2 run only desired tests 2015-02-13 11:36:31 -05:00
Christopher Chedeau
ce81ef793a Merge pull request #49 from alexanderGugel/umd
Add UMD
2015-02-12 12:41:53 -08:00
Alexander Gugel
b942b5ff60 Add UMD 2015-02-12 20:46:29 +01:00
daviskoh
3c3b73d229 only run Layout-test & Layout-consts-test 2015-02-05 20:33:27 -05:00
daviskoh
5d016bdb03 run all test files 2015-02-05 20:04:00 -05:00
daviskoh
55d6f9fba6 Merge branch 'master' into improvement/add-linter 2015-02-05 19:51:45 -05:00
daviskoh
cf9b841e33 Fix jshint issues
* add .jshintrc
* address semicolon errors
* ignore 'already defined' errors
2015-02-05 19:49:55 -05:00
Christopher Chedeau
b95cb8da75 Merge pull request #43 from ryanseddon/iframe_firefox_fix
Fix firefox iframe timing issue in test runners, fixes #25
2015-02-05 07:05:16 -08:00
Ryan Seddon
1ad94fa4e1 Fix firefox iframe timing issue, fixes #25 2015-02-05 21:14:19 +11:00
daviskoh
6956b56765 Add jshint
* add npm package
* add npm pretest script
2015-02-04 22:43:02 -05:00
daviskoh
e67d71959a update docs w/ npm test command 2015-02-04 22:42:27 -05:00
daviskoh
49e39dc299 add npm-debug.log to gitignore 2015-02-04 22:40:16 -05:00
Christopher Chedeau
e52c67b902 Merge pull request #42 from daviskoh/improvement/add-test-runner
Improvement/add test runner
2015-02-04 19:08:19 -08:00
daviskoh
58198d8102 adhere to coding style 2015-02-04 21:56:40 -05:00
daviskoh
ce4f64dc73 Add Karma Test Runner
* update package.json w/ karma dependencies
* add npm test script
* add node_modules to .gitignore
2015-02-04 21:45:10 -05: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
9ccb4b6c42 Merge pull request #31 from ColinEberhardt/master
Added package.json
2015-02-02 14:01:31 -08:00
Christopher Chedeau
b702eedaa7 Merge pull request #30 from KyleAMathews/patch-2
Remove "not used in production" warning
2015-02-02 14:01:16 -08:00
Colin Eberhardt
04cc0abd23 Added package.json 2015-02-02 10:18:43 +00:00
Kyle Mathews
ecc61dae85 Remove "not used in production" warning
Given recent announcements... :)
2015-02-02 00:20:40 -07:00
Christopher Chedeau
99c7ce24b1 Merge pull request #26 from dimsuz/master
Fix running 'make': upgrade to infer-annotations-1.4
2015-02-01 14:24:28 -08:00
Dmitry Suzdalev
4edef60ba3 Fix running 'make': upgrade to infer-annotations-1.4 2015-01-31 19:42:52 +02:00
Andy Street
58cd786a4d Merge pull request #23 from kmagiera/javaimprovements
Couple of major improvements for Java version.
2015-01-28 17:40:29 -08:00
Krzysztof Magiera
e1969bda05 Couple of major improvements for Java version.
Including:
 - Extracting spacing logic into a Spacing class
 - Fix layout update issue
 - Add null assertions support
2015-01-19 13:09:32 +00:00