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

Side by Side Diff: LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 description("Test the argument bounds of canvas createImageData."); 1 description("Test the argument bounds of canvas createImageData.");
2 2
3 var canvas = document.getElementById('canvas'); 3 var canvas = document.getElementById('canvas');
4 var ctx = canvas.getContext('2d'); 4 var ctx = canvas.getContext('2d');
5 5
6 shouldThrow("ctx.createImageData(Infinity, Infinity)", '"Error: NotSupportedErro r: DOM Exception 9"'); 6 shouldThrow("ctx.createImageData(Infinity, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
7 shouldThrow("ctx.createImageData(Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"'); 7 shouldThrow("ctx.createImageData(Infinity, 10)", '"NotSupportedError: The implem entation did not support the requested type of object or operation."');
8 shouldThrow("ctx.createImageData(-Infinity, 10)", '"Error: NotSupportedError: DO M Exception 9"'); 8 shouldThrow("ctx.createImageData(-Infinity, 10)", '"NotSupportedError: The imple mentation did not support the requested type of object or operation."');
9 shouldThrow("ctx.createImageData(10, Infinity)", '"Error: NotSupportedError: DOM Exception 9"'); 9 shouldThrow("ctx.createImageData(10, Infinity)", '"NotSupportedError: The implem entation did not support the requested type of object or operation."');
10 shouldThrow("ctx.createImageData(10, -Infinity)", '"Error: NotSupportedError: DO M Exception 9"'); 10 shouldThrow("ctx.createImageData(10, -Infinity)", '"NotSupportedError: The imple mentation did not support the requested type of object or operation."');
11 shouldThrow("ctx.createImageData(NaN, 10)", '"Error: NotSupportedError: DOM Exce ption 9"'); 11 shouldThrow("ctx.createImageData(NaN, 10)", '"NotSupportedError: The implementat ion did not support the requested type of object or operation."');
12 shouldThrow("ctx.createImageData(10, NaN)", '"Error: NotSupportedError: DOM Exce ption 9"'); 12 shouldThrow("ctx.createImageData(10, NaN)", '"NotSupportedError: The implementat ion did not support the requested type of object or operation."');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698