Chromium Code Reviews| 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> |