Title: [122872] trunk/LayoutTests
- Revision
- 122872
- Author
- [email protected]
- Date
- 2012-07-17 13:44:40 -0700 (Tue, 17 Jul 2012)
Log Message
SVG getBBox does not update bound after path data change
https://bugs.webkit.org/show_bug.cgi?id=82629
Reviewed by Dirk Schulze.
The bug appears to have been fixed - adding a test for it.
* svg/custom/path-bbox-update-expected.txt: Added.
* svg/custom/path-bbox-update.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (122871 => 122872)
--- trunk/LayoutTests/ChangeLog 2012-07-17 20:24:40 UTC (rev 122871)
+++ trunk/LayoutTests/ChangeLog 2012-07-17 20:44:40 UTC (rev 122872)
@@ -1,3 +1,15 @@
+2012-07-17 Florin Malita <[email protected]>
+
+ SVG getBBox does not update bound after path data change
+ https://bugs.webkit.org/show_bug.cgi?id=82629
+
+ Reviewed by Dirk Schulze.
+
+ The bug appears to have been fixed - adding a test for it.
+
+ * svg/custom/path-bbox-update-expected.txt: Added.
+ * svg/custom/path-bbox-update.html: Added.
+
2012-07-17 Tony Chang <[email protected]>
[chromium] Unreviewed gardening. Add baselines after r122861.
Added: trunk/LayoutTests/svg/custom/path-bbox-update-expected.txt (0 => 122872)
--- trunk/LayoutTests/svg/custom/path-bbox-update-expected.txt (rev 0)
+++ trunk/LayoutTests/svg/custom/path-bbox-update-expected.txt 2012-07-17 20:44:40 UTC (rev 122872)
@@ -0,0 +1,2 @@
+PASS: bounding box is (80, 80, 100, 100)
+
Added: trunk/LayoutTests/svg/custom/path-bbox-update.html (0 => 122872)
--- trunk/LayoutTests/svg/custom/path-bbox-update.html (rev 0)
+++ trunk/LayoutTests/svg/custom/path-bbox-update.html 2012-07-17 20:44:40 UTC (rev 122872)
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+ <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=82629 -->
+ <head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ function runTest() {
+ var path = document.getElementById('path');
+ path.setAttribute('d', "M80 80L100 100");
+
+ // The bounding box should be updated.
+ var box = path.getBBox();
+ var pass = (box.x == 80) && (box.y == 80) && (box.width == 20) && (box.height == 20);
+ document.getElementById('output').innerHTML = (pass ? 'PASS' : 'FAIL') + ': bounding box is ('
+ + box.x + ', ' + box.y + ', ' + (box.x + box.width) + ', ' + (box.y + box.height) + ')';
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+ </script>
+ </head>
+ <body>
+ <div id="output"></div>
+ <svg xmlns="http://www.w3.org/2000/svg" _onload_="runTest()">
+ <path id="path" d="M30 30 L50 50" stroke-width="3" stroke="green"></path>
+ </svg>
+ </body>
+</html>
+
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes