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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/DOM/inner_html_with_selection.html
diff --git a/third_party/WebKit/PerformanceTests/DOM/inner_html_with_selection.html b/third_party/WebKit/PerformanceTests/DOM/inner_html_with_selection.html
new file mode 100644
index 0000000000000000000000000000000000000000..b8cf22ca1646d1e54b038fbbde8faa017827b1d1
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/DOM/inner_html_with_selection.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<script src="../resources/runner.js"></script>
+<div id="target">target</div>
+<div id="sample" style="display: none"></div>
+<script>
+var selection = window.getSelection();
+selection.selectAllChildren(document.getElementById('target'));
+var sample = document.getElementById('sample');
+var sampleHTML = new Array(1000).join('<br>');
+
+PerfTestRunner.measureTime({
+ description: 'Measures performance of innerHTML setter with selection.',
+
+ run: function() {
+ sample.innerHTML = sampleHTML;
+ sample.innerHTML = '';
+ },
+});
+</script>
« 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