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

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

Issue 2917873003: Ignore download bytes in page load metrics. (Closed)
Patch Set: add test html 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..1fdf3578bcfd59165db1a1a28e88426b4fc0586a
--- /dev/null
+++ b/chrome/test/data/page_load_metrics/download_anchor_click.html
@@ -0,0 +1,13 @@
+<html>
+<head><title>Download Test</title></head>
+<body>
+<a id='dl' href="/download-test1.lib">Click to download!</a>
+<script>
+window.setTimeout(function() {
Charlie Harrison 2017/06/01 17:49:13 Can you explain why we need setTimeout?
Bryan McQuade 2017/06/02 17:38:28 sure, added a comment, thanks!
+ 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