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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/perf/adding-radio-buttons.html
diff --git a/LayoutTests/perf/adding-radio-buttons.html b/LayoutTests/perf/adding-radio-buttons.html
deleted file mode 100644
index b8f32bf9e04383fc4f4b3de01290cb29955931c7..0000000000000000000000000000000000000000
--- a/LayoutTests/perf/adding-radio-buttons.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../resources/magnitude-perf.js"></script>
-<script>
-var parentForm = null;
-
-// FIXME(nbarth): this is O(n^2)
-// Adding a radio button is O(n), which is what this test is testing,
-// so building a group 1 button at a time is O(n^2)
-// Set innerHTML directly instead
-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 linear in the number of radio buttons.");
-Magnitude.initialExponent = 12;
- // dominated by constant and log term for small n
-Magnitude.numPoints = 3;
-Magnitude.tolerance = 0.30;
-Magnitude.run(setup, test, Magnitude.LINEAR);
-</script>
-</body>
-</html>
« 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