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

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

Issue 201673003: [SVG2] Add onbegin, onend and onrepeat EventHandlers on SVGAnimationElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fs review Created 6 years, 9 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-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");
+}
« no previous file with comments | « LayoutTests/fast/dom/event-attribute-availability-expected.txt ('k') | LayoutTests/fast/svg/animation-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698