blob: 7011c348a644774daa505c7b98bfb00d053c0a56 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
async function runTest() {
const mimeTypes = [
"audio/mpegURL",
"video/mpegURL",
"application/x-mpegurl",
"vnd.apple.mpegurl",
"text/plain",
"te#xt/plain"
];
for (const mimeType of mimeTypes) {
try {
let response = await fetch("data:" + mimeType + ",text#fragment");
let text = await response.text();
alert(mimeType + " " + text);
} catch (e) {
alert("caught error with mime type " + mimeType);
}
}
if (window.testRunner) { testRunner.notifyDone(); }
}
runTest();
</script>