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
f360d8b8
Unverified
Commit
f360d8b8
authored
Aug 14, 2020
by
Zachary Anderson
Committed by
GitHub
Aug 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tool] Fix some create_test.dart tests on Windows (#63796)
parent
d80aa480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+6
-6
No files found.
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
f360d8b8
...
...
@@ -1121,7 +1121,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
final
String
metadata
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
'.metadata'
)).
readAsStringSync
();
expect
(
metadata
,
contains
(
'project_type: app
\n
'
));
expect
(
LineSplitter
.
split
(
metadata
),
contains
(
'project_type: app
'
));
});
testUsingContext
(
'can re-gen default template over existing app project with no metadta and detect the type'
,
()
async
{
...
...
@@ -1138,7 +1138,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
final
String
metadata
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
'.metadata'
)).
readAsStringSync
();
expect
(
metadata
,
contains
(
'project_type: app
\n
'
));
expect
(
LineSplitter
.
split
(
metadata
),
contains
(
'project_type: app
'
));
});
testUsingContext
(
'can re-gen app template over existing app project and detect the type'
,
()
async
{
...
...
@@ -1152,7 +1152,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
final
String
metadata
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
'.metadata'
)).
readAsStringSync
();
expect
(
metadata
,
contains
(
'project_type: app
\n
'
));
expect
(
LineSplitter
.
split
(
metadata
),
contains
(
'project_type: app
'
));
});
testUsingContext
(
'can re-gen template over existing module project and detect the type'
,
()
async
{
...
...
@@ -1166,7 +1166,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
final
String
metadata
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
'.metadata'
)).
readAsStringSync
();
expect
(
metadata
,
contains
(
'project_type: module
\n
'
));
expect
(
LineSplitter
.
split
(
metadata
),
contains
(
'project_type: module
'
));
});
testUsingContext
(
'can re-gen default template over existing plugin project and detect the type'
,
()
async
{
...
...
@@ -1180,7 +1180,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
final
String
metadata
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
'.metadata'
)).
readAsStringSync
();
expect
(
metadata
,
contains
(
'project_type: plugin'
));
expect
(
LineSplitter
.
split
(
metadata
)
,
contains
(
'project_type: plugin'
));
});
testUsingContext
(
'can re-gen default template over existing package project and detect the type'
,
()
async
{
...
...
@@ -1194,7 +1194,7 @@ void main() {
await
runner
.
run
(<
String
>[
'create'
,
'--no-pub'
,
projectDir
.
path
]);
final
String
metadata
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
'.metadata'
)).
readAsStringSync
();
expect
(
metadata
,
contains
(
'project_type: package'
));
expect
(
LineSplitter
.
split
(
metadata
)
,
contains
(
'project_type: package'
));
});
testUsingContext
(
'can re-gen module .android/ folder, reusing custom org'
,
()
async
{
...
...
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