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

Side by Side Diff: LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args.html

Issue 240103002: Use StrictTypeChecking for ImageBitmap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("Ensure correct behavior of createImageBitmap for invalid inputs."); 8 description("Ensure correct behavior of createImageBitmap for invalid inputs.");
9 window.jsTestIsAsync = true; 9 window.jsTestIsAsync = true;
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } else { 107 } else {
108 testFailed("Invalid canvas fulfilled."); 108 testFailed("Invalid canvas fulfilled.");
109 } 109 }
110 finishJSTest(); 110 finishJSTest();
111 } 111 }
112 } 112 }
113 113
114 function loaded() { 114 function loaded() {
115 if (imageLoaded && videoLoaded && imageBitmapLoaded && blobLoaded && invalid BlobLoaded) { 115 if (imageLoaded && videoLoaded && imageBitmapLoaded && blobLoaded && invalid BlobLoaded) {
116 shouldThrow("createImageBitmap(undefined)", "TypeError"); 116 shouldThrow("createImageBitmap(undefined)", "TypeError");
117 shouldThrow("createImageBitmap(null)", "TypeError");
117 118
118 shouldThrow("createImageBitmap(image, 0, 0, 10, 0)"); 119 shouldThrow("createImageBitmap(image, 0, 0, 10, 0)");
119 shouldThrow("createImageBitmap(image, 0, 0, 0, 10)"); 120 shouldThrow("createImageBitmap(image, 0, 0, 0, 10)");
120 121
121 shouldThrow("createImageBitmap(video, 0, 0, 10, 0)"); 122 shouldThrow("createImageBitmap(video, 0, 0, 10, 0)");
122 shouldThrow("createImageBitmap(video, 0, 0, 0, 10)"); 123 shouldThrow("createImageBitmap(video, 0, 0, 0, 10)");
123 124
124 shouldThrow("createImageBitmap(aCanvas, 0, 0, 10, 0)"); 125 shouldThrow("createImageBitmap(aCanvas, 0, 0, 10, 0)");
125 shouldThrow("createImageBitmap(aCanvas, 0, 0, 0, 10)"); 126 shouldThrow("createImageBitmap(aCanvas, 0, 0, 0, 10)");
126 127
(...skipping 20 matching lines...) Expand all
147 finishIfDone(); 148 finishIfDone();
148 }, function() { 149 }, function() {
149 invalidCanvasTestPassed = true; 150 invalidCanvasTestPassed = true;
150 finishIfDone(); 151 finishIfDone();
151 }); 152 });
152 } 153 }
153 } 154 }
154 </script> 155 </script>
155 </body> 156 </body>
156 </html> 157 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698