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()"> |