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
091a74da
Unverified
Commit
091a74da
authored
Feb 01, 2021
by
Anas35
Committed by
GitHub
Feb 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed new keyword (#75049)
parent
014e6890
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
finders.dart
packages/flutter_test/lib/src/finders.dart
+6
-6
test_compat.dart
packages/flutter_test/lib/src/test_compat.dart
+3
-3
widget_tester.dart
packages/flutter_test/lib/src/widget_tester.dart
+3
-3
No files found.
packages/flutter_test/lib/src/finders.dart
View file @
091a74da
...
...
@@ -58,8 +58,8 @@ class CommonFinders {
///
/// ```dart
/// // Suppose you have a button with text 'Update' in it:
///
new
Button(
/// child:
new
Text('Update')
/// Button(
/// child: Text('Update')
/// )
///
/// // You can find and tap on it like this:
...
...
@@ -125,8 +125,8 @@ class CommonFinders {
///
/// ```dart
/// // Suppose you have a button with icon 'arrow_forward' in it:
///
new
Button(
/// child:
new
Icon(Icons.arrow_forward)
/// Button(
/// child: Icon(Icons.arrow_forward)
/// )
///
/// // You can find and tap on it like this:
...
...
@@ -167,8 +167,8 @@ class CommonFinders {
///
/// ```dart
/// // Suppose you have a button created like this:
/// Widget myButton =
new
Button(
/// child:
new
Text('Update')
/// Widget myButton = Button(
/// child: Text('Update')
/// );
///
/// // You can find and tap on it like this:
...
...
packages/flutter_test/lib/src/test_compat.dart
View file @
091a74da
...
...
@@ -144,11 +144,11 @@ Future<void> _runSkippedTest(Suite suiteConfig, Test test, List<Group> parents,
/// // ...
/// }, onPlatform: {
/// // This test is especially slow on Windows.
/// 'windows':
new
Timeout.factor(2),
/// 'windows': Timeout.factor(2),
/// 'browser': [
///
new
Skip('TODO: add browser support'),
/// Skip('TODO: add browser support'),
/// // This will be slow on browsers once it works on them.
///
new
Timeout.factor(2)
/// Timeout.factor(2)
/// ]
/// });
///
...
...
packages/flutter_test/lib/src/widget_tester.dart
View file @
091a74da
...
...
@@ -100,7 +100,7 @@ typedef WidgetTesterCallback = Future<void> Function(WidgetTester widgetTester);
///
/// ```dart
/// testWidgets('MyWidget', (WidgetTester tester) async {
/// await tester.pumpWidget(
new
MyWidget());
/// await tester.pumpWidget(MyWidget());
/// await tester.tap(find.text('Save'));
/// expect(find.text('Success'), findsOneWidget);
/// });
...
...
@@ -371,8 +371,8 @@ const String kDebugWarning = '''
/// main() async {
/// assert(false); // fail in checked mode
/// await benchmarkWidgets((WidgetTester tester) async {
/// await tester.pumpWidget(
new
MyWidget());
/// final Stopwatch timer =
new
Stopwatch()..start();
/// await tester.pumpWidget(MyWidget());
/// final Stopwatch timer = Stopwatch()..start();
/// for (int index = 0; index < 10000; index += 1) {
/// await tester.tap(find.text('Tap me'));
/// await tester.pump();
...
...
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