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
ddb8bfb7
Unverified
Commit
ddb8bfb7
authored
Aug 16, 2021
by
Jason Simmons
Committed by
GitHub
Aug 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix URL construction in the test entry point generated by the web bootstrap script (#88201)
parent
e761e649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
bootstrap.dart
packages/flutter_tools/lib/src/web/bootstrap.dart
+1
-1
bootstrap_test.dart
.../flutter_tools/test/general.shard/web/bootstrap_test.dart
+11
-0
No files found.
packages/flutter_tools/lib/src/web/bootstrap.dart
View file @
ddb8bfb7
...
...
@@ -193,7 +193,7 @@ String generateTestEntrypoint({
Future
<
void
>
main
()
async
{
ui
.
debugEmulateFlutterTesterEnvironment
=
true
;
await
ui
.
webOnlyInitializePlatform
();
webGoldenComparator
=
DefaultWebGoldenComparator
(
Uri
.
parse
(
'
$
absolutePath
'
));
webGoldenComparator
=
DefaultWebGoldenComparator
(
Uri
.
parse
(
'
$
{Uri.file(absolutePath)}
'
));
(
ui
.
window
as
dynamic
).
debugOverrideDevicePixelRatio
(
3.0
);
(
ui
.
window
as
dynamic
).
webOnlyDebugPhysicalSizeOverride
=
const
ui
.
Size
(
2400
,
1800
);
...
...
packages/flutter_tools/test/general.shard/web/bootstrap_test.dart
View file @
ddb8bfb7
...
...
@@ -102,4 +102,15 @@ test('generateBootstrapScript includes loading indicator', () {
expect
(
result
,
contains
(
'test_config.testExecutable'
));
});
test
(
'generateTestEntrypoint embeds urls correctly'
,
()
{
final
String
result
=
generateTestEntrypoint
(
relativeTestPath:
'relative_path.dart'
,
absolutePath:
'/test/absolute_path.dart'
,
testConfigPath:
null
,
languageVersion:
LanguageVersion
(
2
,
8
),
);
expect
(
result
,
contains
(
"Uri.parse('file:///test/absolute_path.dart')"
));
});
}
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