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

Unified Diff: third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html

Issue 2899793003: Move PerformanceTests/Editing/move-up-with-hidden-elements.html to DOM/ (Closed)
Patch Set: Created 3 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 | « third_party/WebKit/PerformanceTests/DOM/move-up-with-hidden-elements.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html
diff --git a/third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html b/third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html
deleted file mode 100644
index 17891155ac52d6ad4df2e0cefb5ce7da12b1a7b8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<!doctype html>
-<script src="../resources/runner.js"></script>
-<div id="sample"></div>
-<script>
-const kElements = 10000;
-
-const metaElements = (() => {
- const result = [];
- for (let count = 0; count < kElements; ++count)
- result.push('<meta>', '</meta>');
- return result;
-})();
-const sample = document.getElementById('sample');
-sample.innerHTML = [
- '<h1 id="before">first line of renderered text</h1>',
- '<div hidden>', ...metaElements, '</div>',
- '<h1 id="target">second line of renderered text</h1>',
- '<div hidden>', ...metaElements, '</div>',
- '<h1 id="after">third line of renderered text</h1>',
-].join('');
-
-const selection = window.getSelection();
-
-PerfTestRunner.measureTime({
- description: 'Measures performance of move-up through non-renderered elements',
- setup: () => {
- selection.removeAllRanges();
- const target = document.getElementById('target');
- selection.collapse(target.firstChild, 5);
- selection.extend(target.firstChild, 10);
- },
- run: () => {
- selection.modify('extend', 'backward', 'line');
- },
-});
-</script>
« no previous file with comments | « third_party/WebKit/PerformanceTests/DOM/move-up-with-hidden-elements.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698