summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/fetch/orb/tentative/compressed-image-sniffing.sub.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/fetch/orb/tentative/compressed-image-sniffing.sub.html')
-rw-r--r--test/wpt/tests/fetch/orb/tentative/compressed-image-sniffing.sub.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/wpt/tests/fetch/orb/tentative/compressed-image-sniffing.sub.html b/test/wpt/tests/fetch/orb/tentative/compressed-image-sniffing.sub.html
new file mode 100644
index 0000000..38e70c6
--- /dev/null
+++ b/test/wpt/tests/fetch/orb/tentative/compressed-image-sniffing.sub.html
@@ -0,0 +1,20 @@
+<!-- Test verifies that compressed images should not be blocked
+-->
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<div id=log></div>
+<script>
+async_test(function(t) {
+ let url = "http://{{domains[www1]}}:{{ports[http][0]}}"
+ url = url + "/fetch/orb/resources/png-unlabeled.png?pipe=gzip"
+
+ const img = document.createElement("img");
+ img.src = url;
+ img.onerror = t.unreached_func("Unexpected error event")
+ img.onload = t.step_func_done(function () {
+ assert_true(true);
+ })
+ document.body.appendChild(img)
+}, "ORB shouldn't block compressed images");
+</script>
+