box_decoration_test.dart 769 Bytes
Newer Older
Hixie's avatar
Hixie committed
1 2 3 4
// 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.

Adam Barth's avatar
Adam Barth committed
5
import 'package:flutter_test/flutter_test.dart';
6 7
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
8 9 10 11
import 'package:test/test.dart';

void main() {
  test('Circles can have uniform borders', () {
12 13 14 15 16 17 18 19 20
    testWidgets((WidgetTester tester) {
      tester.pumpWidget(
        new Container(
          padding: new EdgeDims.all(50.0),
          decoration: new BoxDecoration(
            shape: Shape.circle,
            border: new Border.all(width: 10.0, color: const Color(0x80FF00FF)),
            backgroundColor: Colors.teal[600]
          )
21
        )
22 23
      );
    });
24
  });
25
}