blob: 638e0b843451fca58e098f7012adb46b3d10a65e [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.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
var image = new Image();
var canvas = document.createElement('canvas');
canvas.width = 400;
canvas.height = 400;
document.body.appendChild(canvas);
var testOptions = {sourceName: "HTMLImageElement", imageSource: image,
sourceIsPremul: true, resizeWidth: 16, resizeHeight: 16,
resultsCanvas: canvas, printDebugInfoToConsole: false};
prepareWebGLContext(testOptions);
image.onload = function() {
prepareResizedImageBitmapsAndRuntTests(testOptions);
};
image.src = 'resources/red-green-semi-transparent-2x2.png';
</script>