Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1035795 // test_dataURLMimeType (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9434L/52K).

svoid test_dataURLMimeType() {
  testFunctionValues(url -> dataURLMimeType((S) url),
    "data:image/png;base64,iVBORw0K...", "image/png",
    "data:image/png,iVBORw0K...", "image/png",
    null, null,
    "bla", null,
    "data:image/png", null, // malformed data URL
  );
}

Author comment

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: 55 / 86
Version history: 5 change(s)
Referenced in: [show references]