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
e599cdd4
Unverified
Commit
e599cdd4
authored
Jan 22, 2021
by
Jonah Williams
Committed by
GitHub
Jan 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] fix web messaging (#74513)
parent
1d3f6971
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
resident_web_runner.dart
...s/flutter_tools/lib/src/isolated/resident_web_runner.dart
+1
-8
resident_web_runner_test.dart
...er_tools/test/general.shard/resident_web_runner_test.dart
+13
-0
No files found.
packages/flutter_tools/lib/src/isolated/resident_web_runner.dart
View file @
e599cdd4
...
...
@@ -184,14 +184,7 @@ abstract class ResidentWebRunner extends ResidentRunner {
fire
+
globals
.
terminal
.
bolden
(
rawMessage
),
TerminalColor
.
red
,
);
if
(!
flutterNext
)
{
globals
.
printStatus
(
"Warning: Flutter's support for web development is not stable yet and hasn't"
);
globals
.
printStatus
(
'been thoroughly tested in production environments.'
);
globals
.
printStatus
(
'For more information see https://flutter.dev/web'
);
globals
.
printStatus
(
''
);
globals
.
printStatus
(
message
);
}
globals
.
printStatus
(
message
);
const
String
quitMessage
=
'To quit, press "q".'
;
if
(
device
.
device
is
!
WebServerDevice
)
{
globals
.
printStatus
(
'For a more detailed help message, press "h".
$quitMessage
'
);
...
...
packages/flutter_tools/test/general.shard/resident_web_runner_test.dart
View file @
e599cdd4
...
...
@@ -891,6 +891,19 @@ void main() {
Platform:
()
=>
FakePlatform
(
operatingSystem:
'linux'
,
environment:
<
String
,
String
>{}),
});
testUsingContext
(
'printHelp without details shows hot restart help message'
,
()
async
{
final
ResidentRunner
residentWebRunner
=
setUpResidentRunner
(
mockFlutterDevice
);
fakeVmServiceHost
=
FakeVmServiceHost
(
requests:
<
VmServiceExpectation
>[]);
residentWebRunner
.
printHelp
(
details:
false
);
expect
(
testLogger
.
statusText
,
contains
(
'To hot restart changes'
));
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
fileSystem
,
ProcessManager:
()
=>
processManager
,
Pub:
()
=>
MockPub
(),
Platform:
()
=>
FakePlatform
(
operatingSystem:
'linux'
,
environment:
<
String
,
String
>{}),
});
testUsingContext
(
'debugDumpApp'
,
()
async
{
final
ResidentRunner
residentWebRunner
=
setUpResidentRunner
(
mockFlutterDevice
);
fakeVmServiceHost
=
FakeVmServiceHost
(
requests:
<
VmServiceExpectation
>[
...
...
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