chromium/third_party/blink/web_tests/http/tests/webcodecs/image_decoder_exact_mime_type.html

<!DOCTYPE html>
<title>ImageDecoder requires exact mime types</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
  fetch('/resources/square.png')
      .then(t.step_func(response => {
        response.arrayBuffer()
            .then(t.step_func(buffer => {
              let decoder = new ImageDecoder({data: buffer, type: 'image/gif'})
              decoder.tracks.ready.then(t.unreached_func())
                  .catch(t.step_func(e => {
                    t.done();
                  }));
            }))
            .catch(t.unreached_func());
      }))
      .catch(t.unreached_func());
});
</script>