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
b2afbd2f
Unverified
Commit
b2afbd2f
authored
Apr 08, 2021
by
Jenn Magder
Committed by
GitHub
Apr 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use testUsingContext in downgrade_upgrade_integration_test (#79975)
parent
12ba9046
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
downgrade_upgrade_integration_test.dart
...integration.shard/downgrade_upgrade_integration_test.dart
+2
-2
No files found.
packages/flutter_tools/test/integration.shard/downgrade_upgrade_integration_test.dart
View file @
b2afbd2f
...
@@ -11,6 +11,7 @@ import 'package:flutter_tools/src/base/process.dart';
...
@@ -11,6 +11,7 @@ import 'package:flutter_tools/src/base/process.dart';
import
'package:flutter_tools/src/base/terminal.dart'
;
import
'package:flutter_tools/src/base/terminal.dart'
;
import
'../src/common.dart'
;
import
'../src/common.dart'
;
import
'../src/context.dart'
;
import
'test_utils.dart'
;
import
'test_utils.dart'
;
const
String
_kInitialVersion
=
'v1.9.1'
;
const
String
_kInitialVersion
=
'v1.9.1'
;
...
@@ -26,7 +27,6 @@ final ProcessUtils processUtils = ProcessUtils(processManager: processManager, l
...
@@ -26,7 +27,6 @@ final ProcessUtils processUtils = ProcessUtils(processManager: processManager, l
outputPreferences:
OutputPreferences
.
test
(
wrapText:
true
),
outputPreferences:
OutputPreferences
.
test
(
wrapText:
true
),
));
));
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
platform
.
isWindows
?
'flutter.bat'
:
'flutter'
);
final
String
flutterBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
platform
.
isWindows
?
'flutter.bat'
:
'flutter'
);
final
String
dartBin
=
fileSystem
.
path
.
join
(
getFlutterRoot
(),
'bin'
,
platform
.
isWindows
?
'dart.bat'
:
'dart'
);
/// A test for flutter upgrade & downgrade that checks out a parallel flutter repo.
/// A test for flutter upgrade & downgrade that checks out a parallel flutter repo.
void
main
(
)
{
void
main
(
)
{
...
@@ -46,7 +46,7 @@ void main() {
...
@@ -46,7 +46,7 @@ void main() {
}
}
});
});
test
Without
Context
(
'Can upgrade and downgrade a Flutter checkout'
,
()
async
{
test
Using
Context
(
'Can upgrade and downgrade a Flutter checkout'
,
()
async
{
final
Directory
testDirectory
=
parentDirectory
.
childDirectory
(
'flutter'
);
final
Directory
testDirectory
=
parentDirectory
.
childDirectory
(
'flutter'
);
testDirectory
.
createSync
(
recursive:
true
);
testDirectory
.
createSync
(
recursive:
true
);
...
...
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