Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding svginline test. #13

Closed
wants to merge 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. @mattwkelly

    Adding svginline test.

    mattwkelly authored
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 0 deletions.
  1. +4 −0 tests/svginline/config.yml
  2. +13 −0 tests/svginline/test.js
View
4 tests/svginline/config.yml
@@ -0,0 +1,4 @@
+---
+ r: 2
+ spec: "http://www.w3.org/TR/SVG/"
+ title: "SVG Inline"
View
13 tests/svginline/test.js
@@ -0,0 +1,13 @@
+test("SVG Element (Inline)", function() {
+ var container = document.createElement("div"),
+ svg;
+
+ container.innerHTML = "<svg>";
+
+ svg = container.children[ 0 ];
+
+ assert( !!svg, "svg inline" );
+ assert( svg.nodeName === "svg", "svg inline nodeName is correct" );
+ assert( !!svg.getCurrentTime, "svg Inline getCurrentTime" );
+ assert( svg.ownerSVGElement === null, "svg Inline ownerSVGElement supported" );
+});
Something went wrong with that request. Please try again.