Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: LayoutTests/fast/dom/script-tests/event-handlers.js

Issue 48303003: Handle the onerror content attribute for <body> and <frameset> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « LayoutTests/fast/dom/body-frameset-event-handlers-expected.txt ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698