Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
45408d3e
Commit
45408d3e
authored
Nov 07, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38 from abarth/test_flx
The FLX package should test itself
parents
a53a8fc9
00de3081
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
pubspec.yaml
packages/flx/pubspec.yaml
+4
-3
bundle_test.dart
packages/flx/test/bundle_test.dart
+3
-4
signing_test.dart
packages/flx/test/signing_test.dart
+0
-0
main.dart
packages/updater/lib/main.dart
+0
-3
setup.sh
travis/setup.sh
+2
-1
test.sh
travis/test.sh
+3
-1
No files found.
packages/flx/pubspec.yaml
View file @
45408d3e
...
...
@@ -4,12 +4,13 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
description
:
Library for dealing with Flutter bundle (.flx) files
homepage
:
https://github.com/flutter/flutter/tree/master/packages/flx
dependencies
:
bignum
:
^0.0.7
asn1lib
:
^0.4.1
cipher
:
^0.7.1
crypto
:
^0.9.1
path
:
^1.3.0
sky_services
:
0.0.50
yaml
:
^2.1.3
environment
:
sdk
:
'
>=1.12.0
<2.0.0'
dev_dependencies
:
test
:
^0.12.5
packages/
unit/test/flx
/bundle_test.dart
→
packages/
flx/test
/bundle_test.dart
View file @
45408d3e
import
'dart:convert'
hide
BASE64
;
import
'dart:typed_data'
;
import
'dart:io'
;
import
'dart:typed_data'
;
import
'package:crypto/crypto.dart'
;
import
'package:flx/signing.dart'
;
import
'package:flx/bundle.dart'
;
import
'package:
path/path.dart'
as
path
;
import
'package:
flx/signing.dart'
;
import
'package:test/test.dart'
;
main
()
async
{
...
...
@@ -26,7 +25,7 @@ main() async {
// Create a temp dir and file for the bundle.
Directory
tempDir
=
await
Directory
.
systemTemp
.
createTempSync
(
'bundle_test'
);
String
bundlePath
=
path
.
join
(
tempDir
.
path
,
'bundle.flx'
)
;
String
bundlePath
=
tempDir
.
path
+
'/bundle.flx'
;
AsymmetricKeyPair
keyPair
=
keyPairFromPrivateKeyBytes
(
kPrivateKeyDER
);
Map
<
String
,
dynamic
>
manifest
=
JSON
.
decode
(
UTF8
.
decode
(
...
...
packages/
unit/test/flx
/signing_test.dart
→
packages/
flx/test
/signing_test.dart
View file @
45408d3e
File moved
packages/updater/lib/main.dart
View file @
45408d3e
...
...
@@ -3,10 +3,7 @@
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:math'
;
import
'dart:io'
;
import
'dart:typed_data'
;
import
'package:mojo/core.dart'
;
import
'package:flutter/services.dart'
;
...
...
travis/setup.sh
View file @
45408d3e
...
...
@@ -4,8 +4,9 @@ set -ex
pub global activate tuneup
(
cd
packages/cassowary
;
pub get
)
(
cd
packages/newton
;
pub get
)
(
cd
packages/flutter_tools
;
pub get
)
(
cd
packages/flx
;
pub get
)
(
cd
packages/newton
;
pub get
)
(
cd
packages/unit
;
pub get
)
./travis/download_tester.py packages/unit/packages/sky_engine/REVISION bin/cache/travis/out/Debug
travis/test.sh
View file @
45408d3e
...
...
@@ -2,6 +2,8 @@
set
-ex
(
cd
packages/cassowary
;
pub global run tuneup check
;
pub run
test
-j1
)
(
cd
packages/newton
;
pub global run tuneup check
;
pub run
test
-j1
)
(
cd
packages/flutter_tools
;
pub global run tuneup check
;
pub run
test
-j1
)
(
cd
packages/flx
;
pub global run tuneup check
;
pub run
test
-j1
)
(
cd
packages/newton
;
pub global run tuneup check
;
pub run
test
-j1
)
./dev/run_tests
--engine-dir
bin/cache/travis
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment