Index: LayoutTests/fast/dom/script-tests/event-attribute-availability.js |
diff --git a/LayoutTests/fast/dom/script-tests/event-attribute-availability.js b/LayoutTests/fast/dom/script-tests/event-attribute-availability.js |
index 19fc825692f2e5eacec79ff009f8dd03ead12c7f..5cca67c8dc25702512d4ceeff77a95c2e7739cd6 100644 |
--- a/LayoutTests/fast/dom/script-tests/event-attribute-availability.js |
+++ b/LayoutTests/fast/dom/script-tests/event-attribute-availability.js |
@@ -25,6 +25,10 @@ var bodyAndFrameSetProperties = [ |
// "onafterprint", "onbeforeprint", "onhashchange", "onpopstate", "onredo", "onundo" |
]; |
+var svgAnimationElementProperties = [ |
+ "onbegin", "onend", "onrepeat" |
+]; |
+ |
debug("Test Element"); |
var element = document.createElement("div"); |
@@ -77,9 +81,24 @@ var pathelement = document.createElementNS("http://www.w3.org/2000/svg", "path") |
for (var i = 0; i < elementAndDocumentProperties.length; ++i) { |
shouldBeTrue("'" + elementAndDocumentProperties[i] + "' in pathelement"); |
} |
+for (var i = 0; i < svgAnimationElementProperties.length; ++i) { |
+ shouldBeFalse("'" + svgAnimationElementProperties[i] + "' in pathelement"); |
+} |
debug("\nTest SVGSVGElement"); |
-var svgelement = document.implementation.createDocument("http://www.w3.org/2000/svg", "svg").documentElement; |
+var svgelement = document.implementation.createDocument("http://www.w3.org/2000/svg", "svg", null).documentElement; |
for (var i = 0; i < elementAndDocumentProperties.length; ++i) { |
shouldBeTrue("'" + elementAndDocumentProperties[i] + "' in svgelement"); |
} |
+for (var i = 0; i < svgAnimationElementProperties.length; ++i) { |
+ shouldBeFalse("'" + svgAnimationElementProperties[i] + "' in svgelement"); |
+} |
+ |
+debug("\nTest SVGAnimationElement"); |
+var animateelement = document.createElementNS("http://www.w3.org/2000/svg", "animate"); |
+for (var i = 0; i < elementAndDocumentProperties.length; ++i) { |
+ shouldBeTrue("'" + elementAndDocumentProperties[i] + "' in animateelement"); |
+} |
+for (var i = 0; i < svgAnimationElementProperties.length; ++i) { |
+ shouldBeTrue("'" + svgAnimationElementProperties[i] + "' in animateelement"); |
+} |