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

Side by Side Diff: LayoutTests/perf/adding-radio-buttons.html

Issue 18951003: Skip or delete a bunch of timing out tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete a few more tests Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/magnitude-perf.js"></script>
5 <script>
6 var parentForm = null;
7
8 // FIXME(nbarth): this is O(n^2)
9 // Adding a radio button is O(n), which is what this test is testing,
10 // so building a group 1 button at a time is O(n^2)
11 // Set innerHTML directly instead
12 function setup(magnitude) {
13 if (parentForm)
14 document.body.removeChild(parentForm);
15 parentForm = document.createElement('form');
16 document.body.appendChild(parentForm);
17 for (var i = 0; i < magnitude; ++i) {
18 var radio = document.createElement('input');
19 radio.type = 'radio';
20 radio.name = 'group1';
21 radio.checked = true;
22 parentForm.appendChild(radio);
23 }
24 parentForm.offsetLeft;
25 }
26
27 function test(magnitude) {
28 var radio = document.createElement('input');
29 radio.type = 'radio';
30 radio.name = 'group1';
31 radio.checked = true;
32 parentForm.appendChild(radio);
33 radio.offsetLeft;
34 parentForm.removeChild(radio);
35 }
36
37 Magnitude.description("Tests that adding a radio button to a radio button group is linear in the number of radio buttons.");
38 Magnitude.initialExponent = 12;
39 // dominated by constant and log term for small n
40 Magnitude.numPoints = 3;
41 Magnitude.tolerance = 0.30;
42 Magnitude.run(setup, test, Magnitude.LINEAR);
43 </script>
44 </body>
45 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/context-menu-actions-expected.txt ('k') | LayoutTests/perf/adding-radio-buttons-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698