Skip to content

Commit

Permalink
fix: specs
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 committed Mar 21, 2022
1 parent b549220 commit ee5c2c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration_tests/specs/dom/elements/img.ts
Expand Up @@ -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();
});

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/specs/dom/elements/script.ts
Expand Up @@ -4,7 +4,7 @@ describe('script element', () => {
const p = <p>Should see hello below:</p>;
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();
Expand Down
2 changes: 1 addition & 1 deletion kraken/lib/src/launcher/bundle.dart
Expand Up @@ -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;

Expand Down

0 comments on commit ee5c2c2

Please sign in to comment.