Libraryless. Click here for Pure Java version (9434L/52K).
1 | svoid test_dataURLMimeType() {
|
2 | testFunctionValues(url -> dataURLMimeType((S) url), |
3 | "data:image/png;base64,iVBORw0K...", "image/png", |
4 | "data:image/png,iVBORw0K...", "image/png", |
5 | null, null, |
6 | "bla", null, |
7 | "data:image/png", null, // malformed data URL |
8 | ); |
9 | } |
Began life as a copy of #1035794
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1035795 |
| Snippet name: | test_dataURLMimeType (OK) |
| Eternal ID of this version: | #1035795/6 |
| Text MD5: | 45fc79016e568f04a43b0c18a76fb8ec |
| Transpilation MD5: | ed290b9c09bde265a8258c958fe81f69 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-07-29 19:24:35 |
| Source code size: | 283 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 377 / 479 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |