// Copyright 2015 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
import'package:test/test.dart';import'rendering_tester.dart';voidmain(){test('Stack can layout with top, right, bottom, left 0.0',(){RenderBoxbox=newRenderConstrainedBox(additionalConstraints:newBoxConstraints.tight(constSize(100.0,100.0)));layout(box,constraints:constBoxConstraints());expect(box.size.width,equals(100.0));expect(box.size.height,equals(100.0));expect(box.size,equals(constSize(100.0,100.0)));expect(box.size.runtimeType.toString(),equals('_DebugSize'));});}