Move YGLogger into YGConfig and associate YGNodeRef with log events
Summary: Moves the `YGLogger` into `YGConfig` and pass the `YGNodeRef` into the logger to be able to associate the log messages and assertions with the specific node. Tackles facebook/yoga#530 and facebook/yoga#446 Closes https://github.com/facebook/yoga/pull/531 Reviewed By: astreet Differential Revision: D4970149 Pulled By: emilsjolander fbshipit-source-id: b7fcdaa273143ea2fa35861620b2e4d79f04f0af
This commit is contained in:
committed by
Facebook Github Bot
parent
40eba60cf5
commit
91230ae177
@@ -92,7 +92,7 @@ TEST(YogaTest, assert_default_values) {
|
||||
}
|
||||
|
||||
TEST(YogaTest, assert_webdefault_values) {
|
||||
YGConfig * config = YGConfigNew();
|
||||
YGConfig *config = YGConfigNew();
|
||||
YGConfigSetUseWebDefaults(config, true);
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
|
||||
@@ -105,7 +105,7 @@ TEST(YogaTest, assert_webdefault_values) {
|
||||
}
|
||||
|
||||
TEST(YogaTest, assert_webdefault_values_reset) {
|
||||
YGConfig * config = YGConfigNew();
|
||||
YGConfig *config = YGConfigNew();
|
||||
YGConfigSetUseWebDefaults(config, true);
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeReset(root);
|
||||
|
Reference in New Issue
Block a user