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
496e857b
Commit
496e857b
authored
Mar 13, 2020
by
justin
Committed by
Luke
Mar 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并冲突
parent
8a91d818
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
37 deletions
+33
-37
test/lib/unit/flutter_boost_test.dart
test/lib/unit/flutter_boost_test.dart
+33
-37
No files found.
test/lib/unit/flutter_boost_test.dart
View file @
496e857b
...
@@ -7,42 +7,38 @@ import 'package:flutter_test/flutter_test.dart';
...
@@ -7,42 +7,38 @@ import 'package:flutter_test/flutter_test.dart';
void
main
(
)
{
void
main
(
)
{
TestWidgetsFlutterBinding
.
ensureInitialized
();
TestWidgetsFlutterBinding
.
ensureInitialized
();
testWidgets
(
'test iOS edge swipe then drop back at starting point works'
,
(
WidgetTester
tester
)
async
{
//push app
});
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
,
isNoSuchMethodError
);
// 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