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

Side by Side Diff: LayoutTests/fast/canvas/drawImage-with-broken-image-expected.txt

Issue 234903003: Should throw TypeError instead of TypeMismatchError (canvas) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
OLDNEW
1 This test checks behavior of Canvas::drawImage with a broken source image. 1 This test checks behavior of Canvas::drawImage with a broken source image.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS ctx.drawImage(null, 0, 0) threw exception TypeMismatchError: Failed to exec ute 'drawImage' on 'CanvasRenderingContext2D': The 1st argument provided is eith er null, or an invalid HTMLImageElement, HTMLCanvasElement or HTMLVideoElement o bject.. 6 PASS ctx.drawImage(null, 0, 0) threw exception TypeError: Failed to execute 'dra wImage' on 'CanvasRenderingContext2D': The 1st argument provided is either null, or an invalid HTMLImageElement, HTMLCanvasElement or HTMLVideoElement object..
7 PASS ctx.drawImage(null, 0, 0, 20, 20) threw exception TypeMismatchError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The 1st argument provided is either null, or an invalid HTMLImageElement, HTMLCanvasElement or HTMLVideoE lement object.. 7 PASS ctx.drawImage(null, 0, 0, 20, 20) threw exception TypeError: Failed to exec ute 'drawImage' on 'CanvasRenderingContext2D': The 1st argument provided is eith er null, or an invalid HTMLImageElement, HTMLCanvasElement or HTMLVideoElement o bject..
8 PASS ctx.drawImage(null, 0, 0, 20, 20, 0, 0, 20, 20) threw exception TypeMismatc hError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The 1st arg ument provided is either null, or an invalid HTMLImageElement, HTMLCanvasElement or HTMLVideoElement object.. 8 PASS ctx.drawImage(null, 0, 0, 20, 20, 0, 0, 20, 20) threw exception TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The 1st argument pr ovided is either null, or an invalid HTMLImageElement, HTMLCanvasElement or HTML VideoElement object..
9 PASS ctx.drawImage(invalidImage, 0, 0) threw exception InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement prov ided is in the 'broken' state.. 9 PASS ctx.drawImage(invalidImage, 0, 0) threw exception InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement prov ided is in the 'broken' state..
10 PASS ctx.drawImage(invalidImage, 0, 0, 20, 20) threw exception InvalidStateError : Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElem ent provided is in the 'broken' state.. 10 PASS ctx.drawImage(invalidImage, 0, 0, 20, 20) threw exception InvalidStateError : Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElem ent provided is in the 'broken' state..
11 PASS ctx.drawImage(invalidImage, 0, 0, 20, 20, 0, 0, 20, 20) threw exception Inv alidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.. 11 PASS ctx.drawImage(invalidImage, 0, 0, 20, 20, 0, 0, 20, 20) threw exception Inv alidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state..
12 PASS ctx.drawImage(invalidImage, 0, 0, 0, 20) threw exception InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageEleme nt provided is in the 'broken' state.. 12 PASS ctx.drawImage(invalidImage, 0, 0, 0, 20) threw exception InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageEleme nt provided is in the 'broken' state..
13 PASS ctx.drawImage(invalidImage, 0, 0, 0, 20, 0, 0, 20, 20) threw exception Inva lidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.. 13 PASS ctx.drawImage(invalidImage, 0, 0, 0, 20, 0, 0, 20, 20) threw exception Inva lidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state..
14 PASS successfullyParsed is true 14 PASS successfullyParsed is true
15 15
16 TEST COMPLETE 16 TEST COMPLETE
17 17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698