File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11## 1.14.3-dev
22
33* Fix an issue where coverage tests could not run in Chrome headless.
4+ * Fix an issue where coverage collection would not work with source
5+ maps that contained absolute file URIs.
46
57## 1.14.2
68
Original file line number Diff line number Diff line change @@ -119,13 +119,16 @@ class Chrome extends Browser {
119119 Future <Uri > _sourceUriProvider (String sourceUrl, String scriptId) async {
120120 var script = _idToUrl[scriptId];
121121 if (script == null ) return null ;
122+ var sourceUri = Uri .parse (sourceUrl);
123+ if (sourceUri.scheme == 'file' ) return sourceUri;
124+ // If the provided sourceUrl is relative, determine the package path.
122125 var uri = Uri .parse (script);
123126 var path = p.join (
124127 p.joinAll (uri.pathSegments.sublist (1 , uri.pathSegments.length - 1 )),
125128 sourceUrl);
126129 return path.contains ('/packages/' )
127130 ? Uri (scheme: 'package' , path: path.split ('/packages/' ).last)
128- : Uri . file (p. absolute (path)) ;
131+ : null ;
129132 }
130133
131134 Future <String > _sourceMapProvider (String scriptId) async {
You can’t perform that action at this time.
0 commit comments