[CSS Shapes] Add performance tests for SVG shape with shape-margin
authorzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Mar 2014 22:32:15 +0000 (22:32 +0000)
committerzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Mar 2014 22:32:15 +0000 (22:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=129930

Reviewed by Ryosuke Niwa.

The test is skipped by default.

* Layout/Shapes/ShapeOutsideSVGWithMargin.html: Added.
* Layout/Shapes/resources/shape.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165408 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/Layout/Shapes/ShapeOutsideSVGWithMargin.html [new file with mode: 0644]
PerformanceTests/Layout/Shapes/resources/shape.svg [new file with mode: 0644]

index 59c9ff6..0b18039 100644 (file)
@@ -1,3 +1,15 @@
+2014-03-10  Zoltan Horvath  <zoltan@webkit.org>
+
+        [CSS Shapes] Add performance tests for SVG shape with shape-margin
+        https://bugs.webkit.org/show_bug.cgi?id=129930
+
+        Reviewed by Ryosuke Niwa.
+
+        The test is skipped by default.
+
+        * Layout/Shapes/ShapeOutsideSVGWithMargin.html: Added.
+        * Layout/Shapes/resources/shape.svg: Added.
+
 2014-02-19  Zoltan Horvath  <zoltan@webkit.org>
 
         [CSS Shapes] Add performance test for stacked floats with shape-outsides
diff --git a/PerformanceTests/Layout/Shapes/ShapeOutsideSVGWithMargin.html b/PerformanceTests/Layout/Shapes/ShapeOutsideSVGWithMargin.html
new file mode 100644 (file)
index 0000000..a19d4b9
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <link rel="stylesheet" href="resources/shapes.css" type="text/css"></link>
+        <script src="../../resources/runner.js"></script>
+        <script src="resources/shapes.js"></script>
+    </head>
+    <body>
+        <pre id="log"></pre>
+        <script>
+            var properties = {
+                width: "200px",
+                height: "200px",
+                webkitShapeOutside: "url(resources/shape.svg)",
+                webkitShapeMargin: "5px"
+            };
+            PerfTestRunner.measureTime(createShapeOutsideTest(properties, 1000));
+        </script>
+    </body>
+</html>
diff --git a/PerformanceTests/Layout/Shapes/resources/shape.svg b/PerformanceTests/Layout/Shapes/resources/shape.svg
new file mode 100644 (file)
index 0000000..5577d5f
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->\r
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\r
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\r
+        width="200px" height="200px" viewBox="0 0 200 200" enable-background="new 0 0 200 200" xml:space="preserve">\r
+<path fill="#BE5C27" stroke="#000000" stroke-miterlimit="10" d="M177,172H20.5v-25h107l-47-32l114,8.5\r
+       c-26.808,0-48.5-24.376-48.5-54.5c18.517,0,33.5-6.933,33.5-15.5c-12.713,0-23-7.156-23-16L183,28l-83-15.5l-93-3V196L177,172z"/>\r
+</svg>\r