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
bd935e5d
Unverified
Commit
bd935e5d
authored
Oct 29, 2021
by
嘟囔
Committed by
GitHub
Oct 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: migrate test_data/project.dart to null safety (#92646)
parent
125545da
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
45 additions
and
78 deletions
+45
-78
break_on_framework_exceptions_test.dart
...integration.shard/break_on_framework_exceptions_test.dart
+32
-34
background_project.dart
.../test/integration.shard/test_data/background_project.dart
+0
-2
basic_project.dart
...tools/test/integration.shard/test_data/basic_project.dart
+0
-2
deferred_components_project.dart
...egration.shard/test_data/deferred_components_project.dart
+2
-4
gen_l10n_project.dart
...ls/test/integration.shard/test_data/gen_l10n_project.dart
+2
-5
hot_reload_const_project.dart
...integration.shard/test_data/hot_reload_const_project.dart
+0
-2
hot_reload_project.dart
.../test/integration.shard/test_data/hot_reload_project.dart
+0
-2
hot_reload_with_asset.dart
...st/integration.shard/test_data/hot_reload_with_asset.dart
+0
-2
multidex_project.dart
...ls/test/integration.shard/test_data/multidex_project.dart
+0
-2
project.dart
...utter_tools/test/integration.shard/test_data/project.dart
+9
-10
project_with_early_error.dart
...integration.shard/test_data/project_with_early_error.dart
+0
-2
single_widget_reload_project.dart
...gration.shard/test_data/single_widget_reload_project.dart
+0
-2
stateless_stateful_project.dart
...tegration.shard/test_data/stateless_stateful_project.dart
+0
-2
stepping_project.dart
...ls/test/integration.shard/test_data/stepping_project.dart
+0
-2
test_project.dart
..._tools/test/integration.shard/test_data/test_project.dart
+0
-2
tests_project.dart
...tools/test/integration.shard/test_data/tests_project.dart
+0
-3
No files found.
packages/flutter_tools/test/integration.shard/break_on_framework_exceptions_test.dart
View file @
bd935e5d
This diff is collapsed.
Click to expand it.
packages/flutter_tools/test/integration.shard/test_data/background_project.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
import
'project.dart'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/basic_project.dart
View file @
bd935e5d
...
...
@@ -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
'project.dart'
;
class
BasicProject
extends
Project
{
...
...
packages/flutter_tools/test/integration.shard/test_data/deferred_components_project.dart
View file @
bd935e5d
...
...
@@ -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
'../../src/common.dart'
;
import
'deferred_components_config.dart'
;
import
'project.dart'
;
...
...
@@ -84,7 +82,7 @@ class BasicDeferredComponentsConfig extends DeferredComponentsConfig {
'''
;
@override
String
get
deferredComponentsGolden
=>
r''
'
String
?
get
deferredComponentsGolden
=>
r''
'
loading-units:
- id: 2
libraries:
...
...
@@ -604,7 +602,7 @@ class NoAndroidDynamicFeatureModuleDeferredComponentsConfig extends BasicDeferre
/// Missing golden
class
NoGoldenDeferredComponentsConfig
extends
BasicDeferredComponentsConfig
{
@override
String
get
deferredComponentsGolden
=>
null
;
String
?
get
deferredComponentsGolden
=>
null
;
}
/// Missing golden
...
...
packages/flutter_tools/test/integration.shard/test_data/gen_l10n_project.dart
View file @
bd935e5d
...
...
@@ -2,10 +2,7 @@
// 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:meta/meta.dart'
;
import
'../test_utils.dart'
;
import
'project.dart'
;
...
...
@@ -750,8 +747,8 @@ void main() {
''';
String l10nYaml({
@
required bool useDeferredLoading,
@
required bool useSyntheticPackage,
required bool useDeferredLoading,
required bool useSyntheticPackage,
}) {
String l10nYamlString = '';
...
...
packages/flutter_tools/test/integration.shard/test_data/hot_reload_const_project.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
import
'project.dart'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/hot_reload_project.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
import
'project.dart'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/hot_reload_with_asset.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
import
'project.dart'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/multidex_project.dart
View file @
bd935e5d
...
...
@@ -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'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/project.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
...
...
@@ -21,31 +19,32 @@ const String _kDefaultHtml = '''
'''
;
abstract
class
Project
{
Directory
dir
;
late
Directory
dir
;
String
get
pubspec
;
String
get
main
;
String
get
test
=>
null
;
String
get
generatedFile
=>
null
;
DeferredComponentsConfig
get
deferredComponents
=>
null
;
String
?
get
main
=>
null
;
String
?
get
test
=>
null
;
String
?
get
generatedFile
=>
null
;
DeferredComponentsConfig
?
get
deferredComponents
=>
null
;
Uri
get
mainDart
=>
Uri
.
parse
(
'package:test/main.dart'
);
Future
<
void
>
setUpIn
(
Directory
dir
)
async
{
this
.
dir
=
dir
;
writeFile
(
fileSystem
.
path
.
join
(
dir
.
path
,
'pubspec.yaml'
),
pubspec
);
final
String
?
main
=
this
.
main
;
if
(
main
!=
null
)
{
writeFile
(
fileSystem
.
path
.
join
(
dir
.
path
,
'lib'
,
'main.dart'
),
main
);
}
final
String
?
test
=
this
.
test
;
if
(
test
!=
null
)
{
writeFile
(
fileSystem
.
path
.
join
(
dir
.
path
,
'test'
,
'test.dart'
),
test
);
}
final
String
?
generatedFile
=
this
.
generatedFile
;
if
(
generatedFile
!=
null
)
{
writeFile
(
fileSystem
.
path
.
join
(
dir
.
path
,
'.dart_tool'
,
'flutter_gen'
,
'flutter_gen.dart'
),
generatedFile
);
}
if
(
deferredComponents
!=
null
)
{
deferredComponents
.
setUpIn
(
dir
);
}
deferredComponents
?.
setUpIn
(
dir
);
writeFile
(
fileSystem
.
path
.
join
(
dir
.
path
,
'web'
,
'index.html'
),
_kDefaultHtml
);
writePackages
(
dir
.
path
);
await
getPackages
(
dir
.
path
);
...
...
packages/flutter_tools/test/integration.shard/test_data/project_with_early_error.dart
View file @
bd935e5d
...
...
@@ -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
'project.dart'
;
class
ProjectWithEarlyError
extends
Project
{
...
...
packages/flutter_tools/test/integration.shard/test_data/single_widget_reload_project.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
import
'project.dart'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/stateless_stateful_project.dart
View file @
bd935e5d
...
...
@@ -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
'../test_utils.dart'
;
import
'project.dart'
;
...
...
packages/flutter_tools/test/integration.shard/test_data/stepping_project.dart
View file @
bd935e5d
...
...
@@ -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
'project.dart'
;
class
SteppingProject
extends
Project
{
...
...
packages/flutter_tools/test/integration.shard/test_data/test_project.dart
View file @
bd935e5d
...
...
@@ -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
'project.dart'
;
class
TestProject
extends
Project
{
...
...
packages/flutter_tools/test/integration.shard/test_data/tests_project.dart
View file @
bd935e5d
...
...
@@ -2,9 +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:flutter_tools/src/base/file_system.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