Fix broken Chromebot build (flutter/engine#5018)

This commit is contained in:
Todd Volkert
2018-04-16 15:10:40 -07:00
committed by GitHub
parent e61f21b5be
commit 8d430519b0
4 changed files with 10 additions and 8 deletions

View File

@@ -24,6 +24,10 @@ using tonic::DartInvoke;
using tonic::DartPersistentValue;
using tonic::ToDart;
#ifdef ERROR
#undef ERROR
#endif
namespace blink {
namespace {

View File

@@ -1,2 +1,3 @@
.dart_tool
.packages
pubspec.lock

View File

@@ -7,8 +7,8 @@ import 'dart:ui';
import 'dart:typed_data';
import 'dart:io';
import 'package:flutter_test/flutter_test.dart';
import 'package:path/path.dart' as path;
import 'package:test/test.dart';
const int _kWidth = 10;
const int _kRadius = 2;
@@ -24,8 +24,9 @@ void main() {
expect(new Uint8List.view(data.buffer), getExpectedBytes());
});
test('Handles greyscale images', () async {
Uint8List png = await new File('../resources/4x4.png').readAsBytes();
test('Handles grayscale images', () async {
File grayscaleImage = new File(path.join('flutter', 'testing', 'resources', '4x4.png'));
Uint8List png = await grayscaleImage.readAsBytes();
Completer<Image> completer = new Completer<Image>();
decodeImageFromList(png, (Image image) => completer.complete(image));
Image image = await completer.future;

View File

@@ -1,8 +1,4 @@
name: engine_tests
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
test: any
path: any