mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
mshtml: Added test of calling IDispatchEx properties.
This commit is contained in:
parent
61ded412a2
commit
4f1a71ab0d
1 changed files with 15 additions and 0 deletions
|
@ -91,6 +91,20 @@ function test_clone_node() {
|
|||
ok(cloned.style.filter === "alpha(opacity=50)", "cloned.style.filter = " + cloned.style.filter);
|
||||
}
|
||||
|
||||
function test_getter_call() {
|
||||
document.body.innerHTML = '<div id="divid"></div>';
|
||||
|
||||
var e = document.getElementById("divid");
|
||||
|
||||
e.myfunc = function(x) { this.myfinc_called = x; };
|
||||
e.myfunc("test");
|
||||
ok(e.myfinc_called === "test", "e.myfinc_called = " + e.myfinc_called);
|
||||
|
||||
e.onmousedown = function(x) { this.onmousedown_called = x; };
|
||||
e.onmousedown("test");
|
||||
ok(e.onmousedown_called === "test", "e.onmousedown_called = " + e.onmousedown_called);
|
||||
}
|
||||
|
||||
var globalVar = false;
|
||||
|
||||
function runTest() {
|
||||
|
@ -106,6 +120,7 @@ function runTest() {
|
|||
test_createDocumentFragment();
|
||||
test_document_name_as_index();
|
||||
test_remove_style_attribute();
|
||||
test_getter_call();
|
||||
|
||||
var r = window.execScript("globalVar = true;");
|
||||
ok(r === undefined, "execScript returned " + r);
|
||||
|
|
Loading…
Reference in a new issue