diff --git a/integration_tests/specs/dom/elements/img.ts b/integration_tests/specs/dom/elements/img.ts index 73a5ea0518..ab36447e3d 100644 --- a/integration_tests/specs/dom/elements/img.ts +++ b/integration_tests/specs/dom/elements/img.ts @@ -109,7 +109,7 @@ describe('Tags img', () => { img.src = 'assets/solidblue.png'; await snapshot(0.1); src = img.src; - expect(src).toBe('assets/solidblue.png'); + expect(src).toBe('assets:///assets/solidblue.png'); done(); }); diff --git a/integration_tests/specs/dom/elements/script.ts b/integration_tests/specs/dom/elements/script.ts index 4a3722b6a9..3da704ab6a 100644 --- a/integration_tests/specs/dom/elements/script.ts +++ b/integration_tests/specs/dom/elements/script.ts @@ -4,7 +4,7 @@ describe('script element', () => { const p =

Should see hello below:

; document.body.appendChild(p); var x = document.createElement('script'); - x.src = 'assets://assets/hello.js'; + x.src = 'assets:///assets/hello.js'; document.head.appendChild(x); x.onload = async () => { await snapshot(); diff --git a/kraken/lib/src/launcher/bundle.dart b/kraken/lib/src/launcher/bundle.dart index c5a5383328..597df03876 100644 --- a/kraken/lib/src/launcher/bundle.dart +++ b/kraken/lib/src/launcher/bundle.dart @@ -280,7 +280,7 @@ class AssetsBundle extends KrakenBundle { } /// Get flutter asset name from uri scheme asset. - /// eg: assets://foo/bar.html -> foo/bar.html + /// eg: assets:///foo/bar.html -> foo/bar.html static String getAssetName(Uri resolvedUri) { String assetName = resolvedUri.path;