image_decoder_test.dart 578 Bytes
Newer Older
1 2 3 4 5
// 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';
6
import 'dart:ui' as ui;
7

8
import 'package:flutter/painting.dart';
9
import '../flutter_test_alternative.dart';
10

11
import 'image_data.dart';
12 13 14

void main() {
  test('Image decoder control test', () async {
15
    final ui.Image image = await decodeImageFromList(Uint8List.fromList(kTransparentImage));
16 17 18
    expect(image, isNotNull);
    expect(image.width, 1);
    expect(image.height, 1);
19
  });
20
}