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

Side by Side Diff: third_party/WebKit/LayoutTests/html/text-level-semantics/a-click.html

Issue 2715353003: Allow clicks > 1 to navigate. (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <body/> 2 <body/>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <a id="target" href="#abc" title="This should appear as a tooltip">Hello.</a> 5 <a id="target" href="#abc" title="This should appear as a tooltip">Hello.</a>
6 <script> 6 <script>
7 function doubleClickNoNavigation() { 7 function doubleClickNavigation() {
8 document.getElementById('target').dispatchEvent(new MouseEvent("click", {detai l: 2})); 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"); 9 assert_equals(window.location.hash, "#abc", "Click will navigate on double cli ck");
10 } 10 }
11 11
12 test(doubleClickNoNavigation, "Double Click No Navigation"); 12 test(doubleClickNavigation, "Double Click Navigation");
13 </script> 13 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698