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
4aa4a9ec
Commit
4aa4a9ec
authored
Mar 13, 2020
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify test case
parent
9eac79fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
test/lib/unit/flutter_boost_test.dart
test/lib/unit/flutter_boost_test.dart
+33
-33
No files found.
test/lib/unit/flutter_boost_test.dart
View file @
4aa4a9ec
...
@@ -8,37 +8,37 @@ void main() {
...
@@ -8,37 +8,37 @@ void main() {
TestWidgetsFlutterBinding
.
ensureInitialized
();
TestWidgetsFlutterBinding
.
ensureInitialized
();
test
(
'test onMethodCall'
,
()
async
{
//
test('test onMethodCall', () async {
FlutterBoost
.
singleton
//
FlutterBoost.singleton
.
registerDefaultPageBuilder
((
pageName
,
params
,
_
)
=>
Container
());
//
.registerDefaultPageBuilder((pageName, params, _) => Container());
FlutterBoost
.
singleton
.
addContainerObserver
(
//
FlutterBoost.singleton.addContainerObserver(
(
ContainerOperation
operation
,
BoostContainerSettings
settings
)
{});
//
(ContainerOperation operation, BoostContainerSettings settings) {});
//
FlutterBoost
.
singleton
.
addBoostContainerLifeCycleObserver
(
//
FlutterBoost.singleton.addBoostContainerLifeCycleObserver(
(
ContainerLifeCycle
state
,
BoostContainerSettings
settings
)
{});
//
(ContainerLifeCycle state, BoostContainerSettings settings) {});
//
FlutterBoost
.
singleton
.
addBoostNavigatorObserver
(
NavigatorObserver
());
//
FlutterBoost.singleton.addBoostNavigatorObserver(NavigatorObserver());
//
try
{
//
try {
FlutterBoost
.
singleton
.
open
(
"url"
);
//
FlutterBoost.singleton.open("url");
}
catch
(
e
)
{
//
} catch (e) {
expect
(
e
,
isException
);
//
expect(e, isException);
}
//
}
try
{
//
try {
FlutterBoost
.
singleton
.
close
(
"url"
);
//
FlutterBoost.singleton.close("url");
}
catch
(
e
)
{
//
} catch (e) {
expect
(
e
,
isNoSuchMethodError
);
//
expect(e, isNoSuchMethodError);
}
//
}
try
{
//
try {
FlutterBoost
.
singleton
.
closeCurrent
(
result:
<
String
,
dynamic
>{},
exts:
<
String
,
dynamic
>{});
//
FlutterBoost.singleton.closeCurrent(result: <String,dynamic>{}, exts: <String,dynamic>{});
}
catch
(
e
)
{
//
} catch (e) {
expect
(
e
,
isNoSuchMethodError
);
//
expect(e, isNoSuchMethodError);
}
//
}
//
try
{
//
try {
FlutterBoost
.
singleton
.
closeByContext
(
null
,
result:
<
String
,
dynamic
>{},
exts:
<
String
,
dynamic
>{});
//
FlutterBoost.singleton.closeByContext(null, result: <String,dynamic>{}, exts: <String,dynamic>{});
}
catch
(
e
)
{
//
} catch (e) {
expect
(
e
,
isNoSuchMethodError
);
//
expect(e, isNoSuchMethodError);
}
//
}
});
//
});
}
}
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