Skip to content

Commit 45408d3

Browse files
committed
Merge pull request #38 from abarth/test_flx
The FLX package should test itself
2 parents a53a8fc + 00de308 commit 45408d3

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

packages/flx/pubspec.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ author: Flutter Authors <[email protected]>
44
description: Library for dealing with Flutter bundle (.flx) files
55
homepage: https://github.com/flutter/flutter/tree/master/packages/flx
66
dependencies:
7+
bignum: ^0.0.7
78
asn1lib: ^0.4.1
89
cipher: ^0.7.1
910
crypto: ^0.9.1
10-
path: ^1.3.0
11-
sky_services: 0.0.50
12-
yaml: ^2.1.3
1311

1412
environment:
1513
sdk: '>=1.12.0 <2.0.0'
14+
15+
dev_dependencies:
16+
test: ^0.12.5

packages/unit/test/flx/bundle_test.dart renamed to packages/flx/test/bundle_test.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import 'dart:convert' hide BASE64;
2-
import 'dart:typed_data';
32
import 'dart:io';
3+
import 'dart:typed_data';
44

55
import 'package:crypto/crypto.dart';
6-
import 'package:flx/signing.dart';
76
import 'package:flx/bundle.dart';
8-
import 'package:path/path.dart' as path;
7+
import 'package:flx/signing.dart';
98
import 'package:test/test.dart';
109

1110
main() async {
@@ -26,7 +25,7 @@ main() async {
2625

2726
// Create a temp dir and file for the bundle.
2827
Directory tempDir = await Directory.systemTemp.createTempSync('bundle_test');
29-
String bundlePath = path.join(tempDir.path, 'bundle.flx');
28+
String bundlePath = tempDir.path + '/bundle.flx';
3029

3130
AsymmetricKeyPair keyPair = keyPairFromPrivateKeyBytes(kPrivateKeyDER);
3231
Map<String, dynamic> manifest = JSON.decode(UTF8.decode(

packages/updater/lib/main.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
// found in the LICENSE file.
44

55
import 'dart:async';
6-
import 'dart:convert';
7-
import 'dart:math';
86
import 'dart:io';
9-
import 'dart:typed_data';
107

118
import 'package:mojo/core.dart';
129
import 'package:flutter/services.dart';

travis/setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ set -ex
44
pub global activate tuneup
55

66
(cd packages/cassowary; pub get)
7-
(cd packages/newton; pub get)
87
(cd packages/flutter_tools; pub get)
8+
(cd packages/flx; pub get)
9+
(cd packages/newton; pub get)
910
(cd packages/unit; pub get)
1011

1112
./travis/download_tester.py packages/unit/packages/sky_engine/REVISION bin/cache/travis/out/Debug

travis/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
set -ex
33

44
(cd packages/cassowary; pub global run tuneup check; pub run test -j1)
5-
(cd packages/newton; pub global run tuneup check; pub run test -j1)
65
(cd packages/flutter_tools; pub global run tuneup check; pub run test -j1)
6+
(cd packages/flx; pub global run tuneup check; pub run test -j1)
7+
(cd packages/newton; pub global run tuneup check; pub run test -j1)
8+
79
./dev/run_tests --engine-dir bin/cache/travis

0 commit comments

Comments
 (0)