Index: third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/types-basicDOM-01-b.svg |
diff --git a/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/types-basicDOM-01-b.svg b/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/types-basicDOM-01-b.svg |
index ecde5a6b1495e09675ae5e865e3b36a69c559b37..34586d0b7519d5562ddb234c40e74fc039d86e88 100644 |
--- a/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/types-basicDOM-01-b.svg |
+++ b/third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/types-basicDOM-01-b.svg |
@@ -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 $"> |
<OperatorScript> |
<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> |
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 @@ |
<Paragraph> |
.getCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00 |
</Paragraph> |
- <Paragraph> |
- .getTransformToElement() between id "rotText" and id "parentGroup": 0.42,0.42,-0.42,0.42,0.00,0.00 |
- </Paragraph> |
<Paragraph> |
.getBBox() for 'redCircle': .x=-50,.y=-50,.width=100,.height=100 |
</Paragraph> |
@@ -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); |
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); |
- 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(); |
- document.getElementById("result4").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("result6").firstChild.nodeValue = ".nearestViewportElement of redCircle="+redCircle.nearestViewportElement.getAttributeNS(null,"id"); |
+ document.getElementById("result3").firstChild.nodeValue = ".getBBox() for 'redCircle': .x="+bbox.x+",.y="+bbox.y+",.width="+bbox.width+",.height="+bbox.height; |
+ document.getElementById("result4").firstChild.nodeValue = ".farthestViewportElement of redCircle="+redCircle.farthestViewportElement.getAttributeNS(null,"id"); |
+ document.getElementById("result5").firstChild.nodeValue = ".nearestViewportElement of redCircle="+redCircle.nearestViewportElement.getAttributeNS(null,"id"); |
} |
]]></script> |
<g font-family="sans-serif" font-size="12"> |
@@ -75,7 +70,6 @@ |
<text id="result3" x="10" y="240"> </text> |
<text id="result4" x="10" y="260"> </text> |
<text id="result5" x="10" y="280"> </text> |
- <text id="result6" x="10" y="300"> </text> |
</g> |
</g> |
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.1 $</text> |