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

Side by Side Diff: LayoutTests/fast/canvas/canvas-getContext-invalid-expected.txt

Issue 1249913003: The contextId argument for HTMLCanvasElement getContext() api should not be optional (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Test that invalid canvas getContext() requests return null. 1 Test that invalid canvas getContext() requests return null.
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 canvas.getContext('') is null 6 PASS canvas.getContext('') is null
7 PASS canvas.getContext('2d#') is null 7 PASS canvas.getContext('2d#') is null
8 PASS canvas.getContext('This is clearly not a valid context name.') is null 8 PASS canvas.getContext('This is clearly not a valid context name.') is null
9 PASS canvas.getContext('2d\0') is null 9 PASS canvas.getContext('2d\0') is null
10 PASS canvas.getContext('2d') is null 10 PASS canvas.getContext('2d') is null
11 PASS canvas.getContext('2D') is null 11 PASS canvas.getContext('2D') is null
12 PASS canvas.getContext() threw exception TypeError: Failed to execute 'getContex t' on 'HTMLCanvasElement': 1 argument required, but only 0 present..
13 PASS canvas.getContext('null') is null
14 PASS canvas.getContext('undefined') is null
12 PASS successfullyParsed is true 15 PASS successfullyParsed is true
13 16
14 TEST COMPLETE 17 TEST COMPLETE
15 18
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698