Commit f7dafa91 authored by shanmuga.m's avatar shanmuga.m Committed by Commit bot

Drop SVGGraphicsElement.getTransformToElement

Drop SVGGraphicsElement.getTransformToElement as on SVG WG F2F:
https://lists.w3.org/Archives/Public/www-svg/2015Aug/att-0009/SVGWG-F2F-minutes-20150824.html#item02

BUG=524432

Review URL: https://codereview.chromium.org/1406303007

Cr-Commit-Position: refs/heads/master@{#357135}
parent 57d577a3
...@@ -347,6 +347,10 @@ crbug.com/543110 [ Mac ] fast/text/international/text-shaping-arabic.html [ Fail ...@@ -347,6 +347,10 @@ crbug.com/543110 [ Mac ] fast/text/international/text-shaping-arabic.html [ Fail
crbug.com/548904 [ Linux Win7 ] fast/writing-mode/Kusa-Makura-background-canvas.html [ Failure Pass ] crbug.com/548904 [ Linux Win7 ] fast/writing-mode/Kusa-Makura-background-canvas.html [ Failure Pass ]
crbug.com/524432 svg/W3C-SVG-1.1-SE/types-dom-01-b.svg [ NeedsRebaseline ]
crbug.com/524432 svg/W3C-SVG-1.1/types-basicDOM-01-b.svg [ NeedsRebaseline ]
crbug.com/524432 svg/dom/css-transforms.xhtml [ NeedsRebaseline ]
crbug.com/441840 [ Mac XP ] cssom/ahem-ex-units.html [ Failure ] crbug.com/441840 [ Mac XP ] cssom/ahem-ex-units.html [ Failure ]
crbug.com/530044 transforms/2d/transform-borderbox.html [ NeedsManualRebaseline ] crbug.com/530044 transforms/2d/transform-borderbox.html [ NeedsManualRebaseline ]
......
...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path).e is -15 PASS getTransformToElement(rootSVGElement, path).e is -15
PASS rootSVGElement.getTransformToElement(path).f is -43 PASS getTransformToElement(rootSVGElement, path).f is -43
FAIL rootSVGElement.getTransformToElement(path).e should be close to -38.5. Was -38.3656120300293. FAIL getTransformToElement(rootSVGElement, path).e should be close to -38.5. Was -38.3656120300293.
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutSVGRoot {svg} at (20,56) size 101x157
LayoutSVGContainer {g} at (0,0) size 0x0 [transform={m=((0.00,0.00)(0.00,0.00)) t=(0.00,0.00)}]
LayoutSVGContainer {g} at (20,56) size 40x18 [transform={m=((1.00,0.00)(0.00,1.00)) t=(15.00,15.00)}]
LayoutSVGText {text} at (50,123) size 80x34 contains 1 chunk(s)
LayoutSVGInlineText {#text} at (0,0) size 80x34
chunk 1 text run 1 at (50.00,150.00) startOffset 0 endOffset 6 width 80.00: "Passed"
LayoutSVGContainer {g} at (49,141) size 72x72 [transform={m=((0.71,0.71)(-0.71,0.71)) t=(0.00,0.00)}]
LayoutSVGRect {rect} at (49,141) size 72x72 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}] [x=50.00] [y=50.00] [width=70.00] [height=30.00]
...@@ -7,54 +7,54 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,54 +7,54 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path1).a is 0 PASS getTransformToElement(rootSVGElement, path1).a is 0
PASS rootSVGElement.getTransformToElement(path1).b is 1 PASS getTransformToElement(rootSVGElement, path1).b is 1
PASS rootSVGElement.getTransformToElement(path1).c is -1 PASS getTransformToElement(rootSVGElement, path1).c is -1
PASS rootSVGElement.getTransformToElement(path1).d is 0 PASS getTransformToElement(rootSVGElement, path1).d is 0
PASS rootSVGElement.getTransformToElement(path1).e is 224.9 PASS getTransformToElement(rootSVGElement, path1).e is 224.9
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -25.9. Was -25.000000000000014. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -25.9. Was -25.000000000000014.
PASS rootSVGElement.getTransformToElement(path2).a is 0 PASS getTransformToElement(rootSVGElement, path2).a is 0
PASS rootSVGElement.getTransformToElement(path2).b is -1 PASS getTransformToElement(rootSVGElement, path2).b is -1
PASS rootSVGElement.getTransformToElement(path2).c is 1 PASS getTransformToElement(rootSVGElement, path2).c is 1
PASS rootSVGElement.getTransformToElement(path2).d is 0 PASS getTransformToElement(rootSVGElement, path2).d is 0
FAIL rootSVGElement.getTransformToElement(path2).e should be close to -223.9. Was -225. FAIL getTransformToElement(rootSVGElement, path2).e should be close to -223.9. Was -225.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to 275.9. Was 275. FAIL getTransformToElement(rootSVGElement, path2).f should be close to 275.9. Was 275.
PASS rootSVGElement.getTransformToElement(path1).a is 1 PASS getTransformToElement(rootSVGElement, path1).a is 1
PASS rootSVGElement.getTransformToElement(path1).b is 0.1 PASS getTransformToElement(rootSVGElement, path1).b is 0.1
PASS rootSVGElement.getTransformToElement(path1).c is -0.1 PASS getTransformToElement(rootSVGElement, path1).c is -0.1
PASS rootSVGElement.getTransformToElement(path1).d is 1 PASS getTransformToElement(rootSVGElement, path1).d is 1
FAIL rootSVGElement.getTransformToElement(path1).e should be close to -70.3. Was -70.87814895357428. FAIL getTransformToElement(rootSVGElement, path1).e should be close to -70.3. Was -70.87814895357428.
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -182.8. Was -182.60109333201257. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -182.8. Was -182.60109333201257.
PASS rootSVGElement.getTransformToElement(path2).a is -1 PASS getTransformToElement(rootSVGElement, path2).a is -1
PASS rootSVGElement.getTransformToElement(path2).b is -0.1 PASS getTransformToElement(rootSVGElement, path2).b is -0.1
PASS rootSVGElement.getTransformToElement(path2).c is 0.1 PASS getTransformToElement(rootSVGElement, path2).c is 0.1
PASS rootSVGElement.getTransformToElement(path2).d is -1 PASS getTransformToElement(rootSVGElement, path2).d is -1
FAIL rootSVGElement.getTransformToElement(path2).e should be close to 318.6. Was 319.29822182153924. FAIL getTransformToElement(rootSVGElement, path2).e should be close to 318.6. Was 319.29822182153924.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to 211.6. Was 210.66313575977358. FAIL getTransformToElement(rootSVGElement, path2).f should be close to 211.6. Was 210.66313575977358.
PASS rootSVGElement.getTransformToElement(path1).a is 0.7 PASS getTransformToElement(rootSVGElement, path1).a is 0.7
PASS rootSVGElement.getTransformToElement(path1).b is -0.7 PASS getTransformToElement(rootSVGElement, path1).b is -0.7
PASS rootSVGElement.getTransformToElement(path1).c is 0.7 PASS getTransformToElement(rootSVGElement, path1).c is 0.7
PASS rootSVGElement.getTransformToElement(path1).d is 0.7 PASS getTransformToElement(rootSVGElement, path1).d is 0.7
PASS rootSVGElement.getTransformToElement(path1).e is -265.1 PASS getTransformToElement(rootSVGElement, path1).e is -265.1
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -18.9. Was -17.677916691624326. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -18.9. Was -17.677916691624326.
PASS rootSVGElement.getTransformToElement(path2).a is -0.7 PASS getTransformToElement(rootSVGElement, path2).a is -0.7
PASS rootSVGElement.getTransformToElement(path2).b is 0.7 PASS getTransformToElement(rootSVGElement, path2).b is 0.7
PASS rootSVGElement.getTransformToElement(path2).c is -0.7 PASS getTransformToElement(rootSVGElement, path2).c is -0.7
PASS rootSVGElement.getTransformToElement(path2).d is -0.7 PASS getTransformToElement(rootSVGElement, path2).d is -0.7
FAIL rootSVGElement.getTransformToElement(path2).e should be close to 442.7. Was 441.941810617502. FAIL getTransformToElement(rootSVGElement, path2).e should be close to 442.7. Was 441.941810617502.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to -156.9. Was -159.09852261339003. FAIL getTransformToElement(rootSVGElement, path2).f should be close to -156.9. Was -159.09852261339003.
PASS rootSVGElement.getTransformToElement(path1).a is 0.7 PASS getTransformToElement(rootSVGElement, path1).a is 0.7
PASS rootSVGElement.getTransformToElement(path1).b is -0.7 PASS getTransformToElement(rootSVGElement, path1).b is -0.7
PASS rootSVGElement.getTransformToElement(path1).c is 0.7 PASS getTransformToElement(rootSVGElement, path1).c is 0.7
PASS rootSVGElement.getTransformToElement(path1).d is 0.7 PASS getTransformToElement(rootSVGElement, path1).d is 0.7
PASS rootSVGElement.getTransformToElement(path1).e is -265.1 PASS getTransformToElement(rootSVGElement, path1).e is -265.1
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -18.9. Was -17.677916691624326. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -18.9. Was -17.677916691624326.
PASS rootSVGElement.getTransformToElement(path2).a is -0.7 PASS getTransformToElement(rootSVGElement, path2).a is -0.7
PASS rootSVGElement.getTransformToElement(path2).b is 0.7 PASS getTransformToElement(rootSVGElement, path2).b is 0.7
PASS rootSVGElement.getTransformToElement(path2).c is -0.7 PASS getTransformToElement(rootSVGElement, path2).c is -0.7
PASS rootSVGElement.getTransformToElement(path2).d is -0.7 PASS getTransformToElement(rootSVGElement, path2).d is -0.7
FAIL rootSVGElement.getTransformToElement(path2).e should be close to 442.7. Was 441.941810617502. FAIL getTransformToElement(rootSVGElement, path2).e should be close to 442.7. Was 441.941810617502.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to -156.9. Was -159.09852261339003. FAIL getTransformToElement(rootSVGElement, path2).f should be close to -156.9. Was -159.09852261339003.
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutSVGRoot {svg} at (20,56) size 101x157
LayoutSVGContainer {g} at (0,0) size 0x0 [transform={m=((0.00,0.00)(0.00,0.00)) t=(0.00,0.00)}]
LayoutSVGContainer {g} at (20,56) size 41x18 [transform={m=((1.00,0.00)(0.00,1.00)) t=(15.00,15.00)}]
LayoutSVGText {text} at (50,122) size 82x36 contains 1 chunk(s)
LayoutSVGInlineText {#text} at (0,0) size 82x36
chunk 1 text run 1 at (50.00,150.00) startOffset 0 endOffset 6 width 81.67: "Passed"
LayoutSVGContainer {g} at (49,141) size 72x72 [transform={m=((0.71,0.71)(-0.71,0.71)) t=(0.00,0.00)}]
LayoutSVGRect {rect} at (49,141) size 72x72 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}] [x=50.00] [y=50.00] [width=70.00] [height=30.00]
...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path).e is -15 PASS getTransformToElement(rootSVGElement, path).e is -15
PASS rootSVGElement.getTransformToElement(path).f is -43 PASS getTransformToElement(rootSVGElement, path).f is -43
FAIL rootSVGElement.getTransformToElement(path).e should be close to -38.5. Was -38.3656120300293. FAIL getTransformToElement(rootSVGElement, path).e should be close to -38.5. Was -38.3656120300293.
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutSVGRoot {svg} at (20,56) size 101x157
LayoutSVGContainer {g} at (0,0) size 0x0 [transform={m=((0.00,0.00)(0.00,0.00)) t=(0.00,0.00)}]
LayoutSVGContainer {g} at (20,56) size 40x18 [transform={m=((1.00,0.00)(0.00,1.00)) t=(15.00,15.00)}]
LayoutSVGText {text} at (50,123) size 80x34 contains 1 chunk(s)
LayoutSVGInlineText {#text} at (0,0) size 80x34
chunk 1 text run 1 at (50.00,150.00) startOffset 0 endOffset 6 width 80.00: "Passed"
LayoutSVGContainer {g} at (49,141) size 72x72 [transform={m=((0.71,0.71)(-0.71,0.71)) t=(0.00,0.00)}]
LayoutSVGRect {rect} at (49,141) size 72x72 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}] [x=50.00] [y=50.00] [width=70.00] [height=30.00]
...@@ -7,54 +7,54 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,54 +7,54 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path1).a is 0 PASS getTransformToElement(rootSVGElement, path1).a is 0
PASS rootSVGElement.getTransformToElement(path1).b is 1 PASS getTransformToElement(rootSVGElement, path1).b is 1
PASS rootSVGElement.getTransformToElement(path1).c is -1 PASS getTransformToElement(rootSVGElement, path1).c is -1
PASS rootSVGElement.getTransformToElement(path1).d is 0 PASS getTransformToElement(rootSVGElement, path1).d is 0
PASS rootSVGElement.getTransformToElement(path1).e is 224.9 PASS getTransformToElement(rootSVGElement, path1).e is 224.9
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -25.9. Was -25.000000000000014. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -25.9. Was -25.000000000000014.
PASS rootSVGElement.getTransformToElement(path2).a is 0 PASS getTransformToElement(rootSVGElement, path2).a is 0
PASS rootSVGElement.getTransformToElement(path2).b is -1 PASS getTransformToElement(rootSVGElement, path2).b is -1
PASS rootSVGElement.getTransformToElement(path2).c is 1 PASS getTransformToElement(rootSVGElement, path2).c is 1
PASS rootSVGElement.getTransformToElement(path2).d is 0 PASS getTransformToElement(rootSVGElement, path2).d is 0
FAIL rootSVGElement.getTransformToElement(path2).e should be close to -223.9. Was -225. FAIL getTransformToElement(rootSVGElement, path2).e should be close to -223.9. Was -225.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to 275.9. Was 275. FAIL getTransformToElement(rootSVGElement, path2).f should be close to 275.9. Was 275.
PASS rootSVGElement.getTransformToElement(path1).a is 1 PASS getTransformToElement(rootSVGElement, path1).a is 1
PASS rootSVGElement.getTransformToElement(path1).b is 0.1 PASS getTransformToElement(rootSVGElement, path1).b is 0.1
PASS rootSVGElement.getTransformToElement(path1).c is -0.1 PASS getTransformToElement(rootSVGElement, path1).c is -0.1
PASS rootSVGElement.getTransformToElement(path1).d is 1 PASS getTransformToElement(rootSVGElement, path1).d is 1
FAIL rootSVGElement.getTransformToElement(path1).e should be close to -70.3. Was -70.87814895357428. FAIL getTransformToElement(rootSVGElement, path1).e should be close to -70.3. Was -70.87814895357428.
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -182.8. Was -182.60109333201257. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -182.8. Was -182.60109333201257.
PASS rootSVGElement.getTransformToElement(path2).a is -1 PASS getTransformToElement(rootSVGElement, path2).a is -1
PASS rootSVGElement.getTransformToElement(path2).b is -0.1 PASS getTransformToElement(rootSVGElement, path2).b is -0.1
PASS rootSVGElement.getTransformToElement(path2).c is 0.1 PASS getTransformToElement(rootSVGElement, path2).c is 0.1
PASS rootSVGElement.getTransformToElement(path2).d is -1 PASS getTransformToElement(rootSVGElement, path2).d is -1
FAIL rootSVGElement.getTransformToElement(path2).e should be close to 318.6. Was 319.29822182153924. FAIL getTransformToElement(rootSVGElement, path2).e should be close to 318.6. Was 319.29822182153924.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to 211.6. Was 210.66313575977358. FAIL getTransformToElement(rootSVGElement, path2).f should be close to 211.6. Was 210.66313575977358.
PASS rootSVGElement.getTransformToElement(path1).a is 0.7 PASS getTransformToElement(rootSVGElement, path1).a is 0.7
PASS rootSVGElement.getTransformToElement(path1).b is -0.7 PASS getTransformToElement(rootSVGElement, path1).b is -0.7
PASS rootSVGElement.getTransformToElement(path1).c is 0.7 PASS getTransformToElement(rootSVGElement, path1).c is 0.7
PASS rootSVGElement.getTransformToElement(path1).d is 0.7 PASS getTransformToElement(rootSVGElement, path1).d is 0.7
PASS rootSVGElement.getTransformToElement(path1).e is -265.1 PASS getTransformToElement(rootSVGElement, path1).e is -265.1
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -18.9. Was -17.677916691624347. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -18.9. Was -17.677916691624347.
PASS rootSVGElement.getTransformToElement(path2).a is -0.7 PASS getTransformToElement(rootSVGElement, path2).a is -0.7
PASS rootSVGElement.getTransformToElement(path2).b is 0.7 PASS getTransformToElement(rootSVGElement, path2).b is 0.7
PASS rootSVGElement.getTransformToElement(path2).c is -0.7 PASS getTransformToElement(rootSVGElement, path2).c is -0.7
PASS rootSVGElement.getTransformToElement(path2).d is -0.7 PASS getTransformToElement(rootSVGElement, path2).d is -0.7
FAIL rootSVGElement.getTransformToElement(path2).e should be close to 442.7. Was 441.941810617502. FAIL getTransformToElement(rootSVGElement, path2).e should be close to 442.7. Was 441.941810617502.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to -156.9. Was -159.09852261339003. FAIL getTransformToElement(rootSVGElement, path2).f should be close to -156.9. Was -159.09852261339003.
PASS rootSVGElement.getTransformToElement(path1).a is 0.7 PASS getTransformToElement(rootSVGElement, path1).a is 0.7
PASS rootSVGElement.getTransformToElement(path1).b is -0.7 PASS getTransformToElement(rootSVGElement, path1).b is -0.7
PASS rootSVGElement.getTransformToElement(path1).c is 0.7 PASS getTransformToElement(rootSVGElement, path1).c is 0.7
PASS rootSVGElement.getTransformToElement(path1).d is 0.7 PASS getTransformToElement(rootSVGElement, path1).d is 0.7
PASS rootSVGElement.getTransformToElement(path1).e is -265.1 PASS getTransformToElement(rootSVGElement, path1).e is -265.1
FAIL rootSVGElement.getTransformToElement(path1).f should be close to -18.9. Was -17.677916691624347. FAIL getTransformToElement(rootSVGElement, path1).f should be close to -18.9. Was -17.677916691624347.
PASS rootSVGElement.getTransformToElement(path2).a is -0.7 PASS getTransformToElement(rootSVGElement, path2).a is -0.7
PASS rootSVGElement.getTransformToElement(path2).b is 0.7 PASS getTransformToElement(rootSVGElement, path2).b is 0.7
PASS rootSVGElement.getTransformToElement(path2).c is -0.7 PASS getTransformToElement(rootSVGElement, path2).c is -0.7
PASS rootSVGElement.getTransformToElement(path2).d is -0.7 PASS getTransformToElement(rootSVGElement, path2).d is -0.7
FAIL rootSVGElement.getTransformToElement(path2).e should be close to 442.7. Was 441.941810617502. FAIL getTransformToElement(rootSVGElement, path2).e should be close to 442.7. Was 441.941810617502.
FAIL rootSVGElement.getTransformToElement(path2).f should be close to -156.9. Was -159.09852261339003. FAIL getTransformToElement(rootSVGElement, path2).f should be close to -156.9. Was -159.09852261339003.
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutSVGRoot {svg} at (20,56) size 101x157
LayoutSVGContainer {g} at (0,0) size 0x0 [transform={m=((0.00,0.00)(0.00,0.00)) t=(0.00,0.00)}]
LayoutSVGContainer {g} at (20,56) size 41x17 [transform={m=((1.00,0.00)(0.00,1.00)) t=(15.00,15.00)}]
LayoutSVGText {text} at (50,123) size 82x33 contains 1 chunk(s)
LayoutSVGInlineText {#text} at (0,0) size 82x33
chunk 1 text run 1 at (50.00,150.00) startOffset 0 endOffset 6 width 81.67: "Passed"
LayoutSVGContainer {g} at (49,141) size 72x72 [transform={m=((0.71,0.71)(-0.71,0.71)) t=(0.00,0.00)}]
LayoutSVGRect {rect} at (49,141) size 72x72 [transform={m=((1.00,0.00)(0.00,1.00)) t=(100.00,0.00)}] [x=50.00] [y=50.00] [width=70.00] [height=30.00]
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
Note the use of nested svg elements and testing against different elements in the hierarchy. Note the use of nested svg elements and testing against different elements in the hierarchy.
Note that the values of .getScreenCTM() and .getCTM() can only be tested correctly if they are Note that the values of .getScreenCTM() and .getCTM() can only be tested correctly if they are
in the html-based test or the width and height of the root element is explicitly set to 480x360. in the html-based test or the width and height of the root element is explicitly set to 480x360.
The methods .getScreenCTM() and .getCTM() are tested from the rotated text element, the method .getBBox(), The methods .getScreenCTM() and .getCTM() are tested from the rotated text element, the method .getBBox() is tested between the rotated text and its parent group, the method .getBBox() and
.getTransformToElement() is tested between the rotated text and its parent group, the method .getBBox() and
the properties .farthestViewportElement and .nearestViewportElement are tested on the blue circle. the properties .farthestViewportElement and .nearestViewportElement are tested on the blue circle.
</p> </p>
</d:testDescription> </d:testDescription>
...@@ -39,9 +38,6 @@ ...@@ -39,9 +38,6 @@
<p> <p>
.getCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00 .getCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00
</p> </p>
<p>
.getTransformToElement() between id "rotText" and id "parentGroup": 0.42,0.42,-0.42,0.42,0.00,0.00
</p>
<p> <p>
.getBBox() for 'blueCircle': .x=-50,.y=-50,.width=100,.height=100 .getBBox() for 'blueCircle': .x=-50,.y=-50,.width=100,.height=100
</p> </p>
...@@ -70,12 +66,10 @@ ...@@ -70,12 +66,10 @@
document.getElementById("result1").firstChild.nodeValue = ".getScreenCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2); document.getElementById("result1").firstChild.nodeValue = ".getScreenCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2);
var matr = rotText.getCTM(); var matr = rotText.getCTM();
document.getElementById("result2").firstChild.nodeValue = ".getCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2); document.getElementById("result2").firstChild.nodeValue = ".getCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2);
var matr = rotText.getTransformToElement(document.getElementById("parentGroup"));
document.getElementById("result3").firstChild.nodeValue = ".getTransformToElement(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2);
var bbox = blueCircle.getBBox(); var bbox = blueCircle.getBBox();
document.getElementById("result4").firstChild.nodeValue = ".getBBox() for 'blueCircle': .x="+bbox.x+",.y="+bbox.y+",.width="+bbox.width+",.height="+bbox.height; document.getElementById("result3").firstChild.nodeValue = ".getBBox() for 'blueCircle': .x="+bbox.x+",.y="+bbox.y+",.width="+bbox.width+",.height="+bbox.height;
document.getElementById("result5").firstChild.nodeValue = ".farthestViewportElement of blueCircle="+blueCircle.farthestViewportElement.getAttributeNS(null,"id"); document.getElementById("result4").firstChild.nodeValue = ".farthestViewportElement of blueCircle="+blueCircle.farthestViewportElement.getAttributeNS(null,"id");
document.getElementById("result6").firstChild.nodeValue = ".nearestViewportElement of blueCircle="+blueCircle.nearestViewportElement.getAttributeNS(null,"id"); document.getElementById("result5").firstChild.nodeValue = ".nearestViewportElement of blueCircle="+blueCircle.nearestViewportElement.getAttributeNS(null,"id");
} }
</script> </script>
<g font-size="12"> <g font-size="12">
...@@ -91,7 +85,6 @@ ...@@ -91,7 +85,6 @@
<text id="result3" x="10" y="240"> </text> <text id="result3" x="10" y="240"> </text>
<text id="result4" x="10" y="260"> </text> <text id="result4" x="10" y="260"> </text>
<text id="result5" x="10" y="280"> </text> <text id="result5" x="10" y="280"> </text>
<text id="result6" x="10" y="300"> </text>
</g> </g>
</g> </g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="AE,ED" owner="AN" desc="Tests the interface SVGLocatable" status="accepted" version="$Revision: 1.1 $" testname="$RCSfile: types-basicDOM-01-b.svg,v $"> <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="AE,ED" owner="AN" desc="Tests the interface SVGLocatable" status="accepted" version="$Revision: 1.1 $" testname="$RCSfile: types-basicDOM-01-b.svg,v $">
<OperatorScript> <OperatorScript>
<Paragraph> <Paragraph>
This test checks all the methods and properties of the SVGLocatable interface. Note the use of nested svg elements and testing against different elements in the hierarchy. Note that the values of .getScreenCTM() and .getCTM() can only be tested correctly if they are in the html-based test or the width and height of the root element is explicitly set to 480x360. The methods .getScreenCTM() and .getCTM() are tested from the rotated text element, the method .getBBox(), .getTransformToElement() is tested between the rotated text and its parent group, the method .getBBox() and the properties .farthestViewportElement and .nearestViewportElement are tested on the red circle. This test checks all the methods and properties of the SVGLocatable interface. Note the use of nested svg elements and testing against different elements in the hierarchy. Note that the values of .getScreenCTM() and .getCTM() can only be tested correctly if they are in the html-based test or the width and height of the root element is explicitly set to 480x360. The methods .getScreenCTM() and .getCTM() are tested from the rotated text element, the method .getBBox(), is tested between the rotated text and its parent group, the method .getBBox() and the properties .farthestViewportElement and .nearestViewportElement are tested on the red circle.
</Paragraph> </Paragraph>
<Paragraph> <Paragraph>
For the test to pass, the values generated by script must match the values provided in the png image. The correct values are: For the test to pass, the values generated by script must match the values provided in the png image. The correct values are:
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
<Paragraph> <Paragraph>
.getCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00 .getCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00
</Paragraph> </Paragraph>
<Paragraph>
.getTransformToElement() between id "rotText" and id "parentGroup": 0.42,0.42,-0.42,0.42,0.00,0.00
</Paragraph>
<Paragraph> <Paragraph>
.getBBox() for 'redCircle': .x=-50,.y=-50,.width=100,.height=100 .getBBox() for 'redCircle': .x=-50,.y=-50,.width=100,.height=100
</Paragraph> </Paragraph>
...@@ -54,12 +51,10 @@ ...@@ -54,12 +51,10 @@
document.getElementById("result1").firstChild.nodeValue = ".getScreenCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2); document.getElementById("result1").firstChild.nodeValue = ".getScreenCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2);
var matr = rotText.getCTM(); var matr = rotText.getCTM();
document.getElementById("result2").firstChild.nodeValue = ".getCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2); document.getElementById("result2").firstChild.nodeValue = ".getCTM(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2);
var matr = rotText.getTransformToElement(document.getElementById("parentGroup"));
document.getElementById("result3").firstChild.nodeValue = ".getTransformToElement(): " + matr.a.toFixed(2) + "," + matr.b.toFixed(2) + "," + matr.c.toFixed(2) + "," + matr.d.toFixed(2) + "," + matr.e.toFixed(2) + "," + matr.f.toFixed(2);
var bbox = redCircle.getBBox(); var bbox = redCircle.getBBox();
document.getElementById("result4").firstChild.nodeValue = ".getBBox() for 'redCircle': .x="+bbox.x+",.y="+bbox.y+",.width="+bbox.width+",.height="+bbox.height; document.getElementById("result3").firstChild.nodeValue = ".getBBox() for 'redCircle': .x="+bbox.x+",.y="+bbox.y+",.width="+bbox.width+",.height="+bbox.height;
document.getElementById("result5").firstChild.nodeValue = ".farthestViewportElement of redCircle="+redCircle.farthestViewportElement.getAttributeNS(null,"id"); document.getElementById("result4").firstChild.nodeValue = ".farthestViewportElement of redCircle="+redCircle.farthestViewportElement.getAttributeNS(null,"id");
document.getElementById("result6").firstChild.nodeValue = ".nearestViewportElement of redCircle="+redCircle.nearestViewportElement.getAttributeNS(null,"id"); document.getElementById("result5").firstChild.nodeValue = ".nearestViewportElement of redCircle="+redCircle.nearestViewportElement.getAttributeNS(null,"id");
} }
]]></script> ]]></script>
<g font-family="sans-serif" font-size="12"> <g font-family="sans-serif" font-size="12">
...@@ -75,7 +70,6 @@ ...@@ -75,7 +70,6 @@
<text id="result3" x="10" y="240"> </text> <text id="result3" x="10" y="240"> </text>
<text id="result4" x="10" y="260"> </text> <text id="result4" x="10" y="260"> </text>
<text id="result5" x="10" y="280"> </text> <text id="result5" x="10" y="280"> </text>
<text id="result6" x="10" y="300"> </text>
</g> </g>
</g> </g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.1 $</text> <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.1 $</text>
......
...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path).e is -15 PASS getTransformToElement(rootSVGElement, path).e is -15
PASS rootSVGElement.getTransformToElement(path).f is -43 PASS getTransformToElement(rootSVGElement, path).f is -43
PASS rootSVGElement.getTransformToElement(path).e is -40 PASS getTransformToElement(rootSVGElement, path).e is -40
PASS rootSVGElement.getTransformToElement(path).f is -36.5 PASS getTransformToElement(rootSVGElement, path).f is -36.5
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path).e is -15 PASS getTransformToElement(rootSVGElement, path).e is -15
PASS rootSVGElement.getTransformToElement(path).f is -43 PASS getTransformToElement(rootSVGElement, path).f is -43
PASS rootSVGElement.getTransformToElement(path).e is -40 PASS getTransformToElement(rootSVGElement, path).e is -40
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path).e is -15 PASS getTransformToElement(rootSVGElement, path).e is -15
PASS rootSVGElement.getTransformToElement(path).f is -43 PASS getTransformToElement(rootSVGElement, path).f is -43
FAIL rootSVGElement.getTransformToElement(path).e should be close to -38.5. Was -38.3656120300293. FAIL getTransformToElement(rootSVGElement, path).e should be close to -38.5. Was -38.3656120300293.
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa ...@@ -7,14 +7,14 @@ A copy of the corresponding W3C-SVG-1.1 test, which dumps the animation at certa
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(path).e is -15 PASS getTransformToElement(rootSVGElement, path).e is -15
PASS rootSVGElement.getTransformToElement(path).f is -43 PASS getTransformToElement(rootSVGElement, path).f is -43
FAIL rootSVGElement.getTransformToElement(path).e should be close to -38.5. Was -38.3656120300293. FAIL getTransformToElement(rootSVGElement, path).e should be close to -38.5. Was -38.3656120300293.
PASS rootSVGElement.getTransformToElement(path).f is -30 PASS getTransformToElement(rootSVGElement, path).f is -30
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS rootSVGElement.getTransformToElement(path).e is -65 PASS getTransformToElement(rootSVGElement, path).e is -65
PASS rootSVGElement.getTransformToElement(path).f is -33 PASS getTransformToElement(rootSVGElement, path).f is -33
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS rect1.height.animVal.value is 210 PASS rect1.height.animVal.value is 210
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -250 PASS getTransformToElement(rootSVGElement, rect2).f is -250
PASS rect1.height.animVal.value is 177 PASS rect1.height.animVal.value is 177
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -217 PASS getTransformToElement(rootSVGElement, rect2).f is -217
PASS rect1.height.animVal.value is 177 PASS rect1.height.animVal.value is 177
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -217 PASS getTransformToElement(rootSVGElement, rect2).f is -217
PASS rect1.height.animVal.value is 121 PASS rect1.height.animVal.value is 121
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -161 PASS getTransformToElement(rootSVGElement, rect2).f is -161
PASS rect1.height.animVal.value is 121 PASS rect1.height.animVal.value is 121
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -161 PASS getTransformToElement(rootSVGElement, rect2).f is -161
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS rect1.height.animVal.value is 210 PASS rect1.height.animVal.value is 210
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -250 PASS getTransformToElement(rootSVGElement, rect2).f is -250
PASS rect1.height.animVal.value is 177 PASS rect1.height.animVal.value is 177
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -217 PASS getTransformToElement(rootSVGElement, rect2).f is -217
PASS rect1.height.animVal.value is 177 PASS rect1.height.animVal.value is 177
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -217 PASS getTransformToElement(rootSVGElement, rect2).f is -217
PASS rect1.height.animVal.value is 121 PASS rect1.height.animVal.value is 121
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -161 PASS getTransformToElement(rootSVGElement, rect2).f is -161
PASS rect1.height.animVal.value is 121 PASS rect1.height.animVal.value is 121
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -161 PASS getTransformToElement(rootSVGElement, rect2).f is -161
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS rect1.height.animVal.value is 210 PASS rect1.height.animVal.value is 210
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -250 PASS getTransformToElement(rootSVGElement, rect2).f is -250
PASS rect1.height.animVal.value is 143.4 PASS rect1.height.animVal.value is 143.4
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -183.4 PASS getTransformToElement(rootSVGElement, rect2).f is -183.4
PASS rect1.height.animVal.value is 143.4 PASS rect1.height.animVal.value is 143.4
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -183.4 PASS getTransformToElement(rootSVGElement, rect2).f is -183.4
PASS rect1.height.animVal.value is 76.7 PASS rect1.height.animVal.value is 76.7
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -116.7 PASS getTransformToElement(rootSVGElement, rect2).f is -116.7
PASS rect1.height.animVal.value is 76.7 PASS rect1.height.animVal.value is 76.7
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -116.7 PASS getTransformToElement(rootSVGElement, rect2).f is -116.7
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ...@@ -9,36 +9,36 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS rect1.height.animVal.value is 210 PASS rect1.height.animVal.value is 210
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -250 PASS getTransformToElement(rootSVGElement, rect2).f is -250
PASS rect1.height.animVal.value is 177 PASS rect1.height.animVal.value is 177
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -217 PASS getTransformToElement(rootSVGElement, rect2).f is -217
PASS rect1.height.animVal.value is 177 PASS rect1.height.animVal.value is 177
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -217 PASS getTransformToElement(rootSVGElement, rect2).f is -217
PASS rect1.height.animVal.value is 121 PASS rect1.height.animVal.value is 121
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -161 PASS getTransformToElement(rootSVGElement, rect2).f is -161
PASS rect1.height.animVal.value is 121 PASS rect1.height.animVal.value is 121
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -161 PASS getTransformToElement(rootSVGElement, rect2).f is -161
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS rect1.height.animVal.value is 10 PASS rect1.height.animVal.value is 10
PASS rect1.height.baseVal.value is 210 PASS rect1.height.baseVal.value is 210
PASS rootSVGElement.getTransformToElement(rect2).e is -250 PASS getTransformToElement(rootSVGElement, rect2).e is -250
PASS rootSVGElement.getTransformToElement(rect2).f is -50 PASS getTransformToElement(rootSVGElement, rect2).f is -50
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -6,16 +6,16 @@ Tests that an animateTransform with attributeType "auto" acts as "XML". Should r ...@@ -6,16 +6,16 @@ Tests that an animateTransform with attributeType "auto" acts as "XML". Should r
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS rootSVGElement.getTransformToElement(rect).e is -100 PASS getTransformToElement(rootSVGElement, rect).e is -100
PASS rootSVGElement.getTransformToElement(rect).f is -100 PASS getTransformToElement(rootSVGElement, rect).f is -100
PASS rootSVGElement.getTransformToElement(rect).e is -200 PASS getTransformToElement(rootSVGElement, rect).e is -200
PASS rootSVGElement.getTransformToElement(rect).f is -200 PASS getTransformToElement(rootSVGElement, rect).f is -200
PASS rootSVGElement.getTransformToElement(rect).e is -200 PASS getTransformToElement(rootSVGElement, rect).e is -200
PASS rootSVGElement.getTransformToElement(rect).f is -200 PASS getTransformToElement(rootSVGElement, rect).f is -200
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -6,16 +6,16 @@ Tests that an animateTransform with invalid attributeType does not animate. Shou ...@@ -6,16 +6,16 @@ Tests that an animateTransform with invalid attributeType does not animate. Shou
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS rootSVGElement.getTransformToElement(rect).e is 0 PASS getTransformToElement(rootSVGElement, rect).e is 0
PASS rootSVGElement.getTransformToElement(rect).f is 0 PASS getTransformToElement(rootSVGElement, rect).f is 0
PASS successfullyParsed is true PASS successfullyParsed is true
TEST COMPLETE TEST COMPLETE
......
...@@ -43,6 +43,10 @@ function expectTranslationMatrix(actualMatrix, expectedE, expectedF, tolerance) ...@@ -43,6 +43,10 @@ function expectTranslationMatrix(actualMatrix, expectedE, expectedF, tolerance)
shouldBeCloseEnough(actualMatrix + ".f", expectedF, tolerance); shouldBeCloseEnough(actualMatrix + ".f", expectedF, tolerance);
} }
function getTransformToElement(rootElement, element) {
return element.getCTM().inverse().multiply(rootElement.getCTM());
}
function expectColor(element, red, green, blue, property) { function expectColor(element, red, green, blue, property) {
if (typeof property != "string") if (typeof property != "string")
color = getComputedStyle(element).getPropertyValue("color"); color = getComputedStyle(element).getPropertyValue("color");
......
...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-04-t.svg"); ...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-04-t.svg");
// Setup animation test // Setup animation test
function sample1() { function sample1() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15", "-43"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-15", "-43");
} }
function sample2() { function sample2() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-40", "-36.5"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-40", "-36.5");
} }
function sample3() { function sample3() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65", "-30"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-65", "-30");
} }
function executeTest() { function executeTest() {
......
...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-05-t.svg"); ...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-05-t.svg");
// Setup animation test // Setup animation test
function sample1() { function sample1() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15", "-43"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)","-15","-43");
} }
function sample2() { function sample2() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-40", "-30"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)","-40","-30");
} }
function sample3() { function sample3() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65", "-30"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)","-65","-30");
} }
function executeTest() { function executeTest() {
......
...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-06-t.svg"); ...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-06-t.svg");
// Setup animation test // Setup animation test
function sample1() { function sample1() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15", "-43"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-15", "-43");
} }
function sample2() { function sample2() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-38.5", "-30"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-38.5", "-30");
} }
function sample3() { function sample3() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65", "-33"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-65", "-33");
} }
function executeTest() { function executeTest() {
......
...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-07-t.svg"); ...@@ -3,15 +3,15 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-07-t.svg");
// Setup animation test // Setup animation test
function sample1() { function sample1() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15", "-43"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-15", "-43");
} }
function sample2() { function sample2() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-38.5", "-30"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-38.5", "-30");
} }
function sample3() { function sample3() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65", "-33"); expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-65", "-33");
} }
function executeTest() { function executeTest() {
......
...@@ -3,18 +3,18 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-08-t.svg"); ...@@ -3,18 +3,18 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-08-t.svg");
// Setup animation test // Setup animation test
function sample1() { function sample1() {
expectMatrix("rootSVGElement.getTransformToElement(path1)", "0", "1", "-1", "0", "224.9", "-25.9"); expectMatrix("getTransformToElement(rootSVGElement, path1)", "0", "1", "-1", "0", "224.9", "-25.9");
expectMatrix("rootSVGElement.getTransformToElement(path2)", "0", "-1", "1", "0", "-223.9", "275.9"); expectMatrix("getTransformToElement(rootSVGElement, path2)", "0", "-1", "1", "0", "-223.9", "275.9");
} }
function sample2() { function sample2() {
expectMatrix("rootSVGElement.getTransformToElement(path1)", "1", "0.1", "-0.1", "1", "-70.3", "-182.8"); expectMatrix("getTransformToElement(rootSVGElement, path1)", "1", "0.1", "-0.1", "1", "-70.3", "-182.8");
expectMatrix("rootSVGElement.getTransformToElement(path2)", "-1", "-0.1", "0.1", "-1", "318.6", "211.6"); expectMatrix("getTransformToElement(rootSVGElement, path2)", "-1", "-0.1", "0.1", "-1", "318.6", "211.6");
} }
function sample3() { function sample3() {
expectMatrix("rootSVGElement.getTransformToElement(path1)", "0.7", "-0.7", "0.7", "0.7", "-265.1", "-18.9"); expectMatrix("getTransformToElement(rootSVGElement, path1)", "0.7", "-0.7", "0.7", "0.7", "-265.1", "-18.9");
expectMatrix("rootSVGElement.getTransformToElement(path2)", "-0.7", "0.7", "-0.7", "-0.7", "442.7", "-156.9"); expectMatrix("getTransformToElement(rootSVGElement, path2)", "-0.7", "0.7", "-0.7", "-0.7", "442.7", "-156.9");
} }
function executeTest() { function executeTest() {
......
...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-09-t.svg"); ...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-09-t.svg");
function sample1() { function sample1() {
shouldBe("rect1.height.animVal.value", "210"); shouldBe("rect1.height.animVal.value", "210");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-250"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-250");
} }
function sample2() { function sample2() {
shouldBe("rect1.height.animVal.value", "177"); shouldBe("rect1.height.animVal.value", "177");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-217"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-217");
} }
function sample3() { function sample3() {
shouldBe("rect1.height.animVal.value", "121"); shouldBe("rect1.height.animVal.value", "121");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-161"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-161");
} }
function sample4() { function sample4() {
shouldBe("rect1.height.animVal.value", "10"); shouldBe("rect1.height.animVal.value", "10");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-50"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-50");
} }
function executeTest() { function executeTest() {
......
...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-10-t.svg"); ...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-10-t.svg");
function sample1() { function sample1() {
shouldBeCloseEnough("rect1.height.animVal.value", "210"); shouldBeCloseEnough("rect1.height.animVal.value", "210");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-250"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-250");
} }
function sample2() { function sample2() {
shouldBeCloseEnough("rect1.height.animVal.value", "177"); shouldBeCloseEnough("rect1.height.animVal.value", "177");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-217"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-217");
} }
function sample3() { function sample3() {
shouldBeCloseEnough("rect1.height.animVal.value", "121"); shouldBeCloseEnough("rect1.height.animVal.value", "121");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-161"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-161");
} }
function sample4() { function sample4() {
shouldBeCloseEnough("rect1.height.animVal.value", "10"); shouldBeCloseEnough("rect1.height.animVal.value", "10");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-50"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-50");
} }
function executeTest() { function executeTest() {
......
...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-11-t.svg"); ...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-11-t.svg");
function sample1() { function sample1() {
shouldBeCloseEnough("rect1.height.animVal.value", "210"); shouldBeCloseEnough("rect1.height.animVal.value", "210");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-250"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-250");
} }
function sample2() { function sample2() {
shouldBeCloseEnough("rect1.height.animVal.value", "143.4"); shouldBeCloseEnough("rect1.height.animVal.value", "143.4");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-183.4"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-183.4");
} }
function sample3() { function sample3() {
shouldBeCloseEnough("rect1.height.animVal.value", "76.7"); shouldBeCloseEnough("rect1.height.animVal.value", "76.7");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-116.7"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-116.7");
} }
function sample4() { function sample4() {
shouldBeCloseEnough("rect1.height.animVal.value", "10"); shouldBeCloseEnough("rect1.height.animVal.value", "10");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-50"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-50");
} }
function executeTest() { function executeTest() {
......
...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-12-t.svg"); ...@@ -5,25 +5,25 @@ embedSVGTestCase("../W3C-SVG-1.1/animate-elem-12-t.svg");
function sample1() { function sample1() {
shouldBeCloseEnough("rect1.height.animVal.value", "210"); shouldBeCloseEnough("rect1.height.animVal.value", "210");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-250"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-250");
} }
function sample2() { function sample2() {
shouldBeCloseEnough("rect1.height.animVal.value", "177"); shouldBeCloseEnough("rect1.height.animVal.value", "177");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-217"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-217");
} }
function sample3() { function sample3() {
shouldBeCloseEnough("rect1.height.animVal.value", "121"); shouldBeCloseEnough("rect1.height.animVal.value", "121");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-161"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-161");
} }
function sample4() { function sample4() {
shouldBeCloseEnough("rect1.height.animVal.value", "10"); shouldBeCloseEnough("rect1.height.animVal.value", "10");
shouldBe("rect1.height.baseVal.value", "210"); shouldBe("rect1.height.baseVal.value", "210");
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect2)", "-250", "-50"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect2)", "-250", "-50");
} }
function executeTest() { function executeTest() {
......
...@@ -26,13 +26,13 @@ rootSVGElement.appendChild(rect); ...@@ -26,13 +26,13 @@ rootSVGElement.appendChild(rect);
// Setup animation test // Setup animation test
function sample1() { function sample1() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect)", "0", "0"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect)", "0", "0");
} }
function sample2() { function sample2() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect)", "-100", "-100"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect)", "-100", "-100");
} }
function sample3() { function sample3() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect)", "-200", "-200"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect)", "-200", "-200");
} }
function executeTest() { function executeTest() {
......
...@@ -26,7 +26,7 @@ rootSVGElement.appendChild(rect); ...@@ -26,7 +26,7 @@ rootSVGElement.appendChild(rect);
// Setup animation test // Setup animation test
function sample() { function sample() {
expectTranslationMatrix("rootSVGElement.getTransformToElement(rect)", "0", "0"); expectTranslationMatrix("getTransformToElement(rootSVGElement, rect)", "0", "0");
} }
function executeTest() { function executeTest() {
......
CONSOLE WARNING: SVG's SMIL animations (<animate>, <set>, etc.) are deprecated and will be removed. Please use CSS animations or Web animations instead.
CONSOLE ERROR: line 5: Uncaught TypeError: Failed to execute 'getTransformToElement' on 'SVGGraphicsElement': 1 argument required, but only 0 present.
PASS
<html>
<head>
<script type="application/javascript">
function test() {
document.getElementById("crash").getTransformToElement();
}
if (window.testRunner) {
testRunner.dumpAsText();
}
</script>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" onload="test()">
<animateTransform >
<text id="crash">
</text>
</animateTransform>
</svg>
PASS
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" onload="runTest()">
<script type="text/ecmascript"><![CDATA[
function runTest() {
var referenceElement = document.getElementById("referenceText");
var ctm = referenceElement.getTransformToElement(document.getElementById("group1"));
if (ctm.a == 0.5 && ctm.b == 0 && ctm.c == 0 && ctm.d == 0.5 &&
ctm.e == -20 && ctm.f == -20) {
ctm = referenceElement.getTransformToElement(document.getElementById("group2"));
if (ctm.a.toFixed(3) == 0.354 && ctm.b.toFixed(3) == -0.354 &&
ctm.c.toFixed(3) == 0.354 && ctm.d.toFixed(3) == 0.354 &&
ctm.e.toFixed(3) == -7.071 && ctm.f.toFixed(8) == 0.0) {
ctm = referenceElement.getTransformToElement(document.getElementById("redRect"));
if (ctm.a.toFixed(3) == 0.354 && ctm.b.toFixed(3) == -0.354 &&
ctm.c.toFixed(3) == 0.354 && ctm.d.toFixed(3) == 0.354 &&
ctm.e.toFixed(3) == -107.071 && ctm.f.toFixed(8) == 0.0) {
try {
var ctm = referenceElement.getTransformToElement(document.getElementById("group0"));
} catch(e) {
document.getElementById("referenceText").textContent = "Passed";
}
}
}
}
}
]]></script>
<g id="group0" transform="scale(0)"/>
<g id="group1" transform="translate(15,15)">
<text id="referenceText" transform="translate(-20,-20),scale(0.5)" font-size="30" x="50" y="150">Failed</text>
</g>
<g id="group2" transform="rotate(45)">
<rect id="redRect" transform="translate(100,0)" x="50" y="50" width="70" height="30" fill="none"/>
</g>
</svg>
...@@ -19,11 +19,9 @@ Test SVGLocatable interface ...@@ -19,11 +19,9 @@ Test SVGLocatable interface
PASS dumpMatrix(circle.getCTM()) is "[2.0 0.0 0.0 2.0 20.0 20.0]" PASS dumpMatrix(circle.getCTM()) is "[2.0 0.0 0.0 2.0 20.0 20.0]"
PASS dumpMatrix(circle.getScreenCTM()) is "[2.0 0.0 0.0 2.0 28.0 28.0]" PASS dumpMatrix(circle.getScreenCTM()) is "[2.0 0.0 0.0 2.0 28.0 28.0]"
PASS dumpRect(circle.getBBox()) is "[0 0 80 80]" PASS dumpRect(circle.getBBox()) is "[0 0 80 80]"
PASS dumpMatrix(circle.getTransformToElement(circle)) is "[1.0 0.0 0.0 1.0 0.0 0.0]"
PASS dumpMatrix(rect.getCTM()) is "[0.7 0.7 -0.7 0.7 100.0 0.0]" PASS dumpMatrix(rect.getCTM()) is "[0.7 0.7 -0.7 0.7 100.0 0.0]"
PASS dumpMatrix(rect.getScreenCTM()) is "[0.7 0.7 -0.7 0.7 312.0 8.0]" PASS dumpMatrix(rect.getScreenCTM()) is "[0.7 0.7 -0.7 0.7 312.0 8.0]"
PASS dumpRect(rect.getBBox()) is "[40 40 100 100]" PASS dumpRect(rect.getBBox()) is "[40 40 100 100]"
PASS dumpMatrix(rect.getTransformToElement(rect)) is "[1.0 0.0 0.0 1.0 0.0 0.0]"
Test CSSMatrix Test CSSMatrix
PASS circle.style.webkitTransform is "scale(2, 2) translate(10px, 10px)" PASS circle.style.webkitTransform is "scale(2, 2) translate(10px, 10px)"
......
...@@ -73,13 +73,11 @@ ...@@ -73,13 +73,11 @@
shouldBeEqualToString("dumpMatrix(circle.getCTM())", "[2.0 0.0 0.0 2.0 20.0 20.0]"); shouldBeEqualToString("dumpMatrix(circle.getCTM())", "[2.0 0.0 0.0 2.0 20.0 20.0]");
shouldBeEqualToString("dumpMatrix(circle.getScreenCTM())", "[2.0 0.0 0.0 2.0 28.0 28.0]"); shouldBeEqualToString("dumpMatrix(circle.getScreenCTM())", "[2.0 0.0 0.0 2.0 28.0 28.0]");
shouldBeEqualToString("dumpRect(circle.getBBox())", "[0 0 80 80]"); shouldBeEqualToString("dumpRect(circle.getBBox())", "[0 0 80 80]");
shouldBeEqualToString("dumpMatrix(circle.getTransformToElement(circle))", "[1.0 0.0 0.0 1.0 0.0 0.0]");
shouldBeEqualToString("dumpMatrix(rect.getCTM())", "[0.7 0.7 -0.7 0.7 100.0 0.0]"); shouldBeEqualToString("dumpMatrix(rect.getCTM())", "[0.7 0.7 -0.7 0.7 100.0 0.0]");
shouldBeEqualToString("dumpMatrix(rect.getScreenCTM())", "[0.7 0.7 -0.7 0.7 312.0 8.0]"); shouldBeEqualToString("dumpMatrix(rect.getScreenCTM())", "[0.7 0.7 -0.7 0.7 312.0 8.0]");
shouldBeEqualToString("dumpRect(rect.getBBox())", "[40 40 100 100]"); shouldBeEqualToString("dumpRect(rect.getBBox())", "[40 40 100 100]");
shouldBeEqualToString("dumpMatrix(rect.getTransformToElement(rect))", "[1.0 0.0 0.0 1.0 0.0 0.0]");
debug(""); debug("");
debug("Test CSSMatrix"); debug("Test CSSMatrix");
shouldBeEqualToString("circle.style.webkitTransform", "scale(2, 2) translate(10px, 10px)"); shouldBeEqualToString("circle.style.webkitTransform", "scale(2, 2) translate(10px, 10px)");
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<script> <script>
var line1 = document.getElementById("line1"); var line1 = document.getElementById("line1");
var center = document.rootElement.createSVGPoint(); var center = document.rootElement.createSVGPoint();
var matrix = document.rootElement.getTransformToElement(line1); var matrix = line1.getCTM().inverse().multiply(document.rootElement.getCTM())
var bbox = line1.getBBox(); var bbox = line1.getBBox();
center.x = bbox.x + bbox.width/2; center.x = bbox.x + bbox.width/2;
......
...@@ -3984,7 +3984,6 @@ interface SVGGraphicsElement : SVGElement ...@@ -3984,7 +3984,6 @@ interface SVGGraphicsElement : SVGElement
method getBBox method getBBox
method getCTM method getCTM
method getScreenCTM method getScreenCTM
method getTransformToElement
interface SVGImageElement : SVGGraphicsElement interface SVGImageElement : SVGGraphicsElement
getter height getter height
getter href getter href
......
...@@ -4522,7 +4522,6 @@ interface SVGGraphicsElement : SVGElement ...@@ -4522,7 +4522,6 @@ interface SVGGraphicsElement : SVGElement
method getBBox method getBBox
method getCTM method getCTM
method getScreenCTM method getScreenCTM
method getTransformToElement
interface SVGImageElement : SVGGraphicsElement interface SVGImageElement : SVGGraphicsElement
getter height getter height
getter href getter href
......
...@@ -50,22 +50,6 @@ DEFINE_TRACE(SVGGraphicsElement) ...@@ -50,22 +50,6 @@ DEFINE_TRACE(SVGGraphicsElement)
SVGTests::trace(visitor); SVGTests::trace(visitor);
} }
PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGGraphicsElement::getTransformToElement(SVGElement* target, ExceptionState& exceptionState)
{
AffineTransform ctm = getCTM(AllowStyleUpdate);
if (target && target->isSVGGraphicsElement()) {
AffineTransform targetCTM = toSVGGraphicsElement(target)->getCTM(AllowStyleUpdate);
if (!targetCTM.isInvertible()) {
exceptionState.throwDOMException(InvalidStateError, "The target transformation is not invertable.");
return nullptr;
}
ctm = targetCTM.inverse() * ctm;
}
return SVGMatrixTearOff::create(ctm);
}
static bool isViewportElement(const Element& element) static bool isViewportElement(const Element& element)
{ {
return (isSVGSVGElement(element) return (isSVGSVGElement(element)
......
...@@ -48,8 +48,6 @@ public: ...@@ -48,8 +48,6 @@ public:
PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getCTMFromJavascript(); PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getCTMFromJavascript();
PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getScreenCTMFromJavascript(); PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getScreenCTMFromJavascript();
PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getTransformToElement(SVGElement*, ExceptionState&);
SVGElement* nearestViewportElement() const; SVGElement* nearestViewportElement() const;
SVGElement* farthestViewportElement() const; SVGElement* farthestViewportElement() const;
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
[ImplementedAs=getBBoxFromJavascript] SVGRect getBBox(); [ImplementedAs=getBBoxFromJavascript] SVGRect getBBox();
[ImplementedAs=getCTMFromJavascript] SVGMatrix getCTM(); [ImplementedAs=getCTMFromJavascript] SVGMatrix getCTM();
[ImplementedAs=getScreenCTMFromJavascript] SVGMatrix getScreenCTM(); [ImplementedAs=getScreenCTMFromJavascript] SVGMatrix getScreenCTM();
[RaisesException, MeasureAs=SVGGraphicsElementGetTransformToElement] SVGMatrix getTransformToElement(SVGElement element);
}; };
SVGGraphicsElement implements SVGTests; SVGGraphicsElement implements SVGTests;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment