Commit 496e857b authored by justin's avatar justin Committed by Luke

合并冲突

parent 8a91d818
...@@ -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);
} // }
}); // });
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment