1 <!-- This test checks copyImageAt() with position parameter
2 that actually doesn't point to an Image(Canvas).
3 (Negative test for crbug.com/392765) -->
5 <script src=
"../resources/js-test.js"></script>
10 if (!window
.testRunner
) {
11 testFailed("Requires window.testRunner");
13 testRunner
.waitUntilDone();
14 testRunner
.dumpAsText();
15 window
.requestAnimationFrame(runTest
);
21 testRunner
.copyImageAtAndCapturePixelsAsyncThen(50, 50, completionCallback
);
23 debug('error in runTest');
25 testRunner
.notifyDone();
29 function completionCallback(w
, h
, snapshot
) {
33 shouldBeEqualToNumber("width", 0);
34 shouldBeEqualToNumber("height", 0);
36 debug('error in completionCallback');
38 testRunner
.notifyDone();
41 testRunner
.notifyDone();
48 <div id=
"console"></div>