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
9aa39192
Commit
9aa39192
authored
Dec 29, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test for flutter_sprites
parent
2508d34d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
2 deletions
+27
-2
flutter_sprites.dart
packages/flutter_sprites/lib/flutter_sprites.dart
+1
-1
color_sequence.dart
packages/flutter_sprites/lib/src/color_sequence.dart
+0
-0
pubspec.yaml
packages/flutter_sprites/pubspec.yaml
+6
-0
color_sequence_test.dart
packages/flutter_sprites/test/color_sequence_test.dart
+19
-0
test.sh
travis/test.sh
+1
-1
No files found.
packages/flutter_sprites/lib/flutter_sprites.dart
View file @
9aa39192
...
...
@@ -26,7 +26,7 @@ import 'package:vector_math/vector_math_64.dart';
part
'src/action.dart'
;
part
'src/action_spline.dart'
;
part
'src/color_se
c
uence.dart'
;
part
'src/color_se
q
uence.dart'
;
part
'src/constraint.dart'
;
part
'src/effect_line.dart'
;
part
'src/image_map.dart'
;
...
...
packages/flutter_sprites/lib/src/color_se
c
uence.dart
→
packages/flutter_sprites/lib/src/color_se
q
uence.dart
View file @
9aa39192
File moved
packages/flutter_sprites/pubspec.yaml
View file @
9aa39192
...
...
@@ -3,7 +3,13 @@ description: A sprite toolkit built on top of Flutter
version
:
0.0.15
author
:
Flutter Authors <flutter-dev@googlegroups.com>
homepage
:
http://flutter.io
dependencies
:
box2d
:
'
>=0.2.0
<0.3.0'
flutter
:
path
:
../flutter
dev_dependencies
:
flutter_tools
:
path
:
../flutter_tools
test
:
any
# constrained by the dependency in flutter_tools
packages/flutter_sprites/test/color_sequence_test.dart
0 → 100644
View file @
9aa39192
// Copyright 2015 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:ui'
;
import
'package:flutter_sprites/flutter_sprites.dart'
;
import
'package:test/test.dart'
;
void
main
(
)
{
test
(
"Simple test of ColorSequence"
,
()
{
List
<
Color
>
colors
=
<
Color
>[
const
Color
(
0xFFFFFFFF
),
const
Color
(
0x000000FF
)];
List
<
double
>
stops
=
<
double
>[
0.0
,
1.0
];
ColorSequence
cs
=
new
ColorSequence
(
colors
,
stops
);
expect
(
cs
.
colorAtPosition
(
0.0
),
equals
(
const
Color
(
0xFFFFFFFF
)));
expect
(
cs
.
colorAtPosition
(
0.5
),
equals
(
const
Color
(
0x7F7F7FFF
)));
expect
(
cs
.
colorAtPosition
(
1.0
),
equals
(
const
Color
(
0x000000FF
)));
});
}
travis/test.sh
View file @
9aa39192
...
...
@@ -8,7 +8,7 @@ flutter analyze --flutter-repo --no-current-directory --no-current-package --con
(
cd
packages/cassowary
;
pub run
test
-j1
)
(
cd
packages/flutter
;
flutter
test
)
# (cd packages/flutter_sprites; ) # No tests to run.
(
cd
packages/flutter_sprites
;
flutter
test
)
(
cd
packages/flutter_tools
;
pub run
test
-j1
)
# (cd packages/flutter_test; ) # No tests to run.
(
cd
packages/flx
;
pub run
test
-j1
)
...
...
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