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

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

Issue 2189733003: Remove virtual test suits virtual/threaded/fast/canvas-toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 <script src="../../../../resources/js-test.js"></script> 1 <script src="../../resources/js-test.js"></script>
2 <script type='text/javascript'> 2 <script type='text/javascript'>
3 description("Test the handling of invalid arguments in canvas toBlob()."); 3 description("Test the handling of invalid arguments in canvas toBlob().");
4 4
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 var numAsyncCalls = 2; 10 var numAsyncCalls = 2;
11 function finishOneAsyncCall() 11 function finishOneAsyncCall()
(...skipping 11 matching lines...) Expand all
23 23
24 shouldThrow("canvas.toBlob();"); 24 shouldThrow("canvas.toBlob();");
25 shouldThrow("canvas.toBlob(null);"); 25 shouldThrow("canvas.toBlob(null);");
26 shouldThrow("canvas.toBlob(undefined);"); 26 shouldThrow("canvas.toBlob(undefined);");
27 // Passing the callback argument without blob handle silently fails. 27 // Passing the callback argument without blob handle silently fails.
28 shouldNotThrow("canvas.toBlob(function() { finishOneAsyncCall(); });"); 28 shouldNotThrow("canvas.toBlob(function() { finishOneAsyncCall(); });");
29 29
30 // Invalid quality argument will fall back to default value 30 // Invalid quality argument will fall back to default value
31 shouldNotThrow("canvas.toBlob(function(blob) { finishOneAsyncCall(); }, 'image/j peg', 500)"); 31 shouldNotThrow("canvas.toBlob(function(blob) { finishOneAsyncCall(); }, 'image/j peg', 500)");
32 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698