From 128c12b48463f2210d8e379037716b919f47ecf3 Mon Sep 17 00:00:00 2001 From: LongCat is Looong <31859944+LongCatIsLooong@users.noreply.github.com> Date: Tue, 7 May 2019 12:01:16 -0700 Subject: [PATCH] indentation --- .../test/material/scrollbar_paint_test.dart | 36 +++++++++---------- .../flutter/test/widgets/scrollbar_test.dart | 4 +-- .../test/widgets/slivers_evil_test.dart | 30 ++++++++-------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/packages/flutter/test/material/scrollbar_paint_test.dart b/packages/flutter/test/material/scrollbar_paint_test.dart index c4354b73d4db1..7f0db98ca752b 100644 --- a/packages/flutter/test/material/scrollbar_paint_test.dart +++ b/packages/flutter/test/material/scrollbar_paint_test.dart @@ -45,19 +45,19 @@ void main() { testWidgets('workds with MaterialApp and Scaffold', (WidgetTester tester) async { await tester.pumpWidget(MaterialApp( - home: MediaQuery( - data: const MediaQueryData( - padding: EdgeInsets.fromLTRB(0, 20, 0, 34) - ), - child: Scaffold( - appBar: AppBar(title: const Text('Title')), - body: Scrollbar( - child: ListView( - children: const [SizedBox(width: 4000, height: 4000)] - ) + home: MediaQuery( + data: const MediaQueryData( + padding: EdgeInsets.fromLTRB(0, 20, 0, 34) + ), + child: Scaffold( + appBar: AppBar(title: const Text('Title')), + body: Scrollbar( + child: ListView( + children: const [SizedBox(width: 4000, height: 4000)] ) ) ) + ) )); final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(ListView))); @@ -67,14 +67,14 @@ void main() { await tester.pump(); await tester.pump(const Duration(milliseconds: 500)); - expect(find.byType(Scrollbar), paints..rect(rect: - const Rect.fromLTWH( - 800.0 - 6, // screen width - thickness - 0, // the paint area starts from the bottom of the app bar - 6, // thickness - // 56 being the height of the app bar - (600.0 - 56 - 34 - 20) / 4000 * (600 - 56 - 34 - 20) - ) + expect(find.byType(Scrollbar), paints..rect( + rect: const Rect.fromLTWH( + 800.0 - 6, // screen width - thickness + 0, // the paint area starts from the bottom of the app bar + 6, // thickness + // 56 being the height of the app bar + (600.0 - 56 - 34 - 20) / 4000 * (600 - 56 - 34 - 20) + ) )); }); } diff --git a/packages/flutter/test/widgets/scrollbar_test.dart b/packages/flutter/test/widgets/scrollbar_test.dart index 5cf1de6e8ba10..27b19db4d797f 100644 --- a/packages/flutter/test/widgets/scrollbar_test.dart +++ b/packages/flutter/test/widgets/scrollbar_test.dart @@ -215,8 +215,8 @@ void main() { expect( margin, textDirection == TextDirection.ltr - ? size.width - rect.right - : rect.left + ? size.width - rect.right + : rect.left ); break; case AxisDirection.left: diff --git a/packages/flutter/test/widgets/slivers_evil_test.dart b/packages/flutter/test/widgets/slivers_evil_test.dart index e2352e81e51ec..b4d47492150ff 100644 --- a/packages/flutter/test/widgets/slivers_evil_test.dart +++ b/packages/flutter/test/widgets/slivers_evil_test.dart @@ -130,21 +130,21 @@ void main() { SliverToBoxAdapter(child: Container(height: 5.0)), SliverList( delegate: SliverChildListDelegate([ - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), - Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), + Container(height: 50.0), ]), ), SliverPersistentHeader(delegate: TestSliverPersistentHeaderDelegate(250.0)),