mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This allows the scheduler library to depend on the services library and the painting library to depend on the scheduler library without the services library having to depend on the scheduler library. While I was at it I also cleaned up some of the binding logic: the licenses logic can now be overridden (and the test library does so), and the image cache can now be overridden as well.
21 lines
572 B
Dart
21 lines
572 B
Dart
// Copyright 2016 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 'dart:typed_data';
|
|
import 'dart:ui' as ui;
|
|
|
|
import 'package:flutter/painting.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'image_data.dart';
|
|
|
|
void main() {
|
|
test('Image decoder control test', () async {
|
|
final ui.Image image = await decodeImageFromList(new Uint8List.fromList(kTransparentImage));
|
|
expect(image, isNotNull);
|
|
expect(image.width, 1);
|
|
expect(image.height, 1);
|
|
});
|
|
}
|