chromium/third_party/blink/web_tests/fast/webgl/texImage-imageBitmap-from-imageData-resize.html

<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 imageData = new ImageData(new Uint8ClampedArray(
                              [255, 0, 0, 255,
                               255, 0, 0, 26,
                               0, 255, 0, 255,
                               0, 255, 0, 26]),
                               2, 2);

var testOptions = {sourceName: "ImageData",
				   imageSource: imageData, sourceIsPremul: false,
				   resizeWidth: 16, resizeHeight: 16,
				   resultsCanvas: canvas,
           printDebugInfoToConsole: false};
prepareWebGLContext(testOptions);
prepareResizedImageBitmapsAndRuntTests(testOptions);
</script>