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
a6153c52
Unverified
Commit
a6153c52
authored
Apr 07, 2021
by
Sam Rawlins
Committed by
GitHub
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "unnecessary" imports in test/widgets (#79608)
parent
35638742
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
4 additions
and
26 deletions
+4
-26
actions_test.dart
packages/flutter/test/widgets/actions_test.dart
+0
-1
default_text_editing_actions_test.dart
...utter/test/widgets/default_text_editing_actions_test.dart
+0
-2
reparent_state_test.dart
packages/flutter/test/widgets/reparent_state_test.dart
+0
-1
sliver_fill_viewport_test.dart
packages/flutter/test/widgets/sliver_fill_viewport_test.dart
+0
-1
syncing_test.dart
packages/flutter/test/widgets/syncing_test.dart
+0
-1
table_test.dart
packages/flutter/test/widgets/table_test.dart
+0
-1
test_widgets.dart
packages/flutter/test/widgets/test_widgets.dart
+0
-1
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+0
-1
text_selection_test.dart
packages/flutter/test/widgets/text_selection_test.dart
+0
-1
text_selection_toolbar_layout_delegate_test.dart
.../widgets/text_selection_toolbar_layout_delegate_test.dart
+0
-1
text_test.dart
packages/flutter/test/widgets/text_test.dart
+0
-1
transformed_scrollable_test.dart
...ges/flutter/test/widgets/transformed_scrollable_test.dart
+0
-3
transitions_test.dart
packages/flutter/test/widgets/transitions_test.dart
+0
-1
widget_inspector_init_with_structured_error_test.dart
...ets/widget_inspector_init_with_structured_error_test.dart
+0
-1
widget_inspector_structure_error_test.dart
...r/test/widgets/widget_inspector_structure_error_test.dart
+0
-1
widget_inspector_test.dart
packages/flutter/test/widgets/widget_inspector_test.dart
+4
-5
widget_inspector_test_utils.dart
...ges/flutter/test/widgets/widget_inspector_test_utils.dart
+0
-1
wrap_test.dart
packages/flutter/test/widgets/wrap_test.dart
+0
-1
testbed.dart
packages/flutter_tools/test/src/testbed.dart
+0
-1
No files found.
packages/flutter/test/widgets/actions_test.dart
View file @
a6153c52
...
...
@@ -7,7 +7,6 @@ import 'package:flutter/gestures.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
typedef
PostInvokeCallback
=
void
Function
({
Action
<
Intent
>
action
,
Intent
intent
,
ActionDispatcher
dispatcher
});
...
...
packages/flutter/test/widgets/default_text_editing_actions_test.dart
View file @
a6153c52
...
...
@@ -4,9 +4,7 @@
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/foundation.dart'
;
class
TestLeftIntent
extends
Intent
{}
class
TestRightIntent
extends
Intent
{}
...
...
packages/flutter/test/widgets/reparent_state_test.dart
View file @
a6153c52
...
...
@@ -4,7 +4,6 @@
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/widgets.dart'
;
class
StateMarker
extends
StatefulWidget
{
const
StateMarker
({
Key
?
key
,
this
.
child
})
:
super
(
key:
key
);
...
...
packages/flutter/test/widgets/sliver_fill_viewport_test.dart
View file @
a6153c52
...
...
@@ -5,7 +5,6 @@
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/widgets.dart'
;
void
main
(
)
{
testWidgets
(
'SliverFillViewport control test'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/widgets/syncing_test.dart
View file @
a6153c52
...
...
@@ -4,7 +4,6 @@
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/widgets.dart'
;
class
TestWidget
extends
StatefulWidget
{
const
TestWidget
({
...
...
packages/flutter/test/widgets/table_test.dart
View file @
a6153c52
...
...
@@ -4,7 +4,6 @@
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/material.dart'
;
class
TestStatefulWidget
extends
StatefulWidget
{
...
...
packages/flutter/test/widgets/test_widgets.dart
View file @
a6153c52
...
...
@@ -3,7 +3,6 @@
// found in the LICENSE file.
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
const
BoxDecoration
kBoxDecorationA
=
BoxDecoration
(
...
...
packages/flutter/test/widgets/text_golden_test.dart
View file @
a6153c52
...
...
@@ -5,7 +5,6 @@
@TestOn
(
'!chrome'
)
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
void
main
(
)
{
testWidgets
(
'Centered text'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/widgets/text_selection_test.dart
View file @
a6153c52
...
...
@@ -7,7 +7,6 @@ import 'package:flutter/gestures.dart' show PointerDeviceKind;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/widgets.dart'
;
class
MockClipboard
{
MockClipboard
({
...
...
packages/flutter/test/widgets/text_selection_toolbar_layout_delegate_test.dart
View file @
a6153c52
...
...
@@ -3,7 +3,6 @@
// found in the LICENSE file.
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
void
main
(
)
{
...
...
packages/flutter/test/widgets/text_test.dart
View file @
a6153c52
...
...
@@ -9,7 +9,6 @@ import 'package:flutter_test/flutter_test.dart';
import
'package:flutter/foundation.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'../rendering/mock_canvas.dart'
;
import
'semantics_tester.dart'
;
...
...
packages/flutter/test/widgets/transformed_scrollable_test.dart
View file @
a6153c52
...
...
@@ -5,10 +5,7 @@
import
'dart:math'
as
math
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/gestures.dart'
;
void
main
(
)
{
testWidgets
(
'Scrollable scaled up'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/widgets/transitions_test.dart
View file @
a6153c52
...
...
@@ -7,7 +7,6 @@ import 'dart:math' as math;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
void
main
(
)
{
testWidgets
(
'toString control test'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/widgets/widget_inspector_init_with_structured_error_test.dart
View file @
a6153c52
...
...
@@ -4,7 +4,6 @@
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/widget_inspector_structure_error_test.dart
View file @
a6153c52
...
...
@@ -6,7 +6,6 @@ import 'dart:async';
import
'dart:convert'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/widget_inspector_test.dart
View file @
a6153c52
...
...
@@ -12,7 +12,6 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/gestures.dart'
show
DragStartBehavior
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'widget_inspector_test_utils.dart'
;
...
...
@@ -1937,7 +1936,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
_CreationLocation
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
// ClockText widget.
expect
(
location
.
line
,
equals
(
5
4
));
expect
(
location
.
line
,
equals
(
5
3
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
count
,
equals
(
1
));
...
...
@@ -1946,7 +1945,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
// Text widget in _ClockTextState build method.
expect
(
location
.
line
,
equals
(
9
2
));
expect
(
location
.
line
,
equals
(
9
1
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
count
,
equals
(
1
));
...
...
@@ -1971,7 +1970,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
// ClockText widget.
expect
(
location
.
line
,
equals
(
5
4
));
expect
(
location
.
line
,
equals
(
5
3
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
...
...
@@ -1980,7 +1979,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
// Text widget in _ClockTextState build method.
expect
(
location
.
line
,
equals
(
9
2
));
expect
(
location
.
line
,
equals
(
9
1
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
...
...
packages/flutter/test/widgets/widget_inspector_test_utils.dart
View file @
a6153c52
...
...
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:convert'
;
import
'package:flutter/foundation.dart'
;
...
...
packages/flutter/test/widgets/wrap_test.dart
View file @
a6153c52
...
...
@@ -5,7 +5,6 @@
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'../rendering/mock_canvas.dart'
;
...
...
packages/flutter_tools/test/src/testbed.dart
View file @
a6153c52
...
...
@@ -22,7 +22,6 @@ import 'package:flutter_tools/src/dart/pub.dart';
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
import
'package:process/process.dart'
;
import
'context.dart'
;
import
'fake_http_client.dart'
;
...
...
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