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:
parent
1824f67a06
commit
fa94223511
|
@ -95,9 +95,11 @@ function test_handler_this() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerHandler(name, target) {
|
function registerHandler(name, target) {
|
||||||
var b = target.attachEvent("onclick", function() {
|
var b = target.attachEvent("onclick", function(event_arg) {
|
||||||
ok(this === window, "this !== window");
|
ok(this === window, "this !== window");
|
||||||
calls.push(name+"*");
|
calls.push(name+"*");
|
||||||
|
with(todo_wine)
|
||||||
|
ok(event_arg != window.event, "event_arg == window.event");
|
||||||
});
|
});
|
||||||
ok(b, "attachEvent failed");
|
ok(b, "attachEvent failed");
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,3 +51,9 @@ function win_skip(m) {
|
||||||
function reportSuccess() {
|
function reportSuccess() {
|
||||||
external.reportSuccess();
|
external.reportSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var todo_wine = {
|
||||||
|
ok: function(b,m) {
|
||||||
|
return external.todo_wine_ok(b,m);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue