mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Update web-platform-tests to revision 7ef67f2d8c667d7f5a828fa0f6878ed45d1432d8
This commit is contained in:
parent
0b05b5ed87
commit
f71dd608db
58 changed files with 587 additions and 52 deletions
|
@ -1,4 +0,0 @@
|
|||
[hit-test-floats-002.html]
|
||||
[Hit test float]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[mix-blend-mode-animation.html]
|
||||
expected: FAIL
|
|
@ -1,2 +1,2 @@
|
|||
[no-transition-from-ua-to-blocking-stylesheet.html]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
|
|
@ -8,3 +8,6 @@
|
|||
[throws if handleEvent is thruthy and not callable]
|
||||
expected: FAIL
|
||||
|
||||
[looks up handleEvent method on every event dispatch]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
[elementsFromPoint on the root document for points in iframe elements]
|
||||
expected: FAIL
|
||||
|
||||
[elementsFromPoint on inner documents]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -312,12 +312,6 @@
|
|||
[Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
|
||||
expected: NOTRUN
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -330,12 +324,18 @@
|
|||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/plain */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -8,3 +8,12 @@
|
|||
[X-Content-Type-Options%3A%20nosniff%0C]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
|
||||
expected: FAIL
|
||||
|
||||
[Content-Type-Options%3A%20nosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[traverse_the_history_5.html]
|
||||
[traverse_the_history_2.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[cross-origin-objects-on-new-window.html]
|
||||
expected: TIMEOUT
|
|
@ -1,5 +1,4 @@
|
|||
[creating_browsing_context_test_01.html]
|
||||
expected: TIMEOUT
|
||||
[first argument: absolute url]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.arc.negative.html]
|
||||
[arc() with negative radius throws INDEX_SIZE_ERR]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.arcTo.negative.html]
|
||||
[arcTo() with negative radius throws an exception]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.isPointInPath.basic.html]
|
||||
[Verify the winding rule in isPointInPath works for for rect path.]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.isPointInpath.invalid.html]
|
||||
[Verify isPointInPath throws exceptions with invalid inputs.]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.isPointInpath.multi.path.html]
|
||||
[Verify the winding rule in isPointInPath works for path object.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-2.html]
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-2.html]
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-3.html]
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -3,3 +3,6 @@
|
|||
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: TIMEOUT
|
||||
|
||||
[The entry settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -125,3 +125,6 @@
|
|||
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 40520 more errors.\n\tMax AbsError of 1.9986611604690552e+0 at index of 15080.\n\t[15080\]\t-9.9994289875030518e-1\t9.9871826171875000e-1\t1.9986611604690552e+0\t2.0012262087101997e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 10584.\n\t[10584\]\t-5.8778524398803711e-1\t0.0000000000000000e+0\t5.8778524398803711e-1\tInfinity\t3.0517578125000000e-5\n]
|
||||
expected: FAIL
|
||||
|
||||
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 44059 more errors.\n\tMax AbsError of 1.9986916780471802e+0 at index of 37840.\n\t[37840\]\t9.9994289875030518e-1\t-9.9874877929687500e-1\t1.9986916780471802e+0\t2.0011956154322119e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 12348.\n\t[12348\]\t9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[WorkerGlobalScope-close.html]
|
||||
[Test sending a message after closing.]
|
||||
expected: FAIL
|
||||
|
|
@ -318564,7 +318564,7 @@
|
|||
],
|
||||
"resources": {
|
||||
"base64.json": [
|
||||
"c4f79aafd9396691dabe67a2fce837591c96147c",
|
||||
"01f981a6502aec41351de52519c5437d6c77a609",
|
||||
[]
|
||||
],
|
||||
"data-urls.json": [
|
||||
|
@ -321447,7 +321447,7 @@
|
|||
[]
|
||||
],
|
||||
"2d.text.draw.fill.maxWidth.large.png": [
|
||||
"1e313371d828e9f5edf61480e64ea5c689653fca",
|
||||
"70d7b046cb226cfcb2bfeebe3477d3b580d8270a",
|
||||
[]
|
||||
],
|
||||
"2d.text.draw.fill.rtl.png": [
|
||||
|
@ -322218,7 +322218,7 @@
|
|||
[]
|
||||
],
|
||||
"tests2d.yaml": [
|
||||
"dbd8e7e3cb678fd4d355ab51f42c89a09df825fb",
|
||||
"39a75cfa97b71f1f538e5c14c16fe3daa630c34c",
|
||||
[]
|
||||
],
|
||||
"tests2dtext.yaml": [
|
||||
|
@ -431397,7 +431397,7 @@
|
|||
]
|
||||
],
|
||||
"2d.path.arc.negative.html": [
|
||||
"7f96d73548e1d50cd0dc9285cf910e18e39c2d45",
|
||||
"9d1f4d8919383d062e5578b810a9cafe713807bf",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
@ -431579,7 +431579,7 @@
|
|||
]
|
||||
],
|
||||
"2d.path.arcTo.negative.html": [
|
||||
"fdbddd023a225dbea861fa0cb8e1ec27cacc7b0f",
|
||||
"78f4fcebf7b37b844d86fbab832fe81eb6bf2877",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
@ -431844,6 +431844,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"2d.path.isPointInPath.basic.html": [
|
||||
"fc30dfe4645f08c04ae774a72cbc30b4ab4bc773",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"2d.path.isPointInPath.bezier.html": [
|
||||
"576c4f26e99978fcf99f15d07fc2ef057854a0dd",
|
||||
[
|
||||
|
@ -431942,6 +431949,20 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"2d.path.isPointInpath.invalid.html": [
|
||||
"3bdd8f770c22170b2a10d6647e11498661bc304a",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"2d.path.isPointInpath.multi.path.html": [
|
||||
"38949b89c835805beb2e6cb9fcfde75a80fb39d9",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"2d.path.lineTo.basic.html": [
|
||||
"317baf93a1dd5b80b8f54c915585f85aecc63bfa",
|
||||
[
|
||||
|
@ -432273,6 +432294,13 @@
|
|||
]
|
||||
},
|
||||
"pixel-manipulation": {
|
||||
"2d.imageData.create.and.resize.html": [
|
||||
"49d029267cf15e95c194a1c93dcca895ea396a60",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"2d.imageData.create1.basic.html": [
|
||||
"aa1ca36182e7d08c339af8e09070a6a2c5b26d42",
|
||||
[
|
||||
|
@ -432392,6 +432420,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"2d.imageData.get.invalid.html": [
|
||||
"dd6cc755784fe240c46fb55ed4334141811c8622",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"2d.imageData.get.large.crash.html": [
|
||||
"cb8e60640048149a9ca946ab92acc3403c1a2f6d",
|
||||
[
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[hit-test-floats-002.html]
|
||||
[Hit test float]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[mix-blend-mode-animation.html]
|
||||
expected: FAIL
|
|
@ -1,2 +1,2 @@
|
|||
[no-transition-from-ua-to-blocking-stylesheet.html]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
|
|
@ -8,3 +8,6 @@
|
|||
[throws if handleEvent is thruthy and not callable]
|
||||
expected: FAIL
|
||||
|
||||
[looks up handleEvent method on every event dispatch]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -2,3 +2,6 @@
|
|||
[elementsFromPoint on the root document for points in iframe elements]
|
||||
expected: FAIL
|
||||
|
||||
[elementsFromPoint on inner documents]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -312,12 +312,6 @@
|
|||
[fetch(): separate response Content-Type: text/plain ]
|
||||
expected: NOTRUN
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -330,12 +324,18 @@
|
|||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/plain */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -8,3 +8,12 @@
|
|||
[X-Content-Type-Options%3A%20nosniff%0C]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
|
||||
expected: FAIL
|
||||
|
||||
[Content-Type-Options%3A%20nosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[traverse_the_history_5.html]
|
||||
[traverse_the_history_2.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[traverse_the_history_4.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[cross-origin-objects-on-new-window.html]
|
||||
expected: TIMEOUT
|
|
@ -1,5 +1,4 @@
|
|||
[creating_browsing_context_test_01.html]
|
||||
expected: TIMEOUT
|
||||
[first argument: absolute url]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.arc.negative.html]
|
||||
[arc() with negative radius throws INDEX_SIZE_ERR]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.arcTo.negative.html]
|
||||
[arcTo() with negative radius throws an exception]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.isPointInPath.basic.html]
|
||||
[Verify the winding rule in isPointInPath works for for rect path.]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.isPointInpath.invalid.html]
|
||||
[Verify isPointInPath throws exceptions with invalid inputs.]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.path.isPointInpath.multi.path.html]
|
||||
[Verify the winding rule in isPointInPath works for path object.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-2.html]
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-3.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-2.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-3.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -4,3 +4,6 @@
|
|||
[The incumbent settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: TIMEOUT
|
||||
|
||||
[The entry settings object while executing the compiled callback via Web IDL's invoke must be that of the node document]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -197,3 +197,6 @@
|
|||
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 40520 more errors.\n\tMax AbsError of 1.9986611604690552e+0 at index of 15080.\n\t[15080\]\t-9.9994289875030518e-1\t9.9871826171875000e-1\t1.9986611604690552e+0\t2.0012262087101997e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 10584.\n\t[10584\]\t-5.8778524398803711e-1\t0.0000000000000000e+0\t5.8778524398803711e-1\tInfinity\t3.0517578125000000e-5\n]
|
||||
expected: FAIL
|
||||
|
||||
[X Rendered audio for channel 5 does not equal [0,0.0626220703125,0.125030517578125,0.18695068359375,0.24810791015625,0.308319091796875,0.3673095703125,0.42486572265625,0.480743408203125,0.53472900390625,0.58660888671875,0.636199951171875,0.68328857421875,0.727691650390625,0.76922607421875,0.8077392578125...\] with an element-wise tolerance of {"absoluteThreshold":0.000030517578125,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[1\]\t3.6732959747314453e-1\t6.2622070312500000e-2\t3.0470752716064453e-1\t4.8658168859649127e+0\t3.0517578125000000e-5\n\t[2\]\t6.8329977989196777e-1\t1.2503051757812500e-1\t5.5826926231384277e-1\t4.4650639949963384e+0\t3.0517578125000000e-5\n\t[3\]\t9.0373212099075317e-1\t1.8695068359375000e-1\t7.1678143739700317e-1\t3.8340669508039502e+0\t3.0517578125000000e-5\n\t[4\]\t9.9780619144439697e-1\t2.4810791015625000e-1\t7.4969828128814697e-1\t3.0216621502152523e+0\t3.0517578125000000e-5\n\t[5\]\t9.5236867666244507e-1\t3.0831909179687500e-1\t6.4404958486557007e-1\t2.0889059484187866e+0\t3.0517578125000000e-5\n\t...and 44059 more errors.\n\tMax AbsError of 1.9986916780471802e+0 at index of 37840.\n\t[37840\]\t9.9994289875030518e-1\t-9.9874877929687500e-1\t1.9986916780471802e+0\t2.0011956154322119e+0\t3.0517578125000000e-5\n\tMax RelError of Infinity at index of 12348.\n\t[12348\]\t9.5105654001235962e-1\t0.0000000000000000e+0\t9.5105654001235962e-1\tInfinity\t3.0517578125000000e-5\n]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[WorkerGlobalScope-close.html]
|
||||
[Test sending a message after closing.]
|
||||
expected: FAIL
|
||||
|
|
@ -50,6 +50,8 @@
|
|||
["abc=d", null],
|
||||
["abc=d=", null],
|
||||
["ab\u000Bcd", null],
|
||||
["ab\u3000cd", null],
|
||||
["ab\u3001cd", null],
|
||||
["ab\tcd", [105, 183, 29]],
|
||||
["ab\ncd", [105, 183, 29]],
|
||||
["ab\fcd", [105, 183, 29]],
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -20,6 +20,8 @@ var t = async_test("arc() with negative radius throws INDEX_SIZE_ERR");
|
|||
_addTest(function(canvas, ctx) {
|
||||
|
||||
assert_throws_dom("INDEX_SIZE_ERR", function() { ctx.arc(0, 0, -1, 0, 0, true); });
|
||||
var path = new Path2D();
|
||||
assert_throws_dom("INDEX_SIZE_ERR", function() { path.arc(10, 10, -5, 0, 1, false); });
|
||||
|
||||
|
||||
});
|
||||
|
|
|
@ -20,6 +20,8 @@ var t = async_test("arcTo() with negative radius throws an exception");
|
|||
_addTest(function(canvas, ctx) {
|
||||
|
||||
assert_throws_dom("INDEX_SIZE_ERR", function() { ctx.arcTo(0, 0, 0, 0, -1); });
|
||||
var path = new Path2D();
|
||||
assert_throws_dom("INDEX_SIZE_ERR", function() { path.arcTo(10, 10, 20, 20, -5); });
|
||||
|
||||
|
||||
});
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<title>Canvas test: 2d.path.isPointInPath.basic</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/html/canvas/resources/canvas-tests.js"></script>
|
||||
<link rel="stylesheet" href="/html/canvas/resources/canvas-tests.css">
|
||||
<body class="show_output">
|
||||
|
||||
<h1>2d.path.isPointInPath.basic</h1>
|
||||
<p class="desc">Verify the winding rule in isPointInPath works for for rect path.</p>
|
||||
|
||||
|
||||
<p class="output">Actual output:</p>
|
||||
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
|
||||
<ul id="d"></ul>
|
||||
<script>
|
||||
var t = async_test("Verify the winding rule in isPointInPath works for for rect path.");
|
||||
_addTest(function(canvas, ctx) {
|
||||
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
|
||||
// Testing default isPointInPath
|
||||
ctx.beginPath();
|
||||
ctx.rect(0, 0, 100, 100);
|
||||
ctx.rect(25, 25, 50, 50);
|
||||
_assertSame(ctx.isPointInPath(50, 50), true, "ctx.isPointInPath(50, 50)", "true");
|
||||
_assertSame(ctx.isPointInPath(NaN, 50), false, "ctx.isPointInPath(NaN, 50)", "false");
|
||||
_assertSame(ctx.isPointInPath(50, NaN), false, "ctx.isPointInPath(50, NaN)", "false");
|
||||
|
||||
// Testing nonzero isPointInPath
|
||||
ctx.beginPath();
|
||||
ctx.rect(0, 0, 100, 100);
|
||||
ctx.rect(25, 25, 50, 50);
|
||||
_assertSame(ctx.isPointInPath(50, 50, 'nonzero'), true, "ctx.isPointInPath(50, 50, 'nonzero')", "true");
|
||||
|
||||
// Testing evenodd isPointInPath
|
||||
ctx.beginPath();
|
||||
ctx.rect(0, 0, 100, 100);
|
||||
ctx.rect(25, 25, 50, 50);
|
||||
_assertSame(ctx.isPointInPath(50, 50, 'evenodd'), false, "ctx.isPointInPath(50, 50, 'evenodd')", "false");
|
||||
|
||||
// Testing extremely large scale
|
||||
ctx.save();
|
||||
ctx.scale(Number.MAX_VALUE, Number.MAX_VALUE);
|
||||
ctx.beginPath();
|
||||
ctx.rect(-10, -10, 20, 20);
|
||||
_assertSame(ctx.isPointInPath(0, 0, 'nonzero'), true, "ctx.isPointInPath(0, 0, 'nonzero')", "true");
|
||||
_assertSame(ctx.isPointInPath(0, 0, 'evenodd'), true, "ctx.isPointInPath(0, 0, 'evenodd')", "true");
|
||||
ctx.restore();
|
||||
|
||||
// Check with non-invertible ctm.
|
||||
ctx.save();
|
||||
ctx.scale(0, 0);
|
||||
ctx.beginPath();
|
||||
ctx.rect(-10, -10, 20, 20);
|
||||
_assertSame(ctx.isPointInPath(0, 0, 'nonzero'), false, "ctx.isPointInPath(0, 0, 'nonzero')", "false");
|
||||
_assertSame(ctx.isPointInPath(0, 0, 'evenodd'), false, "ctx.isPointInPath(0, 0, 'evenodd')", "false");
|
||||
ctx.restore();
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<title>Canvas test: 2d.path.isPointInpath.invalid</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/html/canvas/resources/canvas-tests.js"></script>
|
||||
<link rel="stylesheet" href="/html/canvas/resources/canvas-tests.css">
|
||||
<body class="show_output">
|
||||
|
||||
<h1>2d.path.isPointInpath.invalid</h1>
|
||||
<p class="desc">Verify isPointInPath throws exceptions with invalid inputs.</p>
|
||||
|
||||
|
||||
<p class="output">Actual output:</p>
|
||||
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
|
||||
<ul id="d"></ul>
|
||||
<script>
|
||||
var t = async_test("Verify isPointInPath throws exceptions with invalid inputs.");
|
||||
_addTest(function(canvas, ctx) {
|
||||
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
// Testing invalid enumeration isPointInPath (w/ and w/o Path object');
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(path, 50, 50, 'gazonk'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(50, 50, 'gazonk'); });
|
||||
|
||||
// Testing invalid type isPointInPath with Path object');
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(null, 50, 50); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(null, 50, 50, 'nonzero'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(null, 50, 50, 'evenodd'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(null, 50, 50, null); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(path, 50, 50, null); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(undefined, 50, 50); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(undefined, 50, 50, 'nonzero'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(undefined, 50, 50, 'evenodd'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath(undefined, 50, 50, undefined); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath([], 50, 50); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath([], 50, 50, 'nonzero'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath([], 50, 50, 'evenodd'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath({}, 50, 50); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath({}, 50, 50, 'nonzero'); });
|
||||
assert_throws_js(TypeError, function() { ctx.isPointInPath({}, 50, 50, 'evenodd'); });
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<title>Canvas test: 2d.path.isPointInpath.multi.path</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/html/canvas/resources/canvas-tests.js"></script>
|
||||
<link rel="stylesheet" href="/html/canvas/resources/canvas-tests.css">
|
||||
<body class="show_output">
|
||||
|
||||
<h1>2d.path.isPointInpath.multi.path</h1>
|
||||
<p class="desc">Verify the winding rule in isPointInPath works for path object.</p>
|
||||
|
||||
|
||||
<p class="output">Actual output:</p>
|
||||
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
|
||||
<ul id="d"></ul>
|
||||
<script>
|
||||
var t = async_test("Verify the winding rule in isPointInPath works for path object.");
|
||||
_addTest(function(canvas, ctx) {
|
||||
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
|
||||
// Testing default isPointInPath with Path object');
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
_assertSame(ctx.isPointInPath(path, 50, 50), true, "ctx.isPointInPath(path, 50, 50)", "true");
|
||||
_assertSame(ctx.isPointInPath(path, 50, 50, undefined), true, "ctx.isPointInPath(path, 50, 50, undefined)", "true");
|
||||
_assertSame(ctx.isPointInPath(path, NaN, 50), false, "ctx.isPointInPath(path, NaN, 50)", "false");
|
||||
_assertSame(ctx.isPointInPath(path, 50, NaN), false, "ctx.isPointInPath(path, 50, NaN)", "false");
|
||||
|
||||
// Testing nonzero isPointInPath with Path object');
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
_assertSame(ctx.isPointInPath(path, 50, 50, 'nonzero'), true, "ctx.isPointInPath(path, 50, 50, 'nonzero')", "true");
|
||||
|
||||
// Testing evenodd isPointInPath with Path object');
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
assert_false(ctx.isPointInPath(path, 50, 50, 'evenodd'));
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<title>Canvas test: 2d.imageData.create.and.resize</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/html/canvas/resources/canvas-tests.js"></script>
|
||||
<link rel="stylesheet" href="/html/canvas/resources/canvas-tests.css">
|
||||
<body class="show_output">
|
||||
|
||||
<h1>2d.imageData.create.and.resize</h1>
|
||||
<p class="desc">Verify no crash when resizing an image bitmap to zero.</p>
|
||||
|
||||
|
||||
<p class="output">Actual output:</p>
|
||||
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
|
||||
<ul id="d"></ul>
|
||||
<script>
|
||||
var t = async_test("Verify no crash when resizing an image bitmap to zero.");
|
||||
_addTest(function(canvas, ctx) {
|
||||
|
||||
var image = new Image();
|
||||
image.onload = t.step_func(function() {
|
||||
var options = { resizeHeight: 0 };
|
||||
var p1 = createImageBitmap(image, options);
|
||||
p1.catch(function(error){});
|
||||
t.done();
|
||||
});
|
||||
image.src = 'red.png';
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<img src="/images/red.png" id="red.png" class="resource">
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
|
||||
<title>Canvas test: 2d.imageData.get.invalid</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/html/canvas/resources/canvas-tests.js"></script>
|
||||
<link rel="stylesheet" href="/html/canvas/resources/canvas-tests.css">
|
||||
<body class="show_output">
|
||||
|
||||
<h1>2d.imageData.get.invalid</h1>
|
||||
<p class="desc">Verify getImageData() behavior in invalid cases.</p>
|
||||
|
||||
|
||||
<p class="output">Actual output:</p>
|
||||
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
|
||||
|
||||
<ul id="d"></ul>
|
||||
<script>
|
||||
var t = async_test("Verify getImageData() behavior in invalid cases.");
|
||||
_addTest(function(canvas, ctx) {
|
||||
|
||||
imageData = ctx.getImageData(0,0,2,2);
|
||||
var testValues = [NaN, true, false, "\"garbage\"", "-1",
|
||||
"0", "1", "2", Infinity, -Infinity,
|
||||
-5, -0.5, 0, 0.5, 5,
|
||||
5.4, 255, 256, null, undefined];
|
||||
var testResults = [0, 1, 0, 0, 0,
|
||||
0, 1, 2, 255, 0,
|
||||
0, 0, 0, 0, 5,
|
||||
5, 255, 255, 0, 0];
|
||||
for (var i = 0; i < testValues.length; i++) {
|
||||
imageData.data[0] = testValues[i];
|
||||
_assert(imageData.data[0] == testResults[i], "imageData.data[\""+(0)+"\"] == testResults[\""+(i)+"\"]");
|
||||
}
|
||||
imageData.data['foo']='garbage';
|
||||
_assert(imageData.data['foo'] == 'garbage', "imageData.data['foo'] == 'garbage'");
|
||||
imageData.data[-1]='garbage';
|
||||
_assert(imageData.data[-1] == undefined, "imageData.data[-1] == undefined");
|
||||
imageData.data[17]='garbage';
|
||||
_assert(imageData.data[17] == undefined, "imageData.data[\""+(17)+"\"] == undefined");
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
|
@ -6913,6 +6913,8 @@
|
|||
- 2d.path.arcTo.negative
|
||||
code: |
|
||||
@assert throws INDEX_SIZE_ERR ctx.arcTo(0, 0, 0, 0, -1);
|
||||
var path = new Path2D();
|
||||
@assert throws INDEX_SIZE_ERR path.arcTo(10, 10, 20, 20, -5);
|
||||
|
||||
- name: 2d.path.arcTo.zero.1
|
||||
desc: arcTo() with zero radius draws a straight line from P0 to P1
|
||||
|
@ -7424,6 +7426,8 @@
|
|||
- 2d.path.arc.negative
|
||||
code: |
|
||||
@assert throws INDEX_SIZE_ERR ctx.arc(0, 0, -1, 0, 0, true);
|
||||
var path = new Path2D();
|
||||
@assert throws INDEX_SIZE_ERR path.arc(10, 10, -5, 0, 1, false);
|
||||
|
||||
- name: 2d.path.arc.zeroradius
|
||||
desc: arc() with zero radius draws a line to the start point
|
||||
|
@ -9492,6 +9496,22 @@
|
|||
@assert imgdata2.width === 10;
|
||||
@assert imgdata2.height === 10;
|
||||
|
||||
- name: 2d.imageData.create.and.resize
|
||||
desc: Verify no crash when resizing an image bitmap to zero.
|
||||
testing:
|
||||
- 2d.imageData.resize
|
||||
images:
|
||||
- red.png
|
||||
code: |
|
||||
var image = new Image();
|
||||
image.onload = t.step_func(function() {
|
||||
var options = { resizeHeight: 0 };
|
||||
var p1 = createImageBitmap(image, options);
|
||||
p1.catch(function(error){});
|
||||
t.done();
|
||||
});
|
||||
image.src = 'red.png';
|
||||
|
||||
- name: 2d.imageData.get.basic
|
||||
desc: getImageData() exists and returns something
|
||||
testing:
|
||||
|
@ -9821,6 +9841,31 @@
|
|||
testDimensions(-1.1, 0, 20, 10, 20, 10);
|
||||
testDimensions(-1.9, 0, 20, 10, 20, 10);
|
||||
|
||||
- name: 2d.imageData.get.invalid
|
||||
desc: Verify getImageData() behavior in invalid cases.
|
||||
testing:
|
||||
- 2d.imageData.get.invalid
|
||||
code: |
|
||||
imageData = ctx.getImageData(0,0,2,2);
|
||||
var testValues = [NaN, true, false, "\"garbage\"", "-1",
|
||||
"0", "1", "2", Infinity, -Infinity,
|
||||
-5, -0.5, 0, 0.5, 5,
|
||||
5.4, 255, 256, null, undefined];
|
||||
var testResults = [0, 1, 0, 0, 0,
|
||||
0, 1, 2, 255, 0,
|
||||
0, 0, 0, 0, 5,
|
||||
5, 255, 255, 0, 0];
|
||||
for (var i = 0; i < testValues.length; i++) {
|
||||
imageData.data[0] = testValues[i];
|
||||
@assert imageData.data[0] == testResults[i];
|
||||
}
|
||||
imageData.data['foo']='garbage';
|
||||
@assert imageData.data['foo'] == 'garbage';
|
||||
imageData.data[-1]='garbage';
|
||||
@assert imageData.data[-1] == undefined;
|
||||
imageData.data[17]='garbage';
|
||||
@assert imageData.data[17] == undefined;
|
||||
|
||||
- name: 2d.imageData.object.properties
|
||||
desc: ImageData objects have the right properties
|
||||
testing:
|
||||
|
@ -10400,6 +10445,112 @@
|
|||
@assert Math.round(rect.top) === 100;
|
||||
@assert Math.round(rect.right) === viewportWidth + (canvasWidth - 4 - 16);
|
||||
|
||||
- name: 2d.path.isPointInPath.basic
|
||||
desc: Verify the winding rule in isPointInPath works for for rect path.
|
||||
testing:
|
||||
- 2d.isPointInPath.basic
|
||||
code: |
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
|
||||
// Testing default isPointInPath
|
||||
ctx.beginPath();
|
||||
ctx.rect(0, 0, 100, 100);
|
||||
ctx.rect(25, 25, 50, 50);
|
||||
@assert ctx.isPointInPath(50, 50) === true;
|
||||
@assert ctx.isPointInPath(NaN, 50) === false;
|
||||
@assert ctx.isPointInPath(50, NaN) === false;
|
||||
|
||||
// Testing nonzero isPointInPath
|
||||
ctx.beginPath();
|
||||
ctx.rect(0, 0, 100, 100);
|
||||
ctx.rect(25, 25, 50, 50);
|
||||
@assert ctx.isPointInPath(50, 50, 'nonzero') === true;
|
||||
|
||||
// Testing evenodd isPointInPath
|
||||
ctx.beginPath();
|
||||
ctx.rect(0, 0, 100, 100);
|
||||
ctx.rect(25, 25, 50, 50);
|
||||
@assert ctx.isPointInPath(50, 50, 'evenodd') === false;
|
||||
|
||||
// Testing extremely large scale
|
||||
ctx.save();
|
||||
ctx.scale(Number.MAX_VALUE, Number.MAX_VALUE);
|
||||
ctx.beginPath();
|
||||
ctx.rect(-10, -10, 20, 20);
|
||||
@assert ctx.isPointInPath(0, 0, 'nonzero') === true;
|
||||
@assert ctx.isPointInPath(0, 0, 'evenodd') === true;
|
||||
ctx.restore();
|
||||
|
||||
// Check with non-invertible ctm.
|
||||
ctx.save();
|
||||
ctx.scale(0, 0);
|
||||
ctx.beginPath();
|
||||
ctx.rect(-10, -10, 20, 20);
|
||||
@assert ctx.isPointInPath(0, 0, 'nonzero') === false;
|
||||
@assert ctx.isPointInPath(0, 0, 'evenodd') === false;
|
||||
ctx.restore();
|
||||
|
||||
- name: 2d.path.isPointInpath.multi.path
|
||||
desc: Verify the winding rule in isPointInPath works for path object.
|
||||
testing:
|
||||
- 2d.isPointInPath.basic
|
||||
code: |
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
|
||||
// Testing default isPointInPath with Path object');
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
@assert ctx.isPointInPath(path, 50, 50) === true;
|
||||
@assert ctx.isPointInPath(path, 50, 50, undefined) === true;
|
||||
@assert ctx.isPointInPath(path, NaN, 50) === false;
|
||||
@assert ctx.isPointInPath(path, 50, NaN) === false;
|
||||
|
||||
// Testing nonzero isPointInPath with Path object');
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
@assert ctx.isPointInPath(path, 50, 50, 'nonzero') === true;
|
||||
|
||||
// Testing evenodd isPointInPath with Path object');
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
assert_false(ctx.isPointInPath(path, 50, 50, 'evenodd'));
|
||||
|
||||
- name: 2d.path.isPointInpath.invalid
|
||||
desc: Verify isPointInPath throws exceptions with invalid inputs.
|
||||
testing:
|
||||
- 2d.isPointInPath.basic
|
||||
code: |
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
path = new Path2D();
|
||||
path.rect(0, 0, 100, 100);
|
||||
path.rect(25, 25, 50, 50);
|
||||
// Testing invalid enumeration isPointInPath (w/ and w/o Path object');
|
||||
@assert throws TypeError ctx.isPointInPath(path, 50, 50, 'gazonk');
|
||||
@assert throws TypeError ctx.isPointInPath(50, 50, 'gazonk');
|
||||
|
||||
// Testing invalid type isPointInPath with Path object');
|
||||
@assert throws TypeError ctx.isPointInPath(null, 50, 50);
|
||||
@assert throws TypeError ctx.isPointInPath(null, 50, 50, 'nonzero');
|
||||
@assert throws TypeError ctx.isPointInPath(null, 50, 50, 'evenodd');
|
||||
@assert throws TypeError ctx.isPointInPath(null, 50, 50, null);
|
||||
@assert throws TypeError ctx.isPointInPath(path, 50, 50, null);
|
||||
@assert throws TypeError ctx.isPointInPath(undefined, 50, 50);
|
||||
@assert throws TypeError ctx.isPointInPath(undefined, 50, 50, 'nonzero');
|
||||
@assert throws TypeError ctx.isPointInPath(undefined, 50, 50, 'evenodd');
|
||||
@assert throws TypeError ctx.isPointInPath(undefined, 50, 50, undefined);
|
||||
@assert throws TypeError ctx.isPointInPath([], 50, 50);
|
||||
@assert throws TypeError ctx.isPointInPath([], 50, 50, 'nonzero');
|
||||
@assert throws TypeError ctx.isPointInPath([], 50, 50, 'evenodd');
|
||||
@assert throws TypeError ctx.isPointInPath({}, 50, 50);
|
||||
@assert throws TypeError ctx.isPointInPath({}, 50, 50, 'nonzero');
|
||||
@assert throws TypeError ctx.isPointInPath({}, 50, 50, 'evenodd');
|
||||
|
||||
- name: 2d.scrollPathIntoView.path
|
||||
desc: scrollPathIntoView() with path argument works
|
||||
testing:
|
||||
|
|
|
@ -107,3 +107,6 @@
|
|||
[WebGL test #50: attachment 5 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 0,255,255,0]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #52: attachment 7 should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 0,0,0,0]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue