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
fd3884b4
Commit
fd3884b4
authored
Aug 26, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn big_circle.dart into a test
Fixes #829
parent
1a15cb2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
align_test.dart
packages/unit/test/widget/align_test.dart
+1
-1
box_decoration_test.dart
packages/unit/test/widget/box_decoration_test.dart
+13
-13
No files found.
packages/unit/test/widget/align_test.dart
View file @
fd3884b4
...
...
@@ -4,7 +4,7 @@ import 'package:test/test.dart';
import
'build_utils.dart'
;
void
main
(
)
{
test
(
'
Global key mutate during iteration
'
,
()
{
test
(
'
Align smoke test
'
,
()
{
WidgetTester
tester
=
new
WidgetTester
();
tester
.
pumpFrame
(()
{
...
...
examples/widgets/big_circle
.dart
→
packages/unit/test/widget/box_decoration_test
.dart
View file @
fd3884b4
// 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
'package:sky/widgets.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/widgets.dart'
;
import
'package:test/test.dart'
;
import
'build_utils.dart'
;
class
BigCircleApp
extends
App
{
Widget
build
()
{
return
new
Container
(
void
main
(
)
{
test
(
'Circles can have uniform borders'
,
()
{
WidgetTester
tester
=
new
WidgetTester
();
tester
.
pumpFrame
(()
{
return
new
Container
(
padding:
new
EdgeDims
.
all
(
50.0
),
decoration:
new
BoxDecoration
(
shape:
Shape
.
circle
,
border:
new
Border
.
all
(
width:
10.0
,
color:
const
Color
(
0x80FF00FF
)),
backgroundColor:
colors
.
Teal
[
600
]
)
);
}
}
);
});
void
main
(
)
{
runApp
(
new
BigCircleApp
());
});
}
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