blob: 234c52f737fe77529136d35460098d4bf4d87557 [file] [log] [blame]
<body>
<p>This test ensures an image with decoding="sync" will be decoded synchronously regardless of its size.</p>
<img decoding="sync">
<script>
(function() {
if (window.internals && window.testRunner) {
internals.clearMemoryCache();
internals.settings.setLargeImageAsyncDecodingEnabled(true);
testRunner.waitUntilDone();
}
var image = document.querySelector("img");
image.onload = (() => {
if (window.testRunner)
testRunner.notifyDone();
});
image.src = "resources/green-400x400.png";
})();
</script>
</body>