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

Unified Diff: chrome/test/data/mouseleave.html

Issue 891213002: Add a test for the mouseleave event on window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/mouseleave.html
diff --git a/chrome/test/data/mouseleave.html b/chrome/test/data/mouseleave.html
index 214e1a274148e3b8f627e4968edf67ede8d24fac..ac331fd96f7420e59832cf4f7ed1628eb9c1d0ad 100644
--- a/chrome/test/data/mouseleave.html
+++ b/chrome/test/data/mouseleave.html
@@ -18,6 +18,7 @@
</style>
<script>
var state = '';
+ var hasLeave = false;
function load() {
state = 'initial';
document.getElementById("mystatus").innerHTML = state;
@@ -29,10 +30,16 @@
document.title = "entered";
}
function leave() {
+ hasLeave = true;
state += ',left';
document.getElementById("mystatus").innerHTML = state;
document.title = "left";
}
+ function done() {
+ state += ',done';
+ document.getElementById("mystatus").innerHTML = state;
+ document.title = hasLeave ? "with mouseleave" : "without mouseleave";
+ }
</script>
</head>
<body onload="load()">
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu_browsertest_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698