mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 22:35:29 +08:00
Fabric: Enabling clang-format for half of Fabric modules
Summary: All code styles are terribly ugly. We have the only choise - choise something and embrace it. This particular code style was borrowed from a neibour Fabric-friendly project because it follows established Facebook guides and respects client-side traditions. Reviewed By: mdvacca Differential Revision: D10218598 fbshipit-source-id: 8c4cf6713c07768566dadef479191661c79988f0
This commit is contained in:
committed by
Facebook Github Bot
parent
3d31bebbeb
commit
3ad5c9e016
@@ -7,12 +7,12 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <assert.h>
|
||||
#include <fabric/attributedstring/TextAttributes.h>
|
||||
#include <fabric/attributedstring/conversions.h>
|
||||
#include <fabric/attributedstring/primitives.h>
|
||||
#include <fabric/graphics/conversions.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <assert.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
@@ -23,7 +23,8 @@ TEST(AttributedStringTest, testSomething) {
|
||||
fragment->string = "test";
|
||||
|
||||
auto text = new TextAttributes();
|
||||
text->foregroundColor = {colorFromComponents({100/255.0, 153/255.0, 200/255.0, 1.0})};
|
||||
text->foregroundColor = {
|
||||
colorFromComponents({100 / 255.0, 153 / 255.0, 200 / 255.0, 1.0})};
|
||||
text->opacity = 0.5;
|
||||
text->fontStyle = FontStyle::Italic;
|
||||
text->fontWeight = FontWeight::Thin;
|
||||
@@ -41,5 +42,5 @@ TEST(AttributedStringTest, testSomething) {
|
||||
assert(textAttribute["fontWeight"] == toString(*text->fontWeight));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace react
|
||||
} // namespace facebook
|
||||
|
||||
Reference in New Issue
Block a user