Jacek Caban : mshtml/tests: Added body event setters tests.
Alexandre Julliard
julliard at winehq.org
Tue Feb 14 16:24:51 CST 2017
Module: wine
Branch: master
Commit: 8fba2bc6df423104c1a75122126fcd95504c8cac
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8fba2bc6df423104c1a75122126fcd95504c8cac
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Feb 13 21:10:38 2017 +0100
mshtml/tests: Added body event setters tests.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/tests/events.html | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dlls/mshtml/tests/events.html b/dlls/mshtml/tests/events.html
index 64e03f5..8d5fcc3 100644
--- a/dlls/mshtml/tests/events.html
+++ b/dlls/mshtml/tests/events.html
@@ -157,6 +157,18 @@ function test_string_event_handler() {
ok(string_handler_called === false, "string handler called");
}
+function test_body_events() {
+ var f = function() {}
+
+ document.body.onload = f;
+ ok(document.body.onload === f, "body.onload != f");
+ ok(window.onload === f, "window.onload != f");
+
+ document.body.onfocus = f;
+ ok(document.body.onfocus === f, "body.onfocus != f");
+ ok(window.onfocus === f, "window.onfocus != f");
+}
+
window.onload = function() {
try {
ok(inlscr_complete_called, "onreadystatechange not fired");
@@ -178,6 +190,7 @@ window.onload = function() {
test_handler_this();
test_insert_script();
test_string_event_handler();
+ test_body_events();
}catch(e) {
ok(false, "Got an exception: " + e.message);
}
More information about the wine-cvs
mailing list