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

Side by Side Diff: LayoutTests/perf/show-hide-table-rows.html

Issue 51383002: Delete perf tests that are WontFixed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: try again Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <style>
2 .hidden { display: none; }
3 </style>
4 <script src="../resources/magnitude-perf.js"></script>
5 <body>
6 <div></div>
7 <script>
8
9 function setupFunction(magnitude)
10 {
11 var html = '<table>';
12 for (var i = 0; i < magnitude; ++i)
13 html += '<tr><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td ></tr>\n';
14 html += '</table>';
15 document.querySelector('div').innerHTML = html;
16 }
17
18 function forEachRow(what)
19 {
20 Array.prototype.forEach.call(document.querySelectorAll("tr"), what);
21 }
22
23 function test(magnitude)
24 {
25 forEachRow(function(tr) {
26 tr.className = 'hidden';
27 });
28 document.body.offsetWidth;
29 forEachRow(function(tr) {
30 tr.className = '';
31 });
32 document.body.offsetWidth;
33 }
34
35 Magnitude.description("Tests that hiding/showing of table rows is linear.");
36 Magnitude.initialExponent = 7;
37 Magnitude.numPoints = 6; // slow in absolute terms, so gets Slow around here
38 Magnitude.run(setupFunction, test, Magnitude.LINEAR);
39 document.querySelector('div').textContent = '';
40 </script>
41 </body>
OLDNEW
« no previous file with comments | « LayoutTests/perf/object-keys-expected.txt ('k') | LayoutTests/perf/show-hide-table-rows-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698