基础库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

25 rindas
809 B

  1. // This is a basic Flutter widget test.
  2. //
  3. // To perform an interaction with a widget in your test, use the WidgetTester
  4. // utility that Flutter provides. For example, you can send tap and scroll
  5. // gestures. You can also use WidgetTester to find child widgets in the widget
  6. // tree, read text, and verify that the values of widget properties are correct.
  7. import 'package:flutter/material.dart';
  8. import 'package:flutter_test/flutter_test.dart';
  9. void main() {
  10. testWidgets('Verify Platform version', (WidgetTester tester) async {
  11. // Build our app and trigger a frame.
  12. // Verify that platform version is retrieved.
  13. expect(
  14. find.byWidgetPredicate(
  15. (Widget widget) =>
  16. widget is Text && widget.data.startsWith('Running on:'),
  17. ),
  18. findsOneWidget,
  19. );
  20. });
  21. }