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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/draw-elements-out-of-bounds-expected.txt

Issue 1601093008: Remove duplicated WebGL layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated bec ause of its detrimental effects to the end user's experience. For more help, che ck https://xhr.spec.whatwg.org/.
2 Test of drawElements with out-of-bounds parameters
3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5
6 Test empty index buffer
7 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_BYTE, 0) genera ted expected GL error: INVALID_OPERATION.
8 PASS context.drawElements(context.TRIANGLES, 10000, context.UNSIGNED_BYTE, 0) ge nerated expected GL error: INVALID_OPERATION.
9 PASS context.drawElements(context.TRIANGLES, 10000000000000, context.UNSIGNED_BY TE, 0) generated expected GL error: INVALID_OPERATION.
10 PASS context.drawElements(context.TRIANGLES, -1, context.UNSIGNED_BYTE, 0) gener ated expected GL error: INVALID_VALUE.
11 PASS context.drawElements(context.TRIANGLES, 1, context.UNSIGNED_BYTE, 0) genera ted expected GL error: INVALID_OPERATION.
12 PASS context.drawElements(context.TRIANGLES, 0, context.UNSIGNED_BYTE, -1) gener ated expected GL error: INVALID_VALUE.
13 PASS context.drawElements(context.TRIANGLES, 0, context.UNSIGNED_BYTE, 0) genera ted expected GL error: NO_ERROR.
14 PASS context.drawElements(context.TRIANGLES, -1, context.UNSIGNED_BYTE, 1) gener ated expected GL error: INVALID_VALUE.
15 PASS context.drawElements(context.TRIANGLES, 1, context.UNSIGNED_BYTE, -1) gener ated expected GL error: INVALID_VALUE.
16
17 Test buffer with 3 byte indexes
18 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_BYTE, 0) genera ted expected GL error: NO_ERROR.
19 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_INT, 0) generat ed expected GL error: INVALID_ENUM.
20 PASS context.drawElements(0x0009, 3, context.UNSIGNED_BYTE, 0) generated expecte d GL error: INVALID_ENUM.
21 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_BYTE, 2) genera ted expected GL error: INVALID_OPERATION.
22 PASS context.drawElements(context.TRIANGLES, 10000, context.UNSIGNED_BYTE, 0) ge nerated expected GL error: INVALID_OPERATION.
23 PASS context.drawElements(context.TRIANGLES, 10000000000000, context.UNSIGNED_BY TE, 0) generated expected GL error: INVALID_OPERATION.
24 PASS context.drawElements(context.TRIANGLES, -1, context.UNSIGNED_BYTE, 0) gener ated expected GL error: INVALID_VALUE.
25 PASS context.drawElements(context.TRIANGLES, 0, context.UNSIGNED_BYTE, -1) gener ated expected GL error: INVALID_VALUE.
26 PASS context.drawElements(context.TRIANGLES, -1, context.UNSIGNED_BYTE, 1) gener ated expected GL error: INVALID_VALUE.
27 PASS context.drawElements(context.TRIANGLES, 1, context.UNSIGNED_BYTE, -1) gener ated expected GL error: INVALID_VALUE.
28 PASS context.drawElements(context.TRIANGLES, 0, context.UNSIGNED_BYTE, 4) genera ted expected GL error: NO_ERROR.
29 PASS context.drawElements(context.TRIANGLES, 0xffffffff, context.UNSIGNED_BYTE, 0) generated expected GL error: INVALID_VALUE.
30 PASS context.drawElements(context.TRIANGLES, 0x7fffffff, context.UNSIGNED_BYTE, 0) generated expected GL error: INVALID_OPERATION.
31 PASS context.drawElements(context.TRIANGLES, 0x7fffffff, context.UNSIGNED_BYTE, 0x7fffffff) generated expected GL error: INVALID_OPERATION.
32 PASS context.bufferData(context.ELEMENT_ARRAY_BUFFER, (new Uint8Array([ 3, 0, 1, 2 ])).subarray(1), context.STATIC_DRAW) generated expected GL error: NO_ERROR.
33 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_BYTE, 0) genera ted expected GL error: NO_ERROR.
34 PASS context.bufferSubData(context.ELEMENT_ARRAY_BUFFER, 0, new Uint8Array([ 3, 0, 1])) generated expected GL error: NO_ERROR.
35 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_BYTE, 0) genera ted expected GL error: INVALID_OPERATION.
36 PASS context.bufferSubData(context.ELEMENT_ARRAY_BUFFER, 0, (new Uint8Array([ 3, 0, 1, 2 ])).subarray(1)) generated expected GL error: NO_ERROR.
37 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_BYTE, 0) genera ted expected GL error: NO_ERROR.
38 PASS context.drawElements(context.TRIANGLES, 0, context.UNSIGNED_BYTE, 0) genera ted expected GL error: NO_ERROR.
39
40 Test buffer with interleaved (3+2) float vectors
41 PASS context.drawElements(context.TRIANGLES, 9, context.UNSIGNED_SHORT, 0) gener ated expected GL error: NO_ERROR.
42 PASS context.drawElements(context.TRIANGLES, 9, context.FLOAT, 0) generated expe cted GL error: INVALID_ENUM.
43 PASS context.drawElements(context.TRIANGLES, 9, context.SHORT, 0) generated expe cted GL error: INVALID_ENUM.
44 PASS context.drawElements(context.TRIANGLES, 9, context.UNSIGNED_INT, 0) generat ed expected GL error: INVALID_ENUM.
45 PASS context.drawElements(context.TRIANGLES, 9, context.UNSIGNED_SHORT, 1000) ge nerated expected GL error: INVALID_OPERATION.
46 PASS context.drawElements(context.TRIANGLES, 12, context.UNSIGNED_SHORT, 0) gene rated expected GL error: INVALID_OPERATION.
47 PASS context.drawElements(context.TRIANGLES, 15, context.UNSIGNED_SHORT, 0) gene rated expected GL error: INVALID_OPERATION.
48 PASS context.drawElements(context.TRIANGLES, 18, context.UNSIGNED_SHORT, 0) gene rated expected GL error: INVALID_OPERATION.
49 PASS context.drawElements(context.TRIANGLES, 3, context.UNSIGNED_SHORT, 2*15) ge nerated expected GL error: INVALID_OPERATION.
50 PASS context.drawElements(context.TRIANGLES, 0xffffffff, context.UNSIGNED_SHORT, 0) generated expected GL error: INVALID_VALUE.
51 PASS context.drawElements(context.TRIANGLES, 0x7fffffff, context.UNSIGNED_SHORT, 0) generated expected GL error: INVALID_OPERATION.
52 PASS context.drawElements(context.TRIANGLES, 0, context.UNSIGNED_SHORT, 0) gener ated expected GL error: NO_ERROR.
53 PASS context.drawElements(context.TRIANGLES, 6, context.UNSIGNED_SHORT, 0) gener ated expected GL error: NO_ERROR.
54 PASS context.drawElements(context.TRIANGLES, 6, context.UNSIGNED_SHORT, 1) gener ated expected GL error: INVALID_OPERATION.
55 PASS context.drawElements(context.TRIANGLES, 6, context.UNSIGNED_SHORT, 2) gener ated expected GL error: NO_ERROR.
56 PASS context.drawElements(context.TRIANGLES, 6, context.UNSIGNED_SHORT, 0) gener ated expected GL error: INVALID_OPERATION.
57
58 PASS successfullyParsed is true
59
60 TEST COMPLETE
61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698