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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/tooltip-close.html

Issue 1454363002: Close tooltip for |title| attribute on any keyboard event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/input/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/html/tooltip-close.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/tooltip-close.html b/third_party/WebKit/LayoutTests/fast/html/tooltip-close.html
new file mode 100644
index 0000000000000000000000000000000000000000..c9485779e940dc5ec1b7a38b17b1a5ca76df0647
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/html/tooltip-close.html
@@ -0,0 +1,16 @@
+<!DOCTYPE>
yosin_UTC9 2015/11/19 07:31:44 Q: Is it OK to use "<!DOCTYPE>" instead of "<!DOCT
tkent 2015/11/19 07:36:39 No, it's my bad :)
+<body>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div id=log></div>
+<div id=start title=tooltip>foo</div>
+<script>
+var div = document.querySelector('#start');
+test(function() {
+ eventSender.mouseMoveTo(div.offsetLeft, div.offsetTop + div.offsetHeight / 2);
+ assert_equals(testRunner.tooltipText, 'tooltip');
+ eventSender.keyDown('a');
+ assert_equals(testRunner.tooltipText, '');
+}, 'Key events should close tooltips.');
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698