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

Side by Side Diff: third_party/WebKit/PerformanceTests/DOM/inner_html_with_selection.html

Issue 2221783003: Introduce FrameSelection::nodeChildrenWillBeRemoved() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-10T10:37:48 Created 4 years, 4 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
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../resources/runner.js"></script>
3 <div id="target">target</div>
4 <div id="sample" style="display: none"></div>
5 <script>
6 var selection = window.getSelection();
7 selection.selectAllChildren(document.getElementById('target'));
8 var sample = document.getElementById('sample');
9 var sampleHTML = new Array(1000).join('<br>');
10
11 PerfTestRunner.measureTime({
12 description: 'Measures performance of innerHTML setter with selection.',
13
14 run: function() {
15 sample.innerHTML = sampleHTML;
16 sample.innerHTML = '';
17 },
18 });
19 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698