mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-08 02:04:43 +08:00
28 lines
924 B
Dart
28 lines
924 B
Dart
// 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_web/rendering.dart';
|
|
import 'package:flutter_web_test/flutter_web_test.dart';
|
|
|
|
void main() {
|
|
test('Wrap test; toStringDeep', () {
|
|
final RenderWrap renderWrap = RenderWrap();
|
|
expect(renderWrap, hasAGoodToStringDeep);
|
|
expect(
|
|
renderWrap.toStringDeep(minLevel: DiagnosticLevel.info),
|
|
equalsIgnoringHashCodes(
|
|
'RenderWrap#00000 NEEDS-LAYOUT NEEDS-PAINT DETACHED\n'
|
|
' parentData: MISSING\n'
|
|
' constraints: MISSING\n'
|
|
' size: MISSING\n'
|
|
' direction: horizontal\n'
|
|
' alignment: start\n'
|
|
' spacing: 0.0\n'
|
|
' runAlignment: start\n'
|
|
' runSpacing: 0.0\n'
|
|
' crossAxisAlignment: 0.0\n'),
|
|
);
|
|
});
|
|
}
|