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

Unified Diff: LayoutTests/perf/accessibility-title-ui-element.html

Issue 1149253002: Remove LayoutTests/perf and associated references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/TestExpectations ('k') | LayoutTests/perf/accessibility-title-ui-element-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/perf/accessibility-title-ui-element.html
diff --git a/LayoutTests/perf/accessibility-title-ui-element.html b/LayoutTests/perf/accessibility-title-ui-element.html
deleted file mode 100644
index 87af52f609015613082d4285488115e700cf42ac..0000000000000000000000000000000000000000
--- a/LayoutTests/perf/accessibility-title-ui-element.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../resources/magnitude-perf.js"></script>
-<script>
-
-var parentContainer;
-var axControl;
-
-function endsWith(str, suffix) {
- return str.substr(str.length - suffix.length) == suffix;
-}
-
-function setup(magnitude) {
- if (parentContainer)
- document.body.removeChild(parentContainer);
- parentContainer = document.createElement('div');
- document.body.appendChild(parentContainer);
-
- var junkContainer = document.createElement('div');
- parentContainer.appendChild(junkContainer);
-
- var label = document.createElement('label');
- label.setAttribute('for', 'control');
- label.innerText = 'Label';
- parentContainer.appendChild(label);
-
- var control = document.createElement('input');
- control.type = 'text';
- control.id = 'control';
- parentContainer.appendChild(control);
-
- parentContainer.offsetLeft;
- axControl = accessibilityController.accessibleElementById('control');
-
- for (var i = 0; i < 10 * magnitude; ++i) {
- var div = document.createElement('div');
- div.innerHTML = "<p></p><p></p><p></p><p></p><p></p>";
- junkContainer.appendChild(div);
- }
- parentContainer.offsetLeft;
-}
-
-function test(magnitude) {
- for (var i = 0; i < 100; i++) {
- axControl.titleUIElement();
- }
-}
-
-Magnitude.description("Tests that titleUIElement on an accessibility element runs in amortized constant time.");
-Magnitude.numTrials = 5;
-Magnitude.successThreshold = 0.40; // 2 out of 5
-Magnitude.tolerance = 0.40;
-Magnitude.trim = 2;
-Magnitude.run(setup, test, Magnitude.CONSTANT);
-</script>
-</body>
-</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/perf/accessibility-title-ui-element-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698