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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../../resources/runner.js"></script>
4 <script>
5 var test800 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth800.html") ;
6 var test600 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth600.html") ;
7 var test400 = PerfTestRunner.loadFile("./resources/MultipleShapesWidth400.html") ;
8
9 PerfTestRunner.measureTime({run: function() {
10 var iframe = document.createElement("iframe");
11
12 iframe.style.height = '600px';
13 document.body.appendChild(iframe);
14 iframe.contentDocument.open();
15 iframe.contentDocument.write(test800);
16 iframe.contentDocument.close();
17 iframe.style.width = '800px';
18 iframe.offsetTop;
19 document.body.removeChild(iframe);
20
21 var iframe2 = iframe.cloneNode();
22 iframe2.style.height = '600px';
23 document.body.appendChild(iframe2);
24 iframe2.contentDocument.open();
25 iframe2.contentDocument.write(test600);
26 iframe2.contentDocument.close();
27 iframe2.style.width = '600px';
28 iframe2.offsetTop;
29 document.body.removeChild(iframe2);
30
31 var iframe3 = iframe.cloneNode();
32 iframe3.style.height = '600px';
33 document.body.appendChild(iframe3);
34 iframe3.contentDocument.open();
35 iframe3.contentDocument.write(test400);
36 iframe3.contentDocument.close();
37 iframe3.style.width = '400px';
38 iframe3.offsetTop;
39 document.body.removeChild(iframe3);
40
41 }});
42 </script>
43 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698