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