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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/html/a-click.html

Issue 2011653003: Only allow link clicks on single click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test and adjust comment Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <body/>
tkent 2016/05/25 22:57:45 nit: Closing body tag here looks weird :)
esprehn 2016/05/26 05:40:09 Dave: Can you fix this? the / doesn't do anything.
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <a id="target" href="#abc" title="This should appear as a tooltip">Hello.</a>
6 <script>
7 function doubleClickNoNavigation() {
8 document.getElementById('target').dispatchEvent(new MouseEvent("click", {detai l: 2}));
9 assert_equals(window.location.hash, "", "There should be no navigation on doub le click");
10 }
11
12 test(doubleClickNoNavigation, "Double Click No Navigation");
13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698