Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: LayoutTests/fast/canvas/drawImage-with-broken-image.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <script> 6 <script>
7 window.jsTestIsAsync = true; 7 window.jsTestIsAsync = true;
8 description("This test checks behavior of Canvas::drawImage with a broken so urce image."); 8 description("This test checks behavior of Canvas::drawImage with a broken so urce image.");
9 9
10 var InvalidStateError = "InvalidStateError: An attempt was made to use an ob ject that is not, or is no longer, usable."; 10 var InvalidStateError = "InvalidStateError: An attempt was made to use an ob ject that is not, or is no longer, usable.";
(...skipping 16 matching lines...) Expand all
27 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 20, 20)", "InvalidStateEr ror"); 27 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 20, 20)", "InvalidStateEr ror");
28 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 20, 20, 0, 0, 20, 20)", " InvalidStateError"); 28 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 20, 20, 0, 0, 20, 20)", " InvalidStateError");
29 29
30 // InvalidStateError takes precedence over IndexSizeError 30 // InvalidStateError takes precedence over IndexSizeError
31 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 0, 20)", "InvalidStateErr or"); 31 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 0, 20)", "InvalidStateErr or");
32 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 0, 20, 0, 0, 20, 20)", "I nvalidStateError"); 32 shouldThrow("ctx.drawImage(invalidImage, 0, 0, 0, 20, 0, 0, 20, 20)", "I nvalidStateError");
33 33
34 finishJSTest(); 34 finishJSTest();
35 } 35 }
36 </script> 36 </script>
37 <script src="../js/resources/js-test-post.js"></script>
38 </body> 37 </body>
39 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698