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
10e65a16
Commit
10e65a16
authored
7 years ago
by
Chris Bracken
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor whitespace formatting fix in build tests (#11802)
parent
f235a2c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
build_test.dart
packages/flutter_tools/test/base/build_test.dart
+7
-7
No files found.
packages/flutter_tools/test/base/build_test.dart
View file @
10e65a16
...
...
@@ -39,7 +39,7 @@ void main() {
()
=>
new
Checksum
.
fromFiles
(
BuildMode
.
debug
,
TargetPlatform
.
ios
,
<
String
>[
'a.dart'
,
'b.dart'
].
toSet
()),
throwsA
(
anything
),
);
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
testUsingContext
(
'throws if any build mode is null'
,
()
async
{
await
fs
.
file
(
'a.dart'
).
create
();
...
...
@@ -47,7 +47,7 @@ void main() {
()
=>
new
Checksum
.
fromFiles
(
null
,
TargetPlatform
.
ios
,
<
String
>[
'a.dart'
,
'b.dart'
].
toSet
()),
throwsA
(
anything
),
);
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
testUsingContext
(
'does not throw if any target platform is null'
,
()
async
{
await
fs
.
file
(
'a.dart'
).
create
();
...
...
@@ -55,7 +55,7 @@ void main() {
new
Checksum
.
fromFiles
(
BuildMode
.
debug
,
null
,
<
String
>[
'a.dart'
].
toSet
()),
isNotNull
,
);
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
testUsingContext
(
'populates checksums for valid files'
,
()
async
{
await
fs
.
file
(
'a.dart'
).
writeAsString
(
'This is a'
);
...
...
@@ -159,7 +159,7 @@ void main() {
testUsingContext
(
'returns one file if only one is listed'
,
()
async
{
await
fs
.
file
(
'a.d'
).
writeAsString
(
'snapshot.d: /foo/a.dart'
);
expect
(
await
readDepfile
(
'a.d'
),
unorderedEquals
(<
String
>[
'/foo/a.dart'
]));
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
testUsingContext
(
'returns multiple files'
,
()
async
{
await
fs
.
file
(
'a.d'
).
writeAsString
(
'snapshot.d: /foo/a.dart /foo/b.dart'
);
...
...
@@ -167,7 +167,7 @@ void main() {
'/foo/a.dart'
,
'/foo/b.dart'
,
]));
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
testUsingContext
(
'trims extra spaces between files'
,
()
async
{
await
fs
.
file
(
'a.d'
).
writeAsString
(
'snapshot.d: /foo/a.dart /foo/b.dart /foo/c.dart'
);
...
...
@@ -176,7 +176,7 @@ void main() {
'/foo/b.dart'
,
'/foo/c.dart'
,
]));
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
testUsingContext
(
'returns files with spaces and backslashes'
,
()
async
{
await
fs
.
file
(
'a.d'
).
writeAsString
(
r'snapshot.d: /foo/a\ a.dart /foo/b\\b.dart /foo/c\\ c.dart'
);
...
...
@@ -185,6 +185,6 @@ void main() {
r'/foo/b\b.dart'
,
r'/foo/c\ c.dart'
,
]));
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fs
});
});
}
This diff is collapsed.
Click to expand it.
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