wrap_test.dart 903 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
// Copyright 2017 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:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  test('Wrap test; toStringDeep', () {
    final RenderWrap renderWrap = new RenderWrap();
    expect(renderWrap, hasAGoodToStringDeep);
    expect(
13
      renderWrap.toStringDeep(minLevel: DiagnosticLevel.info),
14 15
      equalsIgnoringHashCodes(
        'RenderWrap#00000 NEEDS-LAYOUT NEEDS-PAINT DETACHED\n'
Ian Hickson's avatar
Ian Hickson committed
16 17
        '   parentData: MISSING\n'
        '   constraints: MISSING\n'
18
        '   size: MISSING\n'
19 20
        '   direction: horizontal\n'
        '   alignment: start\n'
21
        '   spacing: 0.0\n'
22
        '   runAlignment: start\n'
23 24 25 26 27 28
        '   runSpacing: 0.0\n'
        '   crossAxisAlignment: 0.0\n'
      ),
    );
  });
}