From b7bc781a72d131a30d16c2d0c7298151f58dd60c Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Wed, 17 Jun 2015 10:06:44 -0700 Subject: [PATCH] Fix a typo in Dialog If action: was specified, content: was added twice. R=jackson@google.com Review URL: https://codereview.chromium.org/1188303002. --- engine/src/flutter/tests/widgets/dialog-expected.txt | 4 +++- engine/src/flutter/tests/widgets/dialog.dart | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tests/widgets/dialog-expected.txt b/engine/src/flutter/tests/widgets/dialog-expected.txt index 0c76eb7d07..8866325791 100644 --- a/engine/src/flutter/tests/widgets/dialog-expected.txt +++ b/engine/src/flutter/tests/widgets/dialog-expected.txt @@ -13,12 +13,14 @@ PAINT FOR FRAME #2 ---------------------------------------------- 2 | | | drawRect(Rect.fromLTRB(0.0, 0.0, 800.0, 600.0), Paint(Color(0x7f000000))) 2 | | paintChild RenderPositionedBox at Point(0.0, 0.0) 2 | | | TestDisplayList() constructor: 800.0 x 600.0 -2 | | | paintChild RenderConstrainedBox at Point(260.0, 284.0) +2 | | | paintChild RenderConstrainedBox at Point(260.0, 276.0) 2 | | | | TestDisplayList() constructor: 800.0 x 600.0 2 | | | | drawRRect(Instance of 'RRect', Paint(Color(0xfffafafa))) 2 | | | | paintChild RenderParagraph at Point(0.0, 0.0) 2 | | | | | TestDisplayList() constructor: 800.0 x 600.0 2 | | | | paintChild RenderParagraph at Point(0.0, 16.0) 2 | | | | | TestDisplayList() constructor: 800.0 x 600.0 +2 | | | | paintChild RenderParagraph at Point(0.0, 32.0) +2 | | | | | TestDisplayList() constructor: 800.0 x 600.0 ------------------------------------------------------------------------ PAINTED 2 FRAMES diff --git a/engine/src/flutter/tests/widgets/dialog.dart b/engine/src/flutter/tests/widgets/dialog.dart index b90a413f9b..ed254b0e87 100644 --- a/engine/src/flutter/tests/widgets/dialog.dart +++ b/engine/src/flutter/tests/widgets/dialog.dart @@ -13,7 +13,8 @@ main() async { await tester.test(() { return new Dialog( title: new Text("I am a title"), - content: new Text("I am some content") + content: new Text("I am some content"), + actions: new Text("I am some actions") ); });