summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-style-intact-after-text-expected.txt
blob: 9c755fa02c4f34c28beede5e88acc52e04f51678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Test that the rendering context's strokeStyle and fillStyle are intact after calling strokeText() and fillText()

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Checking initial state for sanity
PASS ctx.fillStyle is '#ff0000'
PASS imgdata[0] is 255
PASS imgdata[1] is 0
PASS imgdata[2] is 0
PASS imgdata[3] is 255
PASS imgdata[4] is 0
PASS imgdata[5] is 0
PASS imgdata[6] is 0
PASS imgdata[7] is 0
Calling fillText() to try and break the strokeStyle.
PASS ctx.strokeStyle is '#008000'
PASS imgdata[0] is 0
PASS imgdata[1] is 128
PASS imgdata[2] is 0
PASS imgdata[3] is 255
Calling strokeText() to try and break the fillStyle.
PASS ctx.fillStyle is '#008000'
PASS imgdata[0] is 0
PASS imgdata[1] is 128
PASS imgdata[2] is 0
PASS imgdata[3] is 255
PASS successfullyParsed is true

TEST COMPLETE