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

Unified Diff: chrome/test/data/page_load_metrics/download_anchor_click.html

Issue 2917873003: Ignore download bytes in page load metrics. (Closed)
Patch Set: address comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/page_load_metrics/download_anchor_click.html
diff --git a/chrome/test/data/page_load_metrics/download_anchor_click.html b/chrome/test/data/page_load_metrics/download_anchor_click.html
new file mode 100644
index 0000000000000000000000000000000000000000..be924eb7bc21c90dcceedf28770300e5937686d6
--- /dev/null
+++ b/chrome/test/data/page_load_metrics/download_anchor_click.html
@@ -0,0 +1,16 @@
+<html>
+<head><title>Download Test</title></head>
+<body>
+<a id='dl' href="/download-test1.lib">Click to download!</a>
+<script>
+// Dispatch a click event async, rather than synchronously during parsing,
+// since this is consistent with how real user input events are dispatched
+// and processed.
+window.setTimeout(function() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEvent('click', true, true);
+ document.getElementById('dl').dispatchEvent(evt);
+}, 0);
+</script>
+</body>
+</html>
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_metrics_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698