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
2b14e993
Unverified
Commit
2b14e993
authored
May 25, 2022
by
Michael Goderbauer
Committed by
GitHub
May 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup random dead test code (#104568)
parent
da24f105
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
66 deletions
+5
-66
common.dart
packages/flutter_driver/test/common.dart
+1
-7
flutter_goldens_test.dart
packages/flutter_goldens/test/flutter_goldens_test.dart
+0
-18
widget_tester_test.dart
packages/flutter_test/test/widget_tester_test.dart
+0
-25
common.dart
packages/fuchsia_remote_debug_protocol/test/common.dart
+0
-10
fuchsia_remote_connection_test.dart
...e_debug_protocol/test/fuchsia_remote_connection_test.dart
+1
-2
network_test.dart
...a_remote_debug_protocol/test/src/common/network_test.dart
+1
-1
dart_vm_test.dart
...sia_remote_debug_protocol/test/src/dart/dart_vm_test.dart
+1
-2
ssh_command_runner_test.dart
...ug_protocol/test/src/runners/ssh_command_runner_test.dart
+1
-1
No files found.
packages/flutter_driver/test/common.dart
View file @
2b14e993
...
@@ -8,10 +8,7 @@ import 'package:flutter_driver/src/common/error.dart';
...
@@ -8,10 +8,7 @@ import 'package:flutter_driver/src/common/error.dart';
import
'package:test_api/test_api.dart'
;
// ignore: deprecated_member_use
import
'package:test_api/test_api.dart'
;
// ignore: deprecated_member_use
export
'package:test_api/fake.dart'
;
// ignore: deprecated_member_use
export
'package:test_api/fake.dart'
;
// ignore: deprecated_member_use
export
'package:test_api/test_api.dart'
hide
isInstanceOf
;
// ignore: deprecated_member_use
export
'package:test_api/test_api.dart'
;
// ignore: deprecated_member_use
/// A matcher that compares the type of the actual value to the type argument T.
TypeMatcher
<
T
>
isInstanceOf
<
T
>()
=>
isA
<
T
>();
void
tryToDelete
(
Directory
directory
)
{
void
tryToDelete
(
Directory
directory
)
{
// This should not be necessary, but it turns out that
// This should not be necessary, but it turns out that
...
@@ -26,6 +23,3 @@ void tryToDelete(Directory directory) {
...
@@ -26,6 +23,3 @@ void tryToDelete(Directory directory) {
/// Matcher for functions that throw [DriverError].
/// Matcher for functions that throw [DriverError].
final
Matcher
throwsDriverError
=
throwsA
(
isA
<
DriverError
>());
final
Matcher
throwsDriverError
=
throwsA
(
isA
<
DriverError
>());
/// Matcher for functions that throw [AssertionError].
final
Matcher
throwsAssertionError
=
throwsA
(
isA
<
AssertionError
>());
packages/flutter_goldens/test/flutter_goldens_test.dart
View file @
2b14e993
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
// See also dev/automated_tests/flutter_test/flutter_gold_test.dart
// See also dev/automated_tests/flutter_test/flutter_gold_test.dart
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:convert'
;
import
'dart:io'
hide
Directory
;
import
'dart:io'
hide
Directory
;
import
'dart:typed_data'
;
import
'dart:typed_data'
;
...
@@ -1090,23 +1089,6 @@ class FakeHttpClientRequest extends Fake implements HttpClientRequest {
...
@@ -1090,23 +1089,6 @@ class FakeHttpClientRequest extends Fake implements HttpClientRequest {
}
}
}
}
class
FakeHttpClientResponse
extends
Fake
implements
HttpClientResponse
{
FakeHttpClientResponse
(
this
.
response
);
final
List
<
int
>
response
;
@override
StreamSubscription
<
List
<
int
>>
listen
(
void
Function
(
List
<
int
>
event
)?
onData
,
{
Function
?
onError
,
void
Function
()?
onDone
,
bool
?
cancelOnError
,
})
{
return
Stream
<
List
<
int
>>.
fromFuture
(
Future
<
List
<
int
>>.
value
(
response
))
.
listen
(
onData
,
onError:
onError
,
onDone:
onDone
,
cancelOnError:
cancelOnError
);
}
}
class
FakeHttpImageResponse
extends
Fake
implements
HttpClientResponse
{
class
FakeHttpImageResponse
extends
Fake
implements
HttpClientResponse
{
FakeHttpImageResponse
(
this
.
response
);
FakeHttpImageResponse
(
this
.
response
);
...
...
packages/flutter_test/test/widget_tester_test.dart
View file @
2b14e993
...
@@ -782,31 +782,6 @@ class FakeMatcher extends AsyncMatcher {
...
@@ -782,31 +782,6 @@ class FakeMatcher extends AsyncMatcher {
Description
describe
(
Description
description
)
=>
description
.
add
(
'--fake--'
);
Description
describe
(
Description
description
)
=>
description
.
add
(
'--fake--'
);
}
}
class
_SingleTickerTest
extends
StatefulWidget
{
const
_SingleTickerTest
();
@override
_SingleTickerTestState
createState
()
=>
_SingleTickerTestState
();
}
class
_SingleTickerTestState
extends
State
<
_SingleTickerTest
>
with
SingleTickerProviderStateMixin
{
late
AnimationController
controller
;
@override
void
initState
()
{
super
.
initState
();
controller
=
AnimationController
(
vsync:
this
,
duration:
const
Duration
(
seconds:
100
),
)
;
}
@override
Widget
build
(
BuildContext
context
)
{
return
Container
();
}
}
class
_AlwaysAnimating
extends
StatefulWidget
{
class
_AlwaysAnimating
extends
StatefulWidget
{
const
_AlwaysAnimating
({
const
_AlwaysAnimating
({
required
this
.
onPaint
,
required
this
.
onPaint
,
...
...
packages/fuchsia_remote_debug_protocol/test/common.dart
deleted
100644 → 0
View file @
da24f105
// 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:test/test.dart'
;
export
'package:test/test.dart'
hide
isInstanceOf
;
/// A matcher that compares the type of the actual value to the type argument T.
TypeMatcher
<
T
>
isInstanceOf
<
T
>()
=>
isA
<
T
>();
packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart
View file @
2b14e993
...
@@ -4,10 +4,9 @@
...
@@ -4,10 +4,9 @@
import
'package:fuchsia_remote_debug_protocol/fuchsia_remote_debug_protocol.dart'
;
import
'package:fuchsia_remote_debug_protocol/fuchsia_remote_debug_protocol.dart'
;
import
'package:test/fake.dart'
;
import
'package:test/fake.dart'
;
import
'package:test/test.dart'
;
import
'package:vm_service/vm_service.dart'
as
vms
;
import
'package:vm_service/vm_service.dart'
as
vms
;
import
'common.dart'
;
void
main
(
)
{
void
main
(
)
{
group
(
'FuchsiaRemoteConnection.connect'
,
()
{
group
(
'FuchsiaRemoteConnection.connect'
,
()
{
late
List
<
FakePortForwarder
>
forwardedPorts
;
late
List
<
FakePortForwarder
>
forwardedPorts
;
...
...
packages/fuchsia_remote_debug_protocol/test/src/common/network_test.dart
View file @
2b14e993
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
'package:fuchsia_remote_debug_protocol/src/common/network.dart'
;
import
'package:fuchsia_remote_debug_protocol/src/common/network.dart'
;
import
'
../../common
.dart'
;
import
'
package:test/test
.dart'
;
void
main
(
)
{
void
main
(
)
{
final
List
<
String
>
ipv4Addresses
=
<
String
>[
'127.0.0.1'
,
'8.8.8.8'
];
final
List
<
String
>
ipv4Addresses
=
<
String
>[
'127.0.0.1'
,
'8.8.8.8'
];
...
...
packages/fuchsia_remote_debug_protocol/test/src/dart/dart_vm_test.dart
View file @
2b14e993
...
@@ -6,10 +6,9 @@ import 'dart:async';
...
@@ -6,10 +6,9 @@ import 'dart:async';
import
'package:fuchsia_remote_debug_protocol/src/dart/dart_vm.dart'
;
import
'package:fuchsia_remote_debug_protocol/src/dart/dart_vm.dart'
;
import
'package:test/fake.dart'
;
import
'package:test/fake.dart'
;
import
'package:test/test.dart'
;
import
'package:vm_service/vm_service.dart'
as
vms
;
import
'package:vm_service/vm_service.dart'
as
vms
;
import
'../../common.dart'
;
void
main
(
)
{
void
main
(
)
{
group
(
'DartVm.connect'
,
()
{
group
(
'DartVm.connect'
,
()
{
tearDown
(()
{
tearDown
(()
{
...
...
packages/fuchsia_remote_debug_protocol/test/src/runners/ssh_command_runner_test.dart
View file @
2b14e993
...
@@ -9,7 +9,7 @@ import 'package:fuchsia_remote_debug_protocol/src/runners/ssh_command_runner.dar
...
@@ -9,7 +9,7 @@ import 'package:fuchsia_remote_debug_protocol/src/runners/ssh_command_runner.dar
import
'package:process/process.dart'
;
import
'package:process/process.dart'
;
import
'package:test/fake.dart'
;
import
'package:test/fake.dart'
;
import
'
../../common
.dart'
;
import
'
package:test/test
.dart'
;
void
main
(
)
{
void
main
(
)
{
group
(
'SshCommandRunner.constructors'
,
()
{
group
(
'SshCommandRunner.constructors'
,
()
{
...
...
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