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

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

Issue 9805002: Revert 105710 - Introduce RadioButtonGroup class to keep track of the group members and required st… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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 <html>
3 <body>
4 <script src="../resources/magnitude-perf.js"></script>
5 <script>
6 var parentForm = null;
7
8 function setup(magnitude) {
9 if (parentForm)
10 document.body.removeChild(parentForm);
11 parentForm = document.createElement('form');
12 document.body.appendChild(parentForm);
13 for (var i = 0; i < magnitude; ++i) {
14 var radio = document.createElement('input');
15 radio.type = 'radio';
16 radio.name = 'group1';
17 radio.checked = true;
18 parentForm.appendChild(radio);
19 }
20 parentForm.offsetLeft;
21 }
22
23 function test(magnitude) {
24 var radio = document.createElement('input');
25 radio.type = 'radio';
26 radio.name = 'group1';
27 radio.checked = true;
28 parentForm.appendChild(radio);
29 radio.offsetLeft;
30 parentForm.removeChild(radio);
31 }
32
33 Magnitude.description("Tests that adding a radio button to a radio button group is constant in the number of radio buttons.");
34 Magnitude.run(setup, test, Magnitude.CONSTANT);
35 </script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698