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
942d1fa6
Commit
942d1fa6
authored
Sep 14, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1157 from Hixie/minor-fixes
Minor cleanups (spelling mistakes, unneeded casts)
parents
f81175eb
0376c35a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
stateful_components_test.dart
packages/unit/test/widget/stateful_components_test.dart
+8
-8
No files found.
packages/unit/test/widget/stateful_components_test.dart
View file @
942d1fa6
...
...
@@ -21,12 +21,12 @@ class InnerComponent extends StatefulComponent {
}
}
class
Out
t
erContainer
extends
StatefulComponent
{
Out
t
erContainer
({
this
.
child
});
class
OuterContainer
extends
StatefulComponent
{
OuterContainer
({
this
.
child
});
InnerComponent
child
;
void
syncConstructorArguments
(
Out
t
erContainer
source
)
{
void
syncConstructorArguments
(
OuterContainer
source
)
{
child
=
source
.
child
;
}
...
...
@@ -41,22 +41,22 @@ void main() {
WidgetTester
tester
=
new
WidgetTester
();
InnerComponent
inner
;
Out
terContainer
out
ter
;
Out
erContainer
ou
ter
;
tester
.
pumpFrame
(()
{
return
new
Out
t
erContainer
(
child:
new
InnerComponent
());
return
new
OuterContainer
(
child:
new
InnerComponent
());
});
tester
.
pumpFrame
(()
{
inner
=
new
InnerComponent
();
out
ter
=
new
Out
terContainer
(
child:
inner
);
return
out
t
er
;
out
er
=
new
Ou
terContainer
(
child:
inner
);
return
outer
;
});
expect
(
inner
.
_didInitState
,
isFalse
);
expect
(
inner
.
parent
,
isNull
);
out
t
er
.
setState
(()
{});
outer
.
setState
(()
{});
scheduler
.
beginFrame
(
0.0
);
expect
(
inner
.
_didInitState
,
isFalse
);
...
...
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