-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only apply /-prefix handling to special URL-like specifiers
Closes #166.
- Loading branch information
Showing
5 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
reference-implementation/__tests__/json/url-specifiers-schemes.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"importMap": { | ||
"imports": { | ||
"data:text/": "/lib/test-data/", | ||
"about:text/": "/lib/test-about/", | ||
"blob:text/": "/lib/test-blob/", | ||
"blah:text/": "/lib/test-blah/", | ||
"http:text/": "/lib/test-http/", | ||
"https:text/": "/lib/test-https/", | ||
"file:text/": "/lib/test-file/", | ||
"ftp:text/": "/lib/test-ftp/", | ||
"ws:text/": "/lib/test-ws/", | ||
"wss:text/": "/lib/test-wss/" | ||
} | ||
}, | ||
"importMapBaseURL": "https://example.com/app/index.html", | ||
"baseURL": "https://example.com/js/app.mjs", | ||
"name": "URL-like specifiers", | ||
"tests": { | ||
"Non-special vs. special schemes": { | ||
"expectedResults": { | ||
"data:text/javascript,console.log('foo')": "data:text/javascript,console.log('foo')", | ||
"data:text/": "https://example.com/lib/test-data/", | ||
"about:text/foo": "about:text/foo", | ||
"about:text/": "https://example.com/lib/test-about/", | ||
"blob:text/foo": "blob:text/foo", | ||
"blob:text/": "https://example.com/lib/test-blob/", | ||
"blah:text/foo": "blah:text/foo", | ||
"blah:text/": "https://example.com/lib/test-blah/", | ||
"http:text/foo": "https://example.com/lib/test-http/foo", | ||
"http:text/": "https://example.com/lib/test-http/", | ||
"https:text/foo": "https://example.com/lib/test-https/foo", | ||
"https:text/": "https://example.com/lib/test-https/", | ||
"ftp:text/foo": "https://example.com/lib/test-ftp/foo", | ||
"ftp:text/": "https://example.com/lib/test-ftp/", | ||
"file:text/foo": "https://example.com/lib/test-file/foo", | ||
"file:text/": "https://example.com/lib/test-file/", | ||
"ws:text/foo": "https://example.com/lib/test-ws/foo", | ||
"ws:text/": "https://example.com/lib/test-ws/", | ||
"wss:text/foo": "https://example.com/lib/test-wss/foo", | ||
"wss:text/": "https://example.com/lib/test-wss/" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters