28 lines
803 B
Plaintext
28 lines
803 B
Plaintext
Series of tests to ensure correct results of the winding rule.
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
Testing default clip
|
|
PASS pixelDataAtPoint()[0] is within 5 of 0
|
|
PASS pixelDataAtPoint()[1] is within 5 of 255
|
|
PASS pixelDataAtPoint()[2] is within 5 of 0
|
|
PASS pixelDataAtPoint()[3] is within 5 of 255
|
|
|
|
Testing nonzero clip
|
|
PASS pixelDataAtPoint()[0] is within 5 of 0
|
|
PASS pixelDataAtPoint()[1] is within 5 of 255
|
|
PASS pixelDataAtPoint()[2] is within 5 of 0
|
|
PASS pixelDataAtPoint()[3] is within 5 of 255
|
|
|
|
Testing evenodd clip
|
|
PASS pixelDataAtPoint()[0] is within 5 of 255
|
|
PASS pixelDataAtPoint()[1] is within 5 of 0
|
|
PASS pixelDataAtPoint()[2] is within 5 of 0
|
|
PASS pixelDataAtPoint()[3] is within 5 of 255
|
|
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|