| 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>
|
|
|