Skip to content

Commit

Permalink
Test SVGUnitTypes changes (no longer a mixin)
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Nov 16, 2016
1 parent ae27094 commit 1adc16c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 17 additions & 0 deletions svg/historical.html
Expand Up @@ -81,4 +81,21 @@
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>
4 changes: 0 additions & 4 deletions svg/interfaces.html
Expand Up @@ -540,7 +540,6 @@
setter void (unsigned long index, DOMString newItem);
};

[NoInterfaceObject]
interface SVGUnitTypes {
// Unit Types
const unsigned short SVG_UNIT_TYPE_UNKNOWN = 0;
Expand Down Expand Up @@ -921,7 +920,6 @@
};

SVGGradientElement implements SVGURIReference;
SVGGradientElement implements SVGUnitTypes;

interface SVGLinearGradientElement : SVGGradientElement {
[SameObject] readonly attribute SVGAnimatedLength x1;
Expand Down Expand Up @@ -964,7 +962,6 @@

SVGPatternElement implements SVGFitToViewBox;
SVGPatternElement implements SVGURIReference;
SVGPatternElement implements SVGUnitTypes;

interface SVGHatchElement : SVGElement {
};
Expand Down Expand Up @@ -1015,7 +1012,6 @@
};

SVGFilterElement implements SVGURIReference;
SVGFilterElement implements SVGUnitTypes;

[NoInterfaceObject]
interface SVGFilterPrimitiveStandardAttributes {
Expand Down

0 comments on commit 1adc16c

Please sign in to comment.