Match xplat/yoga/javascript
prettier conventions
Summary: Match Prettier config to match other Meta OSS projects Didn't update the test generator to use this form yet. Reviewed By: yungsters Differential Revision: D45570415 fbshipit-source-id: d5fd791b047debf41c28aecac75fb8dde16da3e3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0cb4a49d38
commit
0a6a581936
@@ -5,12 +5,12 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import { getMeasureCounter } from "../tools/MeasureCounter";
|
||||
import { Yoga, YGBENCHMARK } from "../tools/globals";
|
||||
import {getMeasureCounter} from '../tools/MeasureCounter';
|
||||
import {Yoga, YGBENCHMARK} from '../tools/globals';
|
||||
|
||||
const ITERATIONS = 2000;
|
||||
|
||||
YGBENCHMARK("Stack with flex", () => {
|
||||
YGBENCHMARK('Stack with flex', () => {
|
||||
const root = Yoga.Node.create();
|
||||
root.setWidth(100);
|
||||
root.setHeight(100);
|
||||
@@ -28,7 +28,7 @@ YGBENCHMARK("Stack with flex", () => {
|
||||
root.freeRecursive();
|
||||
});
|
||||
|
||||
YGBENCHMARK("Align stretch in undefined axis", () => {
|
||||
YGBENCHMARK('Align stretch in undefined axis', () => {
|
||||
const root = Yoga.Node.create();
|
||||
|
||||
const measureCounter = getMeasureCounter();
|
||||
@@ -44,7 +44,7 @@ YGBENCHMARK("Align stretch in undefined axis", () => {
|
||||
root.freeRecursive();
|
||||
});
|
||||
|
||||
YGBENCHMARK("Nested flex", () => {
|
||||
YGBENCHMARK('Nested flex', () => {
|
||||
const root = Yoga.Node.create();
|
||||
|
||||
const measureCounter = getMeasureCounter();
|
||||
@@ -68,7 +68,7 @@ YGBENCHMARK("Nested flex", () => {
|
||||
root.freeRecursive();
|
||||
});
|
||||
|
||||
YGBENCHMARK("Huge nested layout", () => {
|
||||
YGBENCHMARK('Huge nested layout', () => {
|
||||
const root = Yoga.Node.create();
|
||||
|
||||
const iterations = Math.pow(ITERATIONS, 1 / 4);
|
||||
|
Reference in New Issue
Block a user