| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:sky' as sky; | 5 import 'dart:sky' as sky; |
| 6 | 6 |
| 7 import 'package:sky/framework/app.dart'; | 7 import 'package:sky/app/view.dart'; |
| 8 import 'package:sky/framework/rendering/block.dart'; | 8 import 'package:sky/rendering/block.dart'; |
| 9 import 'package:sky/framework/rendering/box.dart'; | 9 import 'package:sky/rendering/box.dart'; |
| 10 import 'package:sky/framework/rendering/flex.dart'; | 10 import 'package:sky/rendering/flex.dart'; |
| 11 | 11 |
| 12 import '../resources/display_list.dart'; | 12 import '../resources/display_list.dart'; |
| 13 import '../resources/third_party/unittest/unittest.dart'; | 13 import '../resources/third_party/unittest/unittest.dart'; |
| 14 import '../resources/unit.dart'; | 14 import '../resources/unit.dart'; |
| 15 | 15 |
| 16 class RenderSolidColor extends RenderDecoratedBox { | 16 class RenderSolidColor extends RenderDecoratedBox { |
| 17 final sky.Size desiredSize; | 17 final sky.Size desiredSize; |
| 18 final sky.Color backgroundColor; | 18 final sky.Color backgroundColor; |
| 19 | 19 |
| 20 RenderSolidColor(sky.Color backgroundColor, { this.desiredSize: sky.Size.infin
ite }) | 20 RenderSolidColor(sky.Color backgroundColor, { this.desiredSize: sky.Size.infin
ite }) |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 decoratedRow.parentData.flex = 3; | 101 decoratedRow.parentData.flex = 3; |
| 102 | 102 |
| 103 new TestRenderView(root); | 103 new TestRenderView(root); |
| 104 | 104 |
| 105 expect(root.size.width, equals(sky.view.width)); | 105 expect(root.size.width, equals(sky.view.width)); |
| 106 expect(root.size.height, equals(sky.view.height)); | 106 expect(root.size.height, equals(sky.view.height)); |
| 107 expect(renderBlock.size.width, equals(sky.view.width - 20.0)); | 107 expect(renderBlock.size.width, equals(sky.view.width - 20.0)); |
| 108 | 108 |
| 109 }); | 109 }); |
| 110 } | 110 } |
| OLD | NEW |