Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: PerformanceTests/Layout/Shapes/MultipleShapes.html

Issue 231943002: [CSS Shapes] Add regions like performance test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename to MultipleShapes Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: PerformanceTests/Layout/Shapes/MultipleShapes.html
diff --git a/PerformanceTests/Layout/Shapes/MultipleShapes.html b/PerformanceTests/Layout/Shapes/MultipleShapes.html
new file mode 100644
index 0000000000000000000000000000000000000000..c61d9c69402bbca5c0cfd39d6512632a62b1765d
--- /dev/null
+++ b/PerformanceTests/Layout/Shapes/MultipleShapes.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<body>
+<script src="../../resources/runner.js"></script>
+<script>
+var test800 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth800.html");
+var test600 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth600.html");
+var test400 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth400.html");
+
+PerfTestRunner.measureTime({run: function() {
+ var iframe = document.createElement("iframe");
+
+ iframe.style.height = '600px';
+ document.body.appendChild(iframe);
+ iframe.contentDocument.open();
+ iframe.contentDocument.write(test800);
+ iframe.contentDocument.close();
+ iframe.style.width = '800px';
+ iframe.offsetTop;
+ document.body.removeChild(iframe);
+
+ var iframe2 = iframe.cloneNode();
+ iframe2.style.height = '600px';
+ document.body.appendChild(iframe2);
+ iframe2.contentDocument.open();
+ iframe2.contentDocument.write(test600);
+ iframe2.contentDocument.close();
+ iframe2.style.width = '600px';
+ iframe2.offsetTop;
+ document.body.removeChild(iframe2);
+
+ var iframe3 = iframe.cloneNode();
+ iframe3.style.height = '600px';
+ document.body.appendChild(iframe3);
+ iframe3.contentDocument.open();
+ iframe3.contentDocument.write(test400);
+ iframe3.contentDocument.close();
+ iframe3.style.width = '400px';
+ iframe3.offsetTop;
+ document.body.removeChild(iframe3);
+
+}});
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698