| Index: LayoutTests/fast/dom/script-tests/event-handlers.js
|
| diff --git a/LayoutTests/fast/dom/script-tests/event-handlers.js b/LayoutTests/fast/dom/script-tests/event-handlers.js
|
| index 22af617ace6fef8796ee4a2dee84d9f38a0e37d5..d3d724999ab70da9b3e2d0b7a446a5d61c7084b7 100644
|
| --- a/LayoutTests/fast/dom/script-tests/event-handlers.js
|
| +++ b/LayoutTests/fast/dom/script-tests/event-handlers.js
|
| @@ -58,6 +58,19 @@ function testReflect(interface, attribute) {
|
| element.removeAttribute(attribute);
|
| }, "Reflect " + interface + "." + attribute);
|
| }
|
| +function testForwardToWindow(interface, attribute) {
|
| + test(function() {
|
| + var element = getObject(interface);
|
| + window[attribute] = null;
|
| + element.setAttribute(attribute, "return");
|
| + assert_equals(typeof window[attribute], "function", "Convert to function");
|
| + assert_equals(window[attribute], element[attribute], "Forward content attribute");
|
| + function nop() {}
|
| + element[attribute] = nop;
|
| + assert_equals(window[attribute], nop, "Forward IDL attribute");
|
| + window[attribute] = null;
|
| + }, "Forward " + interface + "." + attribute + " to Window");
|
| +}
|
| // Object.propertyIsEnumerable cannot be used because it doesn't
|
| // work with properties inherited through the prototype chain.
|
| function getEnumerable(interface) {
|
|
|