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
4f5cc21b
Unverified
Commit
4f5cc21b
authored
Dec 16, 2021
by
嘟囔
Committed by
GitHub
Dec 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate some file to null safety (#92957)
parent
a8c78097
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
31 deletions
+15
-31
analyze_once_test.dart
...utter_tools/test/integration.shard/analyze_once_test.dart
+4
-6
analyze_size_test.dart
...utter_tools/test/integration.shard/analyze_size_test.dart
+0
-2
android_plugin_example_app_build_test.dart
...egration.shard/android_plugin_example_app_build_test.dart
+1
-3
background_isolate_test.dart
...tools/test/integration.shard/background_isolate_test.dart
+3
-5
build_ios_config_only_test.dart
...ls/test/integration.shard/build_ios_config_only_test.dart
+0
-2
command_output_test.dart
...ter_tools/test/integration.shard/command_output_test.dart
+2
-4
coverage_collection_test.dart
...ools/test/integration.shard/coverage_collection_test.dart
+1
-3
debugger_stepping_test.dart
..._tools/test/integration.shard/debugger_stepping_test.dart
+4
-6
No files found.
packages/flutter_tools/test/integration.shard/analyze_once_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
import
'../src/common.dart'
;
...
...
@@ -12,12 +10,12 @@ import 'test_utils.dart';
final
String
analyzerSeparator
=
platform
.
isWindows
?
'-'
:
'•'
;
void
main
(
)
{
Directory
tempDir
;
String
projectPath
;
File
libMain
;
late
Directory
tempDir
;
late
String
projectPath
;
late
File
libMain
;
Future
<
void
>
runCommand
({
List
<
String
>
arguments
,
List
<
String
>
arguments
=
const
<
String
>[]
,
List
<
String
>
statusTextContains
=
const
<
String
>[],
List
<
String
>
errorTextContains
=
const
<
String
>[],
String
exitMessageContains
=
''
,
...
...
packages/flutter_tools/test/integration.shard/analyze_size_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file/file.dart'
;
import
'package:file_testing/file_testing.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
...
...
packages/flutter_tools/test/integration.shard/android_plugin_example_app_build_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file_testing/file_testing.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
...
...
@@ -11,7 +9,7 @@ import '../src/common.dart';
import
'test_utils.dart'
;
void
main
(
)
{
Directory
tempDir
;
late
Directory
tempDir
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'flutter_plugin_test.'
);
...
...
packages/flutter_tools/test/integration.shard/background_isolate_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'dart:async'
;
import
'package:file/file.dart'
;
...
...
@@ -14,7 +12,7 @@ import 'test_driver.dart';
import
'test_utils.dart'
;
void
main
(
)
{
Directory
tempDir
;
late
Directory
tempDir
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'hot_reload_test.'
);
...
...
@@ -56,7 +54,7 @@ void main() {
// Wait a tiny amount of time in case we did not kill the background isolate.
await
Future
<
void
>.
delayed
(
const
Duration
(
milliseconds:
10
));
await
subscription
.
cancel
();
await
flutter
?
.
stop
();
await
flutter
.
stop
();
});
testWithoutContext
(
'Hot reload updates background isolates'
,
()
async
{
...
...
@@ -84,6 +82,6 @@ void main() {
await
flutter
.
hotReload
();
await
sawNewBackgroundMessage
.
future
;
await
subscription
.
cancel
();
await
flutter
?
.
stop
();
await
flutter
.
stop
();
});
}
packages/flutter_tools/test/integration.shard/build_ios_config_only_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file_testing/file_testing.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/io.dart'
;
...
...
packages/flutter_tools/test/integration.shard/command_output_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'dart:convert'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
...
...
@@ -138,11 +136,11 @@ void main() {
'--machine'
,
]);
final
Map
<
String
,
Object
>
versionInfo
=
json
.
decode
(
result
.
stdout
final
Map
<
String
,
Object
?
>
versionInfo
=
json
.
decode
(
result
.
stdout
.
toString
()
.
replaceAll
(
'Building flutter tool...'
,
''
)
.
replaceAll
(
'Waiting for another flutter command to release the startup lock...'
,
''
)
.
trim
())
as
Map
<
String
,
Object
>;
.
trim
())
as
Map
<
String
,
Object
?
>;
expect
(
versionInfo
,
containsPair
(
'flutterRoot'
,
isNotNull
));
});
...
...
packages/flutter_tools/test/integration.shard/coverage_collection_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file/file.dart'
;
import
'package:file_testing/file_testing.dart'
;
...
...
@@ -14,7 +12,7 @@ import 'test_driver.dart';
import
'test_utils.dart'
;
void
main
(
)
{
Directory
tempDir
;
late
Directory
tempDir
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'flutter_coverage_collection_test.'
);
...
...
packages/flutter_tools/test/integration.shard/debugger_stepping_test.dart
View file @
4f5cc21b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file/file.dart'
;
import
'../src/common.dart'
;
...
...
@@ -12,7 +10,7 @@ import 'test_driver.dart';
import
'test_utils.dart'
;
void
main
(
)
{
Directory
tempDir
;
late
Directory
tempDir
;
setUp
(()
async
{
tempDir
=
createResolvedTempDirectorySync
(
'debugger_stepping_test.'
);
...
...
@@ -32,13 +30,13 @@ void main() {
await
_flutter
.
addBreakpoint
(
_project
.
breakpointUri
,
_project
.
breakpointLine
);
await
_flutter
.
resume
(
waitForNextPause:
true
);
// Now we should be on the breakpoint.
expect
((
await
_flutter
.
getSourceLocation
()).
line
,
equals
(
_project
.
breakpointLine
));
expect
((
await
_flutter
.
getSourceLocation
())
?
.
line
,
equals
(
_project
.
breakpointLine
));
// Issue 5 steps, ensuring that we end up on the annotated lines each time.
for
(
int
i
=
1
;
i
<=
_project
.
numberOfSteps
;
i
+=
1
)
{
await
_flutter
.
stepOverOrOverAsyncSuspension
();
final
SourcePosition
location
=
await
_flutter
.
getSourceLocation
();
final
int
actualLine
=
location
.
line
;
final
SourcePosition
?
location
=
await
_flutter
.
getSourceLocation
();
final
int
?
actualLine
=
location
?
.
line
;
// Get the line we're expected to stop at by searching for the comment
// within the source code.
...
...
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