You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
937 B
25 lines
937 B
// This is a basic Flutter integration test.
|
|
//
|
|
// Since integration tests run in a full Flutter application, they can interact
|
|
// with the host side of a plugin implementation, unlike Dart unit tests.
|
|
//
|
|
// For more information about Flutter integration tests, please see
|
|
// https://flutter.dev/to/integration-testing
|
|
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:integration_test/integration_test.dart';
|
|
|
|
import 'package:flutter_cocos_view/flutter_cocos_view.dart';
|
|
|
|
void main() {
|
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
testWidgets('getPlatformVersion test', (WidgetTester tester) async {
|
|
final FlutterCocosView plugin = FlutterCocosView();
|
|
final String? version = await plugin.getPlatformVersion();
|
|
// The version string depends on the host platform running the test, so
|
|
// just assert that some non-empty string is returned.
|
|
expect(version?.isNotEmpty, true);
|
|
});
|
|
}
|
|
|