blob: bc4c41cc566462f356c91b39cfc43683c40a8add [file] [log] [blame]
<html>
<script src="./resources/webgl-test-utils-full.js"></script>
<script src="./resources/tex-image-and-sub-image-utils.js"></script>
<script src="./resources/tex-image-and-sub-image-image-bitmap-utils-resize.js"></script>
<body>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
var canvas = document.createElement('canvas');
canvas.width = 400;
canvas.height = 400;
document.body.appendChild(canvas);
var testOptions = {sourceName: "Blob", sourceIsPremul: true, resizeWidth: 16,
resizeHeight: 16, resultsCanvas: canvas,
printDebugInfoToConsole: false};
prepareWebGLContext(testOptions);
var xhr = new XMLHttpRequest();
xhr.open("GET", 'resources/red-green-semi-transparent-2x2.png');
xhr.responseType = 'blob';
xhr.send();
xhr.onload = function() {
testOptions.imageSource = xhr.response;
prepareResizedImageBitmapsAndRuntTests(testOptions);
};
</script>