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
616f9bcf
Unverified
Commit
616f9bcf
authored
Aug 30, 2021
by
Kate Lovett
Committed by
GitHub
Aug 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tag support for executing reduced test sets (#86821)
parent
4e171113
Changes
70
Hide whitespace changes
Inline
Side-by-side
Showing
70 changed files
with
495 additions
and
42 deletions
+495
-42
analyze.dart
dev/bots/analyze.dart
+70
-0
test.dart
dev/bots/test.dart
+8
-0
golden_class.dart
...st/analyze-test-input/root/packages/foo/golden_class.dart
+9
-0
golden_doc.dart
...test/analyze-test-input/root/packages/foo/golden_doc.dart
+42
-0
golden_ignore.dart
...t/analyze-test-input/root/packages/foo/golden_ignore.dart
+16
-0
golden_missing_tag.dart
...lyze-test-input/root/packages/foo/golden_missing_tag.dart
+14
-0
golden_no_tag.dart
...t/analyze-test-input/root/packages/foo/golden_no_tag.dart
+11
-0
analyze_test.dart
dev/bots/test/analyze_test.dart
+45
-0
dart_test.yaml
packages/flutter/dart_test.yaml
+3
-0
animation_sheet_test.dart
packages/flutter/test/animation/animation_sheet_test.dart
+4
-0
live_binding_test.dart
packages/flutter/test/animation/live_binding_test.dart
+4
-0
activity_indicator_test.dart
packages/flutter/test/cupertino/activity_indicator_test.dart
+4
-0
date_picker_test.dart
packages/flutter/test/cupertino/date_picker_test.dart
+9
-5
dialog_test.dart
packages/flutter/test/cupertino/dialog_test.dart
+4
-0
nav_bar_test.dart
packages/flutter/test/cupertino/nav_bar_test.dart
+4
-0
segmented_control_test.dart
packages/flutter/test/cupertino/segmented_control_test.dart
+4
-0
switch_test.dart
packages/flutter/test/cupertino/switch_test.dart
+4
-0
text_field_test.dart
packages/flutter/test/cupertino/text_field_test.dart
+9
-5
text_selection_test.dart
packages/flutter/test/cupertino/text_selection_test.dart
+4
-0
bottom_app_bar_test.dart
packages/flutter/test/material/bottom_app_bar_test.dart
+4
-0
bottom_app_bar_theme_test.dart
...ages/flutter/test/material/bottom_app_bar_theme_test.dart
+4
-0
bottom_navigation_bar_test.dart
...ges/flutter/test/material/bottom_navigation_bar_test.dart
+4
-0
card_theme_test.dart
packages/flutter/test/material/card_theme_test.dart
+4
-0
circle_avatar_test.dart
packages/flutter/test/material/circle_avatar_test.dart
+4
-0
dialog_theme_test.dart
packages/flutter/test/material/dialog_theme_test.dart
+4
-0
dropdown_test.dart
packages/flutter/test/material/dropdown_test.dart
+9
-5
flexible_space_bar_stretch_mode_test.dart
...r/test/material/flexible_space_bar_stretch_mode_test.dart
+4
-0
floating_action_button_test.dart
...es/flutter/test/material/floating_action_button_test.dart
+4
-0
flutter_logo_test.dart
packages/flutter/test/material/flutter_logo_test.dart
+4
-0
icons_test.dart
packages/flutter/test/material/icons_test.dart
+4
-0
input_decorator_test.dart
packages/flutter/test/material/input_decorator_test.dart
+4
-0
material_test.dart
packages/flutter/test/material/material_test.dart
+4
-0
progress_indicator_test.dart
packages/flutter/test/material/progress_indicator_test.dart
+9
-5
radio_test.dart
packages/flutter/test/material/radio_test.dart
+4
-0
reorderable_list_test.dart
packages/flutter/test/material/reorderable_list_test.dart
+4
-0
snack_bar_test.dart
packages/flutter/test/material/snack_bar_test.dart
+4
-0
switch_test.dart
packages/flutter/test/material/switch_test.dart
+4
-0
tab_bar_theme_test.dart
packages/flutter/test/material/tab_bar_theme_test.dart
+4
-0
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+9
-5
text_selection_test.dart
packages/flutter/test/material/text_selection_test.dart
+4
-0
toggle_buttons_test.dart
packages/flutter/test/material/toggle_buttons_test.dart
+4
-0
box_painter_test.dart
packages/flutter/test/painting/box_painter_test.dart
+4
-0
continuous_rectangle_border_test.dart
...utter/test/painting/continuous_rectangle_border_test.dart
+4
-0
flutter_logo_test.dart
packages/flutter/test/painting/flutter_logo_test.dart
+4
-0
gradient_test.dart
packages/flutter/test/painting/gradient_test.dart
+4
-0
localized_fonts_test.dart
packages/flutter/test/rendering/localized_fonts_test.dart
+4
-0
backdrop_filter_test.dart
packages/flutter/test/widgets/backdrop_filter_test.dart
+4
-0
basic_test.dart
packages/flutter/test/widgets/basic_test.dart
+4
-0
clip_test.dart
packages/flutter/test/widgets/clip_test.dart
+9
-5
color_filter_test.dart
packages/flutter/test/widgets/color_filter_test.dart
+4
-0
container_test.dart
packages/flutter/test/widgets/container_test.dart
+4
-0
editable_text_cursor_test.dart
packages/flutter/test/widgets/editable_text_cursor_test.dart
+4
-0
image_filter_quality_test.dart
packages/flutter/test/widgets/image_filter_quality_test.dart
+4
-0
image_filter_test.dart
packages/flutter/test/widgets/image_filter_test.dart
+4
-0
image_test.dart
packages/flutter/test/widgets/image_test.dart
+4
-0
invert_colors_test.dart
packages/flutter/test/widgets/invert_colors_test.dart
+4
-0
list_wheel_scroll_view_test.dart
...ges/flutter/test/widgets/list_wheel_scroll_view_test.dart
+4
-0
opacity_test.dart
packages/flutter/test/widgets/opacity_test.dart
+4
-0
overscroll_stretch_indicator_test.dart
...utter/test/widgets/overscroll_stretch_indicator_test.dart
+4
-0
page_route_builder_test.dart
packages/flutter/test/widgets/page_route_builder_test.dart
+4
-0
physical_model_test.dart
packages/flutter/test/widgets/physical_model_test.dart
+4
-0
selectable_text_test.dart
packages/flutter/test/widgets/selectable_text_test.dart
+4
-0
shader_mask_test.dart
packages/flutter/test/widgets/shader_mask_test.dart
+4
-0
shadow_test.dart
packages/flutter/test/widgets/shadow_test.dart
+4
-0
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+4
-0
transform_test.dart
packages/flutter/test/widgets/transform_test.dart
+4
-0
widget_inspector_test.dart
packages/flutter/test/widgets/widget_inspector_test.dart
+14
-10
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+2
-1
matchers_test.dart
packages/flutter_test/test/matchers_test.dart
+2
-0
test.dart
packages/flutter_tools/lib/src/commands/test.dart
+1
-1
No files found.
dev/bots/analyze.dart
View file @
616f9bcf
...
@@ -23,6 +23,7 @@ import 'utils.dart';
...
@@ -23,6 +23,7 @@ import 'utils.dart';
final
String
flutterRoot
=
path
.
dirname
(
path
.
dirname
(
path
.
dirname
(
path
.
fromUri
(
Platform
.
script
))));
final
String
flutterRoot
=
path
.
dirname
(
path
.
dirname
(
path
.
dirname
(
path
.
fromUri
(
Platform
.
script
))));
final
String
flutter
=
path
.
join
(
flutterRoot
,
'bin'
,
Platform
.
isWindows
?
'flutter.bat'
:
'flutter'
);
final
String
flutter
=
path
.
join
(
flutterRoot
,
'bin'
,
Platform
.
isWindows
?
'flutter.bat'
:
'flutter'
);
final
String
flutterPackages
=
path
.
join
(
flutterRoot
,
'packages'
);
final
String
dart
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
Platform
.
isWindows
?
'dart.exe'
:
'dart'
);
final
String
dart
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
Platform
.
isWindows
?
'dart.exe'
:
'dart'
);
final
String
pub
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
Platform
.
isWindows
?
'pub.bat'
:
'pub'
);
final
String
pub
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
Platform
.
isWindows
?
'pub.bat'
:
'pub'
);
final
String
pubCache
=
path
.
join
(
flutterRoot
,
'.pub-cache'
);
final
String
pubCache
=
path
.
join
(
flutterRoot
,
'.pub-cache'
);
...
@@ -65,6 +66,9 @@ Future<void> run(List<String> arguments) async {
...
@@ -65,6 +66,9 @@ Future<void> run(List<String> arguments) async {
print
(
'
$clock
Deprecations...'
);
print
(
'
$clock
Deprecations...'
);
await
verifyDeprecations
(
flutterRoot
);
await
verifyDeprecations
(
flutterRoot
);
print
(
'
$clock
Goldens...'
);
await
verifyGoldenTags
(
flutterPackages
);
print
(
'
$clock
Skip test comments...'
);
print
(
'
$clock
Skip test comments...'
);
await
verifySkipTestComments
(
flutterRoot
);
await
verifySkipTestComments
(
flutterRoot
);
...
@@ -146,6 +150,72 @@ Future<void> run(List<String> arguments) async {
...
@@ -146,6 +150,72 @@ Future<void> run(List<String> arguments) async {
// TESTS
// TESTS
final
RegExp
_findGoldenTestPattern
=
RegExp
(
r'matchesGoldenFile\('
);
final
RegExp
_findGoldenDefinitionPattern
=
RegExp
(
r'matchesGoldenFile\(Object'
);
final
RegExp
_leadingComment
=
RegExp
(
r'\/\/'
);
final
RegExp
_goldenTagPattern1
=
RegExp
(
r'@Tags\('
);
final
RegExp
_goldenTagPattern2
=
RegExp
(
r"'reduced-test-set'"
);
/// Only golden file tests in the flutter package are subject to reduced testing,
/// for example, invocations in flutter_test to validate comparator
/// functionality do not require tagging.
const
String
_ignoreGoldenTag
=
'// flutter_ignore: golden_tag (see analyze.dart)'
;
const
String
_ignoreGoldenTagForFile
=
'// flutter_ignore_for_file: golden_tag (see analyze.dart)'
;
Future
<
void
>
verifyGoldenTags
(
String
workingDirectory
,
{
int
minimumMatches
=
2000
})
async
{
final
List
<
String
>
errors
=
<
String
>[];
await
for
(
final
File
file
in
_allFiles
(
workingDirectory
,
'dart'
,
minimumMatches:
minimumMatches
))
{
bool
needsTag
=
false
;
bool
hasTagNotation
=
false
;
bool
hasReducedTag
=
false
;
bool
ignoreForFile
=
false
;
final
List
<
String
>
lines
=
file
.
readAsLinesSync
();
for
(
final
String
line
in
lines
)
{
if
(
line
.
contains
(
_goldenTagPattern1
))
{
hasTagNotation
=
true
;
}
if
(
line
.
contains
(
_goldenTagPattern2
))
{
hasReducedTag
=
true
;
}
if
(
line
.
contains
(
_findGoldenTestPattern
)
&&
!
line
.
contains
(
_findGoldenDefinitionPattern
)
&&
!
line
.
contains
(
_leadingComment
)
&&
!
line
.
contains
(
_ignoreGoldenTag
))
{
needsTag
=
true
;
}
if
(
line
.
contains
(
_ignoreGoldenTagForFile
))
{
ignoreForFile
=
true
;
}
// If the file is being ignored or a reduced test tag is already accounted
// for, skip parsing the rest of the lines for golden file tests.
if
(
ignoreForFile
||
(
hasTagNotation
&&
hasReducedTag
))
{
break
;
}
}
// If a reduced test tag is already accounted for, move on to the next file.
if
(
ignoreForFile
||
(
hasTagNotation
&&
hasReducedTag
))
{
continue
;
}
// If there are golden file tests, ensure they are tagged for all reduced
// test environments.
if
(
needsTag
)
{
if
(!
hasTagNotation
)
{
errors
.
add
(
'
${file.path}
: Files containing golden tests must be tagged using '
'`@Tags(...)` at the top of the file before import statements.'
);
}
else
if
(!
hasReducedTag
)
{
errors
.
add
(
'
${file.path}
: Files containing golden tests must be tagged with '
"'reduced-test-set'."
);
}
}
}
if
(
errors
.
isNotEmpty
)
{
exitWithError
(<
String
>[
...
errors
,
'
${bold}
See: https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter
$reset
'
,
]);
}
}
final
RegExp
_findDeprecationPattern
=
RegExp
(
r'@[Dd]eprecated'
);
final
RegExp
_findDeprecationPattern
=
RegExp
(
r'@[Dd]eprecated'
);
final
RegExp
_deprecationPattern1
=
RegExp
(
r'^( *)@Deprecated\($'
);
// flutter_ignore: deprecation_syntax (see analyze.dart)
final
RegExp
_deprecationPattern1
=
RegExp
(
r'^( *)@Deprecated\($'
);
// flutter_ignore: deprecation_syntax (see analyze.dart)
final
RegExp
_deprecationPattern2
=
RegExp
(
r"^ *'(.+) '$"
);
final
RegExp
_deprecationPattern2
=
RegExp
(
r"^ *'(.+) '$"
);
...
...
dev/bots/test.dart
View file @
616f9bcf
...
@@ -1565,10 +1565,18 @@ Future<void> _runFlutterTest(String workingDirectory, {
...
@@ -1565,10 +1565,18 @@ Future<void> _runFlutterTest(String workingDirectory, {
})
async
{
})
async
{
assert
(!
printOutput
||
outputChecker
==
null
,
'Output either can be printed or checked but not both'
);
assert
(!
printOutput
||
outputChecker
==
null
,
'Output either can be printed or checked but not both'
);
final
List
<
String
>
tags
=
<
String
>[];
// Recipe configured reduced test shards will only execute tests with the
// appropriate tag.
if
((
Platform
.
environment
[
'REDUCED_TEST_SET'
]
??
'False'
)
==
'True'
)
{
tags
.
addAll
(<
String
>[
'-t'
,
'reduced-test-set'
]);
}
final
List
<
String
>
args
=
<
String
>[
final
List
<
String
>
args
=
<
String
>[
'test'
,
'test'
,
if
(
shuffleTests
)
'--test-randomize-ordering-seed=
$shuffleSeed
'
,
if
(
shuffleTests
)
'--test-randomize-ordering-seed=
$shuffleSeed
'
,
...
options
,
...
options
,
...
tags
,
...
flutterTestArgs
,
...
flutterTestArgs
,
];
];
...
...
dev/bots/test/analyze-test-input/root/packages/foo/golden_class.dart
0 → 100644
View file @
616f9bcf
// 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.
/// Mack class definition for testing.
/// Should not be tag-enforced, no analysis failures should be found.
void
matchesGoldenFile
(
Object
key
)
{
return
;
}
dev/bots/test/analyze-test-input/root/packages/foo/golden_doc.dart
0 → 100644
View file @
616f9bcf
// 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.
/// Sample Code
///
/// Should not be tag-enforced, no analysis failures should be found.
///
/// {@tool snippet}
/// Sample invocations of [matchesGoldenFile].
///
/// ```dart
/// await expectLater(
/// find.text('Save'),
/// matchesGoldenFile('save.png'),
/// );
///
/// await expectLater(
/// image,
/// matchesGoldenFile('save.png'),
/// );
///
/// await expectLater(
/// imageFuture,
/// matchesGoldenFile(
/// 'save.png',
/// version: 2,
/// ),
/// );
///
/// await expectLater(
/// find.byType(MyWidget),
/// matchesGoldenFile('goldens/myWidget.png'),
/// );
/// ```
/// {@end-tool}
///
// Other comments
// matchesGoldenFile('comment.png');
String
literal
=
'matchesGoldenFile()'
;
// flutter_ignore: golden_tag (see analyze.dart)
dev/bots/test/analyze-test-input/root/packages/foo/golden_ignore.dart
0 → 100644
View file @
616f9bcf
// 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.
// This would fail analysis, but it is ignored
// flutter_ignore_for_file: golden_tag (see analyze.dart)
@Tags
(<
String
>[
'some-other-tag'
])
import
'package:test/test.dart'
;
import
'golden_class.dart'
;
void
main
(
)
{
matchesGoldenFile
(
'missing_tag.png'
);
}
dev/bots/test/analyze-test-input/root/packages/foo/golden_missing_tag.dart
0 → 100644
View file @
616f9bcf
// 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.
// The reduced test set tag is missing. This should fail analysis.
@Tags
(<
String
>[
'some-other-tag'
])
import
'package:test/test.dart'
;
import
'golden_class.dart'
;
void
main
(
)
{
matchesGoldenFile
(
'missing_tag.png'
);
}
dev/bots/test/analyze-test-input/root/packages/foo/golden_no_tag.dart
0 → 100644
View file @
616f9bcf
// 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.
// The tag is missing. This should fail analysis.
import
'golden_class.dart'
;
void
main
(
)
{
matchesGoldenFile
(
'missing_tag.png'
);
}
dev/bots/test/analyze_test.dart
View file @
616f9bcf
...
@@ -73,6 +73,51 @@ void main() {
...
@@ -73,6 +73,51 @@ void main() {
);
);
});
});
test
(
'analyze.dart - verifyGoldenTags'
,
()
async
{
final
String
result
=
await
capture
(()
=>
verifyGoldenTags
(
testRootPath
,
minimumMatches:
6
),
exitCode:
1
);
const
String
noTag
=
'Files containing golden tests must be '
'tagged using `@Tags(...)` at the top of the file before import statements.'
;
const
String
missingTag
=
'Files containing golden tests must be '
"tagged with 'reduced-test-set'."
;
String
lines
=
<
String
>[
'test/analyze-test-input/root/packages/foo/golden_missing_tag.dart:
$missingTag
'
,
'test/analyze-test-input/root/packages/foo/golden_no_tag.dart:
$noTag
'
,
]
.
map
((
String
line
)
{
return
line
.
replaceAll
(
'/'
,
Platform
.
isWindows
?
r'\'
:
'/'
);
})
.
join
(
'
\n
'
);
try
{
expect
(
result
,
'━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
\n
'
'
$lines
\n
'
'See: https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter
\n
'
'━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
\n
'
);
}
catch
(
_
)
{
// This list of files may come up in one order or the other.
lines
=
<
String
>[
'test/analyze-test-input/root/packages/foo/golden_no_tag.dart:
$noTag
'
,
'test/analyze-test-input/root/packages/foo/golden_missing_tag.dart:
$missingTag
'
,
]
.
map
((
String
line
)
{
return
line
.
replaceAll
(
'/'
,
Platform
.
isWindows
?
r'\'
:
'/'
);
})
.
join
(
'
\n
'
);
expect
(
result
,
'━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
\n
'
'
$lines
\n
'
'See: https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter
\n
'
'━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
\n
'
);
}
});
test
(
'analyze.dart - verifyNoMissingLicense'
,
()
async
{
test
(
'analyze.dart - verifyNoMissingLicense'
,
()
async
{
final
String
result
=
await
capture
(()
=>
verifyNoMissingLicense
(
testRootPath
,
checkMinimums:
false
),
exitCode:
1
);
final
String
result
=
await
capture
(()
=>
verifyNoMissingLicense
(
testRootPath
,
checkMinimums:
false
),
exitCode:
1
);
final
String
lines
=
'test/analyze-test-input/root/packages/foo/foo.dart'
final
String
lines
=
'test/analyze-test-input/root/packages/foo/foo.dart'
...
...
packages/flutter/dart_test.yaml
View file @
616f9bcf
tags
:
tags
:
# This tag tells the test framework to run these tagged files as part of a
# reduced test set.
reduced-test-set
:
# This tag tells the test framework to not shuffle the test order according to
# This tag tells the test framework to not shuffle the test order according to
# the --test-randomize-ordering-seed for the suites that have this tag.
# the --test-randomize-ordering-seed for the suites that have this tag.
no-shuffle
:
no-shuffle
:
...
...
packages/flutter/test/animation/animation_sheet_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/animation/live_binding_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/cupertino/activity_indicator_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/scheduler.dart'
;
import
'package:flutter/scheduler.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/cupertino/date_picker_test.dart
View file @
616f9bcf
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// no-shuffle:
// dependencies have been fixed.
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// https://github.com/flutter/flutter/issues/85160
// dependencies have been fixed.
// Fails with "flutter test --test-randomize-ordering-seed=123"
// https://github.com/flutter/flutter/issues/85160
@Tags
(<
String
>[
'no-shuffle'
])
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
import
'dart:ui'
;
import
'dart:ui'
;
...
...
packages/flutter/test/cupertino/dialog_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:math'
;
import
'dart:math'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
...
...
packages/flutter/test/cupertino/nav_bar_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter/test/cupertino/segmented_control_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:ui'
as
ui
;
import
'dart:ui'
as
ui
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
...
...
packages/flutter/test/cupertino/switch_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/cupertino/text_field_test.dart
View file @
616f9bcf
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// no-shuffle:
// dependencies have been fixed.
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// https://github.com/flutter/flutter/issues/85160
// dependencies have been fixed.
// Fails with "flutter test --test-randomize-ordering-seed=123"
// https://github.com/flutter/flutter/issues/85160
@Tags
(<
String
>[
'no-shuffle'
])
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
import
'dart:ui'
as
ui
show
BoxHeightStyle
,
BoxWidthStyle
,
Color
;
import
'dart:ui'
as
ui
show
BoxHeightStyle
,
BoxWidthStyle
,
Color
;
...
...
packages/flutter/test/cupertino/text_selection_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:ui'
as
ui
show
BoxHeightStyle
;
import
'dart:ui'
as
ui
show
BoxHeightStyle
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
...
...
packages/flutter/test/material/bottom_app_bar_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/bottom_app_bar_theme_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/bottom_navigation_bar_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:ui'
;
import
'dart:ui'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/material/card_theme_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/circle_avatar_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/material/dialog_theme_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/dropdown_test.dart
View file @
616f9bcf
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// no-shuffle:
// dependencies have been fixed.
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// https://github.com/flutter/flutter/issues/85160
// dependencies have been fixed.
// Fails with "flutter test --test-randomize-ordering-seed=1408669812"
// https://github.com/flutter/flutter/issues/85160
@Tags
(<
String
>[
'no-shuffle'
])
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'dart:ui'
show
window
;
import
'dart:ui'
show
window
;
...
...
packages/flutter/test/material/flexible_space_bar_stretch_mode_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/floating_action_button_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
@TestOn
(
'!chrome'
)
@TestOn
(
'!chrome'
)
import
'dart:ui'
;
import
'dart:ui'
;
...
...
packages/flutter/test/material/flutter_logo_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/icons_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:file/file.dart'
;
import
'package:file/file.dart'
;
import
'package:file/local.dart'
;
import
'package:file/local.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/material/input_decorator_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:async'
;
import
'dart:async'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
...
...
packages/flutter/test/material/material_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/progress_indicator_test.dart
View file @
616f9bcf
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// no-shuffle:
// dependencies have been fixed.
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// https://github.com/flutter/flutter/issues/85160
// dependencies have been fixed.
// Fails with "flutter test --test-randomize-ordering-seed=456"
// https://github.com/flutter/flutter/issues/85160
@Tags
(<
String
>[
'no-shuffle'
])
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/material/radio_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:ui'
;
import
'dart:ui'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
...
...
packages/flutter/test/material/reorderable_list_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/gestures.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
packages/flutter/test/material/snack_bar_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/foundation.dart'
show
FlutterExceptionHandler
;
import
'package:flutter/foundation.dart'
show
FlutterExceptionHandler
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
packages/flutter/test/material/switch_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:async'
;
import
'dart:async'
;
import
'dart:ui'
as
ui
;
import
'dart:ui'
as
ui
;
...
...
packages/flutter/test/material/tab_bar_theme_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/material/text_field_test.dart
View file @
616f9bcf
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// no-shuffle:
// dependencies have been fixed.
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// https://github.com/flutter/flutter/issues/85160
// dependencies have been fixed.
// Fails with "flutter test --test-randomize-ordering-seed=3890307731"
// https://github.com/flutter/flutter/issues/85160
@Tags
(<
String
>[
'no-shuffle'
])
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'dart:ui'
as
ui
show
window
,
BoxHeightStyle
,
BoxWidthStyle
,
WindowPadding
;
import
'dart:ui'
as
ui
show
window
,
BoxHeightStyle
,
BoxWidthStyle
,
WindowPadding
;
...
...
packages/flutter/test/material/text_selection_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter/test/material/toggle_buttons_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/gestures.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
packages/flutter/test/painting/box_painter_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/painting.dart'
;
import
'package:flutter/painting.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/flutter/test/painting/continuous_rectangle_border_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/painting/flutter_logo_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/painting/gradient_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/flutter/test/rendering/localized_fonts_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/backdrop_filter_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:ui'
;
import
'dart:ui'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/widgets/basic_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'dart:ui'
as
ui
;
import
'dart:ui'
as
ui
;
...
...
packages/flutter/test/widgets/clip_test.dart
View file @
616f9bcf
...
@@ -2,11 +2,15 @@
...
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// no-shuffle:
// dependencies have been fixed.
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// https://github.com/flutter/flutter/issues/85160
// dependencies have been fixed.
// Fails with "flutter test --test-randomize-ordering-seed=456"
// https://github.com/flutter/flutter/issues/85160
@Tags
(<
String
>[
'no-shuffle'
])
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
packages/flutter/test/widgets/color_filter_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
@TestOn
(
'!chrome'
)
@TestOn
(
'!chrome'
)
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
packages/flutter/test/widgets/container_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/editable_text_cursor_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
@TestOn
(
'!chrome'
)
@TestOn
(
'!chrome'
)
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/widgets/image_filter_quality_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:async'
;
import
'dart:async'
;
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'dart:ui'
as
ui
;
import
'dart:ui'
as
ui
;
...
...
packages/flutter/test/widgets/image_filter_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'dart:ui'
;
import
'dart:ui'
;
...
...
packages/flutter/test/widgets/image_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:async'
;
import
'dart:async'
;
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'dart:typed_data'
;
import
'dart:typed_data'
;
...
...
packages/flutter/test/widgets/invert_colors_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/list_wheel_scroll_view_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/opacity_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/overscroll_stretch_indicator_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/page_route_builder_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/physical_model_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/selectable_text_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
@TestOn
(
'!chrome'
)
@TestOn
(
'!chrome'
)
import
'dart:ui'
as
ui
show
BoxHeightStyle
,
BoxWidthStyle
;
import
'dart:ui'
as
ui
show
BoxHeightStyle
,
BoxWidthStyle
;
...
...
packages/flutter/test/widgets/shader_mask_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/shadow_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/text_golden_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
@TestOn
(
'!chrome'
)
@TestOn
(
'!chrome'
)
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/transform_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
])
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'dart:ui'
as
ui
;
import
'dart:ui'
as
ui
;
...
...
packages/flutter/test/widgets/widget_inspector_test.dart
View file @
616f9bcf
...
@@ -2,13 +2,17 @@
...
@@ -2,13 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
// no-shuffle:
// //TODO(gspencergoog): Remove this tag once this test's state leaks/test
// dependencies have been fixed.
// https://github.com/flutter/flutter/issues/85160
// Fails with "flutter test --test-randomize-ordering-seed=456"
// reduced-test-set:
// This file is run as part of a reduced test set in CI on Mac and Windows
// machines.
@Tags
(<
String
>[
'reduced-test-set'
,
'no-shuffle'
])
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
@TestOn
(
'!chrome'
)
// dependencies have been fixed.
// https://github.com/flutter/flutter/issues/85160
// Fails with "flutter test --test-randomize-ordering-seed=456"
@Tags
(<
String
>[
'no-shuffle'
])
import
'dart:async'
;
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:convert'
;
...
@@ -1999,7 +2003,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -1999,7 +2003,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
_CreationLocation
location
=
knownLocations
[
id
]!;
_CreationLocation
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// ClockText widget.
// ClockText widget.
expect
(
location
.
line
,
equals
(
6
0
));
expect
(
location
.
line
,
equals
(
6
4
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
location
.
name
,
equals
(
'ClockText'
));
expect
(
location
.
name
,
equals
(
'ClockText'
));
expect
(
count
,
equals
(
1
));
expect
(
count
,
equals
(
1
));
...
@@ -2009,7 +2013,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -2009,7 +2013,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// Text widget in _ClockTextState build method.
// Text widget in _ClockTextState build method.
expect
(
location
.
line
,
equals
(
98
));
expect
(
location
.
line
,
equals
(
102
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
location
.
name
,
equals
(
'Text'
));
expect
(
location
.
name
,
equals
(
'Text'
));
expect
(
count
,
equals
(
1
));
expect
(
count
,
equals
(
1
));
...
@@ -2036,7 +2040,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -2036,7 +2040,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// ClockText widget.
// ClockText widget.
expect
(
location
.
line
,
equals
(
6
0
));
expect
(
location
.
line
,
equals
(
6
4
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
location
.
name
,
equals
(
'ClockText'
));
expect
(
location
.
name
,
equals
(
'ClockText'
));
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
...
@@ -2046,7 +2050,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -2046,7 +2050,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// Text widget in _ClockTextState build method.
// Text widget in _ClockTextState build method.
expect
(
location
.
line
,
equals
(
98
));
expect
(
location
.
line
,
equals
(
102
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
location
.
name
,
equals
(
'Text'
));
expect
(
location
.
name
,
equals
(
'Text'
));
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
616f9bcf
...
@@ -363,7 +363,8 @@ Matcher coversSameAreaAs(Path expectedPath, { required Rect areaToCompare, int s
...
@@ -363,7 +363,8 @@ Matcher coversSameAreaAs(Path expectedPath, { required Rect areaToCompare, int s
/// verify that two different code paths create identical images.
/// verify that two different code paths create identical images.
/// * [flutter_test] for a discussion of test configurations, whereby callers
/// * [flutter_test] for a discussion of test configurations, whereby callers
/// may swap out the backend for this matcher.
/// may swap out the backend for this matcher.
AsyncMatcher
matchesGoldenFile
(
Object
key
,
{
int
?
version
})
{
AsyncMatcher
matchesGoldenFile
(
Object
key
,
{
int
?
version
})
{
if
(
key
is
Uri
)
{
if
(
key
is
Uri
)
{
return
MatchesGoldenFile
(
key
,
version
);
return
MatchesGoldenFile
(
key
,
version
);
}
else
if
(
key
is
String
)
{
}
else
if
(
key
is
String
)
{
...
...
packages/flutter_test/test/matchers_test.dart
View file @
616f9bcf
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
// flutter_ignore_for_file: golden_tag (see analyze.dart)
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'dart:ui'
;
import
'dart:ui'
;
...
...
packages/flutter_tools/lib/src/commands/test.dart
View file @
616f9bcf
...
@@ -140,7 +140,7 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
...
@@ -140,7 +140,7 @@ class TestCommand extends FlutterCommand with DeviceBasedDevelopmentArtifacts {
)
)
..
addFlag
(
'update-goldens'
,
..
addFlag
(
'update-goldens'
,
negatable:
false
,
negatable:
false
,
help:
'Whether "matchesGoldenFile()" calls within your test methods should '
help:
'Whether "matchesGoldenFile()" calls within your test methods should '
// flutter_ignore: golden_tag (see analyze.dart)
'update the golden files rather than test for an existing match.'
,
'update the golden files rather than test for an existing match.'
,
)
)
..
addOption
(
'concurrency'
,
..
addOption
(
'concurrency'
,
...
...
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