2 Verify texImage2D and texSubImage2D code paths taking ImageData (RGBA/UNSIGNED_SHORT_5_5_5_1)
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS successfullyParsed is true
9 Testing texImage2D with flipY=true and premultiplyAlpha=false
11 PASS shouldBe 0,255,0,255
13 PASS shouldBe 255,0,0,255
14 Testing texImage2D with flipY=false and premultiplyAlpha=false
16 PASS shouldBe 255,0,0,255
18 PASS shouldBe 0,255,0,255
19 Testing texImage2D with flipY=true and premultiplyAlpha=true
21 PASS shouldBe 0,0,0,255
23 PASS shouldBe 255,0,0,255
24 Testing texImage2D with flipY=false and premultiplyAlpha=true
26 PASS shouldBe 255,0,0,255
28 PASS shouldBe 0,0,0,255
29 Testing texSubImage2D with flipY=true and premultiplyAlpha=false
31 PASS shouldBe 0,255,0,255
33 PASS shouldBe 255,0,0,255
34 Testing texSubImage2D with flipY=false and premultiplyAlpha=false
36 PASS shouldBe 255,0,0,255
38 PASS shouldBe 0,255,0,255
39 Testing texSubImage2D with flipY=true and premultiplyAlpha=true
41 PASS shouldBe 0,0,0,255
43 PASS shouldBe 255,0,0,255
44 Testing texSubImage2D with flipY=false and premultiplyAlpha=true
46 PASS shouldBe 255,0,0,255
48 PASS shouldBe 0,0,0,255
49 PASS getError was expected value: NO_ERROR : should be no errors
50 PASS successfullyParsed is true