Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
fc3307b7
Commit
fc3307b7
authored
Feb 21, 2020
by
XinLei
Committed by
GitHub
Feb 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from alibaba/master
[sync] 2020/2/21
parents
11869d5e
26e82a00
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
5 deletions
+51
-5
test/lib/unit/container_manager_test.dart
test/lib/unit/container_manager_test.dart
+0
-3
test/lib/unit/flutter_boost_test.dart
test/lib/unit/flutter_boost_test.dart
+51
-2
No files found.
test/lib/unit/container_manager_test.dart
View file @
fc3307b7
import
'package:flutter_boost/container/container_manager.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_boost/flutter_boost.dart'
;
...
...
test/lib/unit/flutter_boost_test.dart
View file @
fc3307b7
...
...
@@ -79,7 +79,7 @@ void main() {
expect
(
find
.
text
(
'First'
),
findsOneWidget
);
//open second page
//open second page
firt(1000000)->second(2000000)
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
"second"
,
{},
"2000000"
);
...
...
@@ -89,13 +89,62 @@ void main() {
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
//close sencod page
//close sencod page
firt(1000000)
FlutterBoost
.
containerManager
?.
remove
(
"2000000"
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
expect
(
find
.
text
(
'First'
),
findsOneWidget
);
// second page ,but pageId is 2000001 firt(1000000)->second(2000001)
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
"second"
,
{},
"2000001"
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
expect
(
find
.
text
(
'Second'
),
findsOneWidget
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
//reopen firt page second(2000001)->firt(1000000)
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
"first"
,
{},
"1000000"
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
expect
(
find
.
text
(
'First'
),
findsOneWidget
);
//reopen firt page second(2000001)->firt(1000000)
// reopen second page and pageId is 2000001 firt(1000000)->second(2000001)
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
"second"
,
{},
"2000001"
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
expect
(
find
.
text
(
'Second'
),
findsOneWidget
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
//close firt(1000000) page second(2000001)
FlutterBoost
.
containerManager
?.
remove
(
"1000000"
);
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
expect
(
find
.
text
(
'Second'
),
findsOneWidget
);
// open second(2000003)
ContainerCoordinator
.
singleton
.
nativeContainerDidShow
(
"second"
,
{},
"2000003"
);
await
tester
.
idle
();
expect
(
find
.
text
(
'Second'
),
findsOneWidget
);
});
}
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