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

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

Issue 2734823006: Add performance mousemove (Closed)
Patch Set: update Created 3 years, 9 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 | « no previous file | third_party/WebKit/PerformanceTests/Skipped » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Editing/mouse-move-with-hidden-elements.html
diff --git a/third_party/WebKit/PerformanceTests/Editing/mouse-move-with-hidden-elements.html b/third_party/WebKit/PerformanceTests/Editing/mouse-move-with-hidden-elements.html
new file mode 100644
index 0000000000000000000000000000000000000000..12183a40547657b8db39f1263814a9011e603a67
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Editing/mouse-move-with-hidden-elements.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<script src="../resources/runner.js"></script>
+
+<div id="div" hidden></div>
+<p id="container" contenteditable>foo</p>
+
+<script>
+const kElements = 20000;
+div.innerHTML = '<div>test</div>'.repeat(kElements);
+container.focus();
+container.hidden = true;
+
+var div2 = document.createElement('div');
+PerfTestRunner.measureTime({
+ description: `Measures performance of WebViewImpl::handleInputEvent when selection null and has ${kElements} hidden elements`,
+ setup: () => {
+ eventSender.mouseMoveTo(0, 0);
+ document.body.appendChild(div2);
+ },
+ run: () => {
+ eventSender.mouseMoveTo(100, 100);
+ },
+ done: () => {
+ document.body.removeChild(div2);
+ }
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Skipped » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698