[CSS Shapes] Add initial performance tests for polygon shape
authorzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Feb 2014 00:19:58 +0000 (00:19 +0000)
committerzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Feb 2014 00:19:58 +0000 (00:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=128554

Reviewed by Ryosuke Niwa.

This patch adds performance testing for simple polygon shape-outside.
The Shapes performance tests directory is skipped by default.

* Layout/Shapes/ShapeOutsideSimplePolygon.html: Added.

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

PerformanceTests/ChangeLog
PerformanceTests/Layout/Shapes/ShapeOutsideSimplePolygon.html [new file with mode: 0644]

index 289df84..5a87740 100644 (file)
@@ -1,3 +1,15 @@
+2014-02-10  Zoltan Horvath  <zoltan@webkit.org>
+
+        [CSS Shapes] Add initial performance tests for polygon shape 
+        https://bugs.webkit.org/show_bug.cgi?id=128554
+
+        Reviewed by Ryosuke Niwa.
+
+        This patch adds performance testing for simple polygon shape-outside.
+        The Shapes performance tests directory is skipped by default.
+
+        * Layout/Shapes/ShapeOutsideSimplePolygon.html: Added.
+
 2014-02-07  Zoltan Horvath  <zoltan@webkit.org>
 
         [CSS Shapes] Add initial performance tests for inset shape
diff --git a/PerformanceTests/Layout/Shapes/ShapeOutsideSimplePolygon.html b/PerformanceTests/Layout/Shapes/ShapeOutsideSimplePolygon.html
new file mode 100644 (file)
index 0000000..3e53f67
--- /dev/null
@@ -0,0 +1,15 @@
+<!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 shape = "polygon(0 0, 200px 100px, 0px 200px)";
+            PerfTestRunner.measureTime(createShapeOutsideTest("200px", "200px", shape, 1000));
+        </script>
+    </body>
+</html>