Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/html/a-click.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/html/a-click.html b/third_party/WebKit/LayoutTests/fast/html/a-click.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e829228332eb0e3e365ee8127cc331db15363190 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/html/a-click.html |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE HTML> |
| +<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.
|
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<a id="target" href="#abc" title="This should appear as a tooltip">Hello.</a> |
| +<script> |
| +function doubleClickNoNavigation() { |
| + document.getElementById('target').dispatchEvent(new MouseEvent("click", {detail: 2})); |
| + assert_equals(window.location.hash, "", "There should be no navigation on double click"); |
| +} |
| + |
| +test(doubleClickNoNavigation, "Double Click No Navigation"); |
| +</script> |