Jacek Caban : mshtml: Added test of calling IDispatchEx properties.
Alexandre Julliard
julliard at winehq.org
Fri Jul 13 14:11:19 CDT 2012
Module: wine
Branch: master
Commit: 4f1a71ab0db92826bc3ffbdb6b62a018efef1868
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f1a71ab0db92826bc3ffbdb6b62a018efef1868
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Jul 13 14:46:55 2012 +0200
mshtml: Added test of calling IDispatchEx properties.
---
dlls/mshtml/tests/jstest.html | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html
index e61ee85..99eca1a 100644
--- a/dlls/mshtml/tests/jstest.html
+++ b/dlls/mshtml/tests/jstest.html
@@ -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);
More information about the wine-cvs
mailing list