mirror of
https://github.com/chenasraf/webview_cef.git
synced 2026-05-18 01:49:03 +00:00
Merge pull request #41 from mantreshkhurana/Dart-Format
Fixed Dart Code Format - 140/140 Pub Points
This commit is contained in:
@@ -18,8 +18,8 @@ void main() {
|
||||
// Verify that platform version is retrieved.
|
||||
expect(
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) => widget is Text &&
|
||||
widget.data!.startsWith('Running on:'),
|
||||
(Widget widget) =>
|
||||
widget is Text && widget.data!.startsWith('Running on:'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export 'src/webview.dart';
|
||||
export 'src/webview_events_listener.dart';
|
||||
export 'src/webview_events_listener.dart';
|
||||
|
||||
@@ -4,10 +4,9 @@ import 'package:webview_cef/webview_cef_platform_interface.dart';
|
||||
import 'package:webview_cef/webview_cef_method_channel.dart';
|
||||
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
|
||||
|
||||
class MockWebviewCefPlatform
|
||||
class MockWebviewCefPlatform
|
||||
with MockPlatformInterfaceMixin
|
||||
implements WebviewCefPlatform {
|
||||
|
||||
@override
|
||||
Future<String?> getPlatformVersion() => Future.value('42');
|
||||
}
|
||||
@@ -23,7 +22,7 @@ void main() {
|
||||
WebviewCef webviewCefPlugin = WebviewCef();
|
||||
MockWebviewCefPlatform fakePlatform = MockWebviewCefPlatform();
|
||||
WebviewCefPlatform.instance = fakePlatform;
|
||||
|
||||
|
||||
expect(await webviewCefPlugin.getPlatformVersion(), '42');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user