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
b1d65e31
Unverified
Commit
b1d65e31
authored
Dec 01, 2020
by
Jonah Williams
Committed by
GitHub
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] support canvaskit unit testing (#70969)
parent
e5000f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
flutter_web_platform.dart
...ages/flutter_tools/lib/src/test/flutter_web_platform.dart
+16
-6
No files found.
packages/flutter_tools/lib/src/test/flutter_web_platform.dart
View file @
b1d65e31
...
...
@@ -146,6 +146,18 @@ class FlutterWebPlatform extends PlatformPlugin {
/// Uri of the test package.
Uri
get
testUri
=>
_flutterToolPackageConfig
[
'test'
].
packageUriRoot
;
WebRendererMode
get
_rendererMode
{
return
buildInfo
.
dartDefines
.
contains
(
'FLUTTER_WEB_USE_SKIA=true'
)
?
WebRendererMode
.
canvaskit
:
WebRendererMode
.
html
;
}
NullSafetyMode
get
_nullSafetyMode
{
return
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
?
NullSafetyMode
.
sound
:
NullSafetyMode
.
unsound
;
}
final
Configuration
_config
;
final
shelf
.
Server
_server
;
Uri
get
url
=>
_server
.
url
;
...
...
@@ -178,13 +190,11 @@ class FlutterWebPlatform extends PlatformPlugin {
'dart_stack_trace_mapper.js'
,
));
File
get
_dartSdk
=>
_fileSystem
.
file
(
_artifacts
.
getArtifactPath
(
kDartSdkJsArtifactMap
[
WebRendererMode
.
html
][
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
?
NullSafetyMode
.
sound
:
NullSafetyMode
.
unsound
]));
File
get
_dartSdk
=>
_fileSystem
.
file
(
_artifacts
.
getArtifactPath
(
kDartSdkJsArtifactMap
[
_rendererMode
][
_nullSafetyMode
]));
File
get
_dartSdkSourcemaps
=>
_fileSystem
.
file
(
_artifacts
.
getArtifactPath
(
kDartSdkJsMapArtifactMap
[
WebRendererMode
.
html
][
buildInfo
.
nullSafetyMode
==
NullSafetyMode
.
sound
?
NullSafetyMode
.
sound
:
NullSafetyMode
.
unsound
]));
File
get
_dartSdkSourcemaps
=>
_fileSystem
.
file
(
_artifacts
.
getArtifactPath
(
kDartSdkJsMapArtifactMap
[
_rendererMode
][
_nullSafetyMode
]));
/// The precompiled test javascript.
File
get
_testDartJs
=>
_fileSystem
.
file
(
_fileSystem
.
path
.
join
(
...
...
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