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

Unified Diff: LayoutTests/perf/class-list-remove.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, 2 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
« no previous file with comments | « LayoutTests/perf/array-reverse-expected.txt ('k') | LayoutTests/perf/class-list-remove-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/perf/class-list-remove.html
diff --git a/LayoutTests/perf/class-list-remove.html b/LayoutTests/perf/class-list-remove.html
deleted file mode 100644
index e40ffbaa6f45cf6dadc447c1bd0273cf55af12b2..0000000000000000000000000000000000000000
--- a/LayoutTests/perf/class-list-remove.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<script src="../resources/magnitude-perf.js"></script>
-<script>
-
-var element, className, classToRemove;
-
-// Test 1 tests that remove is linear when there are N class names.
-
-function setupFunction1(magnitude)
-{
- element = document.createElement('div');
- classToRemove = 'b';
- className = Array(magnitude).join('a ') + classToRemove;
-}
-
-// Test 2 tests that remove is linear when the length of the class name is N.
-
-function setupFunction2(magnitude)
-{
- element = document.createElement('div');
- classToRemove = Array(magnitude + 1).join('a');
- className = classToRemove;
-}
-
-function test(magnitude)
-{
- element.className = className;
- element.classList.remove(classToRemove);
-}
-
-Magnitude.description('Tests that classList remove is linear, ' +
- 'both in number of class names ' +
- 'and in length of class name.');
-Magnitude.numTrials = 5;
-Magnitude.successThreshold = 0.40; // 2 out of 5
-Magnitude.tolerance = 0.35;
-Magnitude.trim = 1;
-
-Magnitude.initialExponent = 9;
-Magnitude.numPoints = 5;
-Magnitude.run(setupFunction1, test, Magnitude.LINEAR);
-Magnitude.initialExponent = 12;
-Magnitude.numPoints = 5;
-Magnitude.run(setupFunction2, test, Magnitude.LINEAR);
-
-</script>
-</body>
« no previous file with comments | « LayoutTests/perf/array-reverse-expected.txt ('k') | LayoutTests/perf/class-list-remove-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698