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

Unified Diff: LayoutTests/fast/dom/global-event-handlers.html

Issue 26599003: Enable the SVG GlobalEventHandlers test (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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/global-event-handlers-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/global-event-handlers.html
diff --git a/LayoutTests/fast/dom/global-event-handlers.html b/LayoutTests/fast/dom/global-event-handlers.html
index 117eb7338d9f6fb2fe297d7780c1ae8bf5ce72a2..1bba6280ad86b92318ad229c990864381f4b3bc5 100644
--- a/LayoutTests/fast/dom/global-event-handlers.html
+++ b/LayoutTests/fast/dom/global-event-handlers.html
@@ -78,7 +78,7 @@ function getObject(interface) {
assert_true(e instanceof HTMLElement);
return e;
case "SVGElement":
- var e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
+ var e = document.createElementNS("http://www.w3.org/2000/svg", "rect");
assert_true(e instanceof SVGElement);
return e;
case "Document":
@@ -102,7 +102,7 @@ function testSet(interface, attribute) {
}, "Set " + interface + "." + attribute);
}
function testReflect(interface, attribute) {
- test(function() {
+ test(function() {
var element = getObject(interface);
assert_equals(element.getAttribute(attribute), null, "Initially null");
element.setAttribute(attribute, "return");
@@ -136,6 +136,9 @@ attributes.forEach(function(attribute) {
testSet("HTMLElement", attribute);
testEnumerate("HTMLElement", attribute);
testReflect("HTMLElement", attribute);
+ testSet("SVGElement", attribute);
+ testEnumerate("SVGElement", attribute);
+ testReflect("SVGElement", attribute);
testSet("Document", attribute);
testEnumerate("Document", attribute);
testSet("Window", attribute);
« no previous file with comments | « no previous file | LayoutTests/fast/dom/global-event-handlers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698