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

Unified 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, 10 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 | « no previous file | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/html/text-level-semantics/a-click.html
diff --git a/third_party/WebKit/LayoutTests/html/text-level-semantics/a-click.html b/third_party/WebKit/LayoutTests/html/text-level-semantics/a-click.html
index e829228332eb0e3e365ee8127cc331db15363190..888ec267424e2a5c8815def23ae84466737e28dd 100644
--- a/third_party/WebKit/LayoutTests/html/text-level-semantics/a-click.html
+++ b/third_party/WebKit/LayoutTests/html/text-level-semantics/a-click.html
@@ -4,10 +4,10 @@
<script src="../../resources/testharnessreport.js"></script>
<a id="target" href="#abc" title="This should appear as a tooltip">Hello.</a>
<script>
-function doubleClickNoNavigation() {
+function doubleClickNavigation() {
document.getElementById('target').dispatchEvent(new MouseEvent("click", {detail: 2}));
- assert_equals(window.location.hash, "", "There should be no navigation on double click");
+ assert_equals(window.location.hash, "#abc", "Click will navigate on double click");
}
-test(doubleClickNoNavigation, "Double Click No Navigation");
+test(doubleClickNavigation, "Double Click Navigation");
</script>
« 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