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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/perf/adding-radio-buttons.html
===================================================================
--- LayoutTests/perf/adding-radio-buttons.html (revision 111481)
+++ LayoutTests/perf/adding-radio-buttons.html (working copy)
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../resources/magnitude-perf.js"></script>
-<script>
-var parentForm = null;
-
-function setup(magnitude) {
- if (parentForm)
- document.body.removeChild(parentForm);
- parentForm = document.createElement('form');
- document.body.appendChild(parentForm);
- for (var i = 0; i < magnitude; ++i) {
- var radio = document.createElement('input');
- radio.type = 'radio';
- radio.name = 'group1';
- radio.checked = true;
- parentForm.appendChild(radio);
- }
- parentForm.offsetLeft;
-}
-
-function test(magnitude) {
- var radio = document.createElement('input');
- radio.type = 'radio';
- radio.name = 'group1';
- radio.checked = true;
- parentForm.appendChild(radio);
- radio.offsetLeft;
- parentForm.removeChild(radio);
-}
-
-Magnitude.description("Tests that adding a radio button to a radio button group is constant in the number of radio buttons.");
-Magnitude.run(setup, test, Magnitude.CONSTANT);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698