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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js

Issue 2674933002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections Created 3 years, 10 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
(Empty)
1 description("Test the handling of invalid arguments in canvas getImageData().");
2
3 ctx = document.createElement('canvas').getContext('2d');
4
5 shouldThrow("ctx.getImageData(NaN, 10, 10, 10)");
6 shouldThrow("ctx.getImageData(10, NaN, 10, 10)");
7 shouldThrow("ctx.getImageData(10, 10, NaN, 10)");
8 shouldThrow("ctx.getImageData(10, 10, 10, NaN)");
9 shouldThrow("ctx.getImageData(Infinity, 10, 10, 10)");
10 shouldThrow("ctx.getImageData(10, Infinity, 10, 10)");
11 shouldThrow("ctx.getImageData(10, 10, Infinity, 10)");
12 shouldThrow("ctx.getImageData(10, 10, 10, Infinity)");
13 shouldThrow("ctx.getImageData(undefined, 10, 10, 10)");
14 shouldThrow("ctx.getImageData(10, undefined, 10, 10)");
15 shouldThrow("ctx.getImageData(10, 10, undefined, 10)");
16 shouldThrow("ctx.getImageData(10, 10, 10, undefined)");
17 shouldThrow("ctx.getImageData(10, 10, 0, 10)");
18 shouldThrow("ctx.getImageData(10, 10, 10, 0)");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698