Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / copy-image-when-no-image-exists.html
blob56cd6bb460c04398b66c525575997e141f32385b
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) -->
4 <head>
5 <script src="../resources/js-test.js"></script>
6 <script>
8 function main()
10 if (!window.testRunner) {
11 testFailed("Requires window.testRunner");
12 } else {
13 testRunner.waitUntilDone();
14 testRunner.dumpAsText();
15 window.requestAnimationFrame(runTest);
19 function runTest() {
20 try {
21 testRunner.copyImageAtAndCapturePixelsAsyncThen(50, 50, completionCallback);
22 } catch (e) {
23 debug('error in runTest');
24 debug(e);
25 testRunner.notifyDone();
28 var width, height;
29 function completionCallback(w, h, snapshot) {
30 try {
31 width = w;
32 height = h;
33 shouldBeEqualToNumber("width", 0);
34 shouldBeEqualToNumber("height", 0);
35 } catch (e) {
36 debug('error in completionCallback');
37 debug(e);
38 testRunner.notifyDone();
39 return;
41 testRunner.notifyDone();
44 main();
45 </script>
46 </head>
47 <body>
48 <div id="console"></div>
49 </body>