Download flutter/examples/hello_world/test/hello_test.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/examples/hello_world/test/hello_test.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/examples/hello_world/test/hello_test.dart
-
curl -L -o hello_test.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/examples/hello_world/test/hello_test.dart
552 Bytes
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:hello_world/main.dart' as hello_world; | |
| void main() { | |
| testWidgets('Hello world smoke test', (WidgetTester tester) async { | |
| hello_world.main(); // builds the app and schedules a frame but doesn't trigger one | |
| await tester.pump(); // triggers a frame | |
| expect(find.text('Hello, world!'), findsOneWidget); | |
| }); | |
| } | |