Index: third_party/WebKit/LayoutTests/imported/wpt/svg/historical.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/svg/historical.html b/third_party/WebKit/LayoutTests/imported/wpt/svg/historical.html |
index de15f81839feec5865ccb8e16766cef87f2ea50d..5626dfcd13df0e77c97178eacb0af5b9c9962f96 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/svg/historical.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/svg/historical.html |
@@ -32,7 +32,6 @@ var mixinInterfaces = [ |
"SVGFitToViewBox", |
"SVGTests", |
"SVGURIReference", |
- "SVGUnitTypes", |
"SVGZoomAndPan" |
] |
for (var name of mixinInterfaces) { |
@@ -81,4 +80,21 @@ for (var member of movedPathMembers) { |
assert_true(SVGGeometryElement.prototype.hasOwnProperty(member)) |
}, "SVGPathElement.prototype." + member + " must be moved to SVGGeometryElement.prototype") |
} |
+ |
+var implementedSVGUnitTypes = [ |
+ "SVGClipPathElement", |
+ "SVGFilterElement", |
+ "SVGGradientElement", |
+ "SVGMaskElement", |
+ "SVGPatternElement" |
+] |
+for (var name of implementedSVGUnitTypes) { |
+ test(function() { |
+ assert_true(name in window); |
+ var interfaceObject = window[name]; |
+ assert_false("SVG_UNIT_TYPE_UNKNOWN" in interfaceObject); |
+ assert_false("SVG_UNIT_TYPE_USERSPACEONUSE" in interfaceObject); |
+ assert_false("SVG_UNIT_TYPE_OBJECTBOUNDINGBOX" in interfaceObject); |
+ }, name + " must not implement SVGUnitTypes") |
+} |
</script> |