mshtml/tests: Added script event argument test.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-10-12 14:27:24 +02:00 committed by Alexandre Julliard
parent 1824f67a06
commit fa94223511
2 changed files with 9 additions and 1 deletions

View File

@ -95,9 +95,11 @@ function test_handler_this() {
}
function registerHandler(name, target) {
var b = target.attachEvent("onclick", function() {
var b = target.attachEvent("onclick", function(event_arg) {
ok(this === window, "this !== window");
calls.push(name+"*");
with(todo_wine)
ok(event_arg != window.event, "event_arg == window.event");
});
ok(b, "attachEvent failed");
}

View File

@ -51,3 +51,9 @@ function win_skip(m) {
function reportSuccess() {
external.reportSuccess();
}
var todo_wine = {
ok: function(b,m) {
return external.todo_wine_ok(b,m);
}
};