[CSS Shapes] Add performance test for raster shape
authorzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Feb 2014 23:28:50 +0000 (23:28 +0000)
committerzoltan@webkit.org <zoltan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Feb 2014 23:28:50 +0000 (23:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=128746

Reviewed by Ryosuke Niwa.

This patch adds performance testing for image valued shape-outside.
The test is skipped by default for now.

* Layout/Shapes/ShapeOutsideRaster.html: Added.
* Layout/Shapes/resources/shape.gif: Added.

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

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

index 5a87740..7371f82 100644 (file)
@@ -1,3 +1,16 @@
+2014-02-13  Zoltan Horvath  <zoltan@webkit.org>
+
+        [CSS Shapes] Add performance test for raster shape
+        https://bugs.webkit.org/show_bug.cgi?id=128746
+
+        Reviewed by Ryosuke Niwa.
+
+        This patch adds performance testing for image valued shape-outside.
+        The test is skipped by default for now.
+
+        * Layout/Shapes/ShapeOutsideRaster.html: Added.
+        * Layout/Shapes/resources/shape.gif: Added.
+
 2014-02-10  Zoltan Horvath  <zoltan@webkit.org>
 
         [CSS Shapes] Add initial performance tests for polygon shape 
diff --git a/PerformanceTests/Layout/Shapes/ShapeOutsideRaster.html b/PerformanceTests/Layout/Shapes/ShapeOutsideRaster.html
new file mode 100644 (file)
index 0000000..383daa8
--- /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 = "url(resources/shape.gif)";
+            PerfTestRunner.measureTime(createShapeOutsideTest("200px", "200px", shape, 1000));
+        </script>
+    </body>
+</html>
diff --git a/PerformanceTests/Layout/Shapes/resources/shape.gif b/PerformanceTests/Layout/Shapes/resources/shape.gif
new file mode 100644 (file)
index 0000000..5ed0524
Binary files /dev/null and b/PerformanceTests/Layout/Shapes/resources/shape.gif differ