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

Side by Side Diff: third_party/WebKit/PerformanceTests/DOM/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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../resources/runner.js"></script> 2 <script src="../resources/runner.js"></script>
3 <div id="sample"></div> 3 <div id="sample"></div>
4 <script> 4 <script>
5 const kElements = 10000; 5 const kElements = 10000;
6 6
7 const metaElements = (() => { 7 const metaElements = (() => {
8 const result = []; 8 const result = [];
9 for (let count = 0; count < kElements; ++count) 9 for (let count = 0; count < kElements; ++count)
10 result.push('<meta>', '</meta>'); 10 result.push('<meta>', '</meta>');
(...skipping 16 matching lines...) Expand all
27 selection.removeAllRanges(); 27 selection.removeAllRanges();
28 const target = document.getElementById('target'); 28 const target = document.getElementById('target');
29 selection.collapse(target.firstChild, 5); 29 selection.collapse(target.firstChild, 5);
30 selection.extend(target.firstChild, 10); 30 selection.extend(target.firstChild, 10);
31 }, 31 },
32 run: () => { 32 run: () => {
33 selection.modify('extend', 'backward', 'line'); 33 selection.modify('extend', 'backward', 'line');
34 }, 34 },
35 }); 35 });
36 </script> 36 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Editing/move-up-with-hidden-elements.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698