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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-invalid.html

Issue 1496683005: Make callback arg non-nullable on canvas.toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small correction Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-invalid-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
(Empty)
1 <script src="../../resources/js-test.js"></script>
2 <script type='text/javascript'>
3 description("Test the handling of invalid arguments in canvas toBlob().");
4
5 var canvas = document.createElement('canvas');
6 var ctx = canvas.getContext("2d");
7 ctx.strokeStyle = "red";
8 ctx.strokeRect(0, 0, 50, 50);
9
10 shouldThrow("canvas.toBlob();");
11 shouldThrow("canvas.toBlob(null);");
12 shouldThrow("canvas.toBlob(undefined);");
Noel Gordon 2015/12/11 01:01:45 The way it's going, we should add shouldThrow("c
13 // Passing the callback argument without blob handle silently fails.
14 shouldNotThrow("canvas.toBlob(function() {});");
15
16 // Invalid quality argument will fall back to default value
17 shouldNotThrow("canvas.toBlob(function(blob) {}, 'image/jpeg', 500)");
18 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-invalid-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698