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

Side by Side Diff: LayoutTests/fast/canvas/resources/canvas-createImageBitmap-invalid-args-in-workers.js

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
OLDNEW
1 importScripts('../../../resources/js-test.js'); 1 importScripts('../../../resources/js-test.js');
2 2
3 self.jsTestIsAsync = true; 3 self.jsTestIsAsync = true;
4 4
5 description('Test createImageBitmap with invalid arguments in workers.'); 5 description('Test createImageBitmap with invalid arguments in workers.');
6 6
7 var data; 7 var data;
8 8
9 self.addEventListener('message', function(e) { 9 self.addEventListener('message', function(e) {
10 data = e.data; 10 data = e.data;
11 shouldThrow("createImageBitmap(null, 0, 0, 10, 10)");
11 shouldThrow("createImageBitmap(data, 0, 0, 10, 0)"); 12 shouldThrow("createImageBitmap(data, 0, 0, 10, 0)");
12 shouldThrow("createImageBitmap(data, 0, 0, 0, 10)"); 13 shouldThrow("createImageBitmap(data, 0, 0, 0, 10)");
13 finishJSTest(); 14 finishJSTest();
14 }); 15 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698