Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
eba194f7
Unverified
Commit
eba194f7
authored
May 21, 2018
by
Konstantin Scheglov
Committed by
GitHub
May 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark testWidgets() and testUsingContext() with @isTest. (#17772)
parent
be6501a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
widget_tester.dart
packages/flutter_test/lib/src/widget_tester.dart
+2
-0
context.dart
packages/flutter_tools/test/src/context.dart
+2
-0
No files found.
packages/flutter_test/lib/src/widget_tester.dart
View file @
eba194f7
...
...
@@ -10,6 +10,7 @@ import 'package:flutter/material.dart';
import
'package:flutter/rendering.dart'
;
import
'package:flutter/scheduler.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:meta/meta.dart'
;
import
'package:test/test.dart'
as
test_package
;
import
'all_elements.dart'
;
...
...
@@ -48,6 +49,7 @@ typedef Future<Null> WidgetTesterCallback(WidgetTester widgetTester);
/// expect(find.text('Success'), findsOneWidget);
/// });
/// ```
@isTest
void
testWidgets
(
String
description
,
WidgetTesterCallback
callback
,
{
bool
skip:
false
,
test_package
.
Timeout
timeout
...
...
packages/flutter_tools/test/src/context.dart
View file @
eba194f7
...
...
@@ -21,6 +21,7 @@ import 'package:flutter_tools/src/ios/simulators.dart';
import
'package:flutter_tools/src/ios/xcodeproj.dart'
;
import
'package:flutter_tools/src/usage.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'package:meta/meta.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:quiver/time.dart'
;
import
'package:test/test.dart'
;
...
...
@@ -37,6 +38,7 @@ MockDoctor get testDoctor => context[Doctor];
typedef
void
ContextInitializer
(
AppContext
testContext
);
@isTest
void
testUsingContext
(
String
description
,
dynamic
testMethod
(),
{
Timeout
timeout
,
Map
<
Type
,
Generator
>
overrides:
const
<
Type
,
Generator
>{},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment