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
9818d2df
Unverified
Commit
9818d2df
authored
Aug 22, 2019
by
Jonah Williams
Committed by
GitHub
Aug 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add web workflow to default validators (#39006)
parent
663dc1d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+3
-0
doctor_test.dart
...lutter_tools/test/general.shard/commands/doctor_test.dart
+13
-0
No files found.
packages/flutter_tools/lib/src/doctor.dart
View file @
9818d2df
...
...
@@ -125,6 +125,9 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
if
(
windowsWorkflow
.
appliesToHostPlatform
)
_workflows
.
add
(
windowsWorkflow
);
if
(
webWorkflow
.
appliesToHostPlatform
)
_workflows
.
add
(
webWorkflow
);
}
return
_workflows
;
}
...
...
packages/flutter_tools/test/general.shard/commands/doctor_test.dart
View file @
9818d2df
...
...
@@ -4,6 +4,9 @@
import
'dart:async'
;
import
'package:flutter_tools/src/base/process_manager.dart'
;
import
'package:flutter_tools/src/features.dart'
;
import
'package:flutter_tools/src/web/workflow.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:process/process.dart'
;
...
...
@@ -22,6 +25,7 @@ import 'package:flutter_tools/src/vscode/vscode_validator.dart';
import
'../../src/common.dart'
;
import
'../../src/context.dart'
;
import
'../../src/testbed.dart'
;
final
Generator
_kNoColorOutputPlatform
=
()
=>
FakePlatform
.
fromPlatform
(
const
LocalPlatform
())..
stdoutSupportsAnsi
=
false
;
final
Map
<
Type
,
Generator
>
noColorTerminalOverride
=
<
Type
,
Generator
>{
...
...
@@ -587,6 +591,15 @@ void main() {
expect
(
testLogger
.
statusText
,
startsWith
(
'[✗]'
));
},
overrides:
noColorTerminalOverride
);
});
testUsingContext
(
'WebWorkflow is a part of validator workflows if enabled'
,
()
async
{
when
(
processManager
.
canRun
(
any
)).
thenReturn
(
true
);
expect
(
DoctorValidatorsProvider
.
defaultInstance
.
workflows
.
contains
(
webWorkflow
),
true
);
},
overrides:
<
Type
,
Generator
>{
FeatureFlags:
()
=>
TestFeatureFlags
(
isWebEnabled:
true
),
ProcessManager:
()
=>
MockProcessManager
(),
});
}
class
MockUsage
extends
Mock
implements
Usage
{}
...
...
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