forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVGAnimatedEnumeration initial values
This implements initial values for SVGAnimatedEnumeration properties. Bug: 225807, 523685 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I857dd5d6a52b2e3c4e866c2b589be3373449fc24 Reviewed-on: https://chromium-review.googlesource.com/1209683 Reviewed-by: Philip Rogers <[email protected]> Commit-Queue: Fredrik Söderquist <[email protected]> Cr-Commit-Position: refs/heads/master@{#589217}
- Loading branch information
Fredrik Söderquist
authored and
Commit Bot
committed
Sep 6, 2018
1 parent
9067d0c
commit d694dd9
Showing
5 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
third_party/WebKit/LayoutTests/svg/dom/resources/initial-value-helper.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
third_party/WebKit/LayoutTests/svg/dom/svganimatedenumeration-initial-values.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<title>SVGAnimatedEnumeration, initial values</title> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
<script src="resources/initial-value-helper.js"></script> | ||
<script> | ||
assert_initial_values([ | ||
{ interface: 'SVGClipPathElement', attributes: [ 'clipPathUnits' ], | ||
clipPathUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE, valid: 'objectBoundingBox' } }, | ||
{ interface: 'SVGComponentTransferFunctionElement', attributes: [ 'type' ], | ||
type: { initial: SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY, valid: 'table' } }, | ||
{ interface: 'SVGFEBlendElement', attributes: [ 'mode' ], | ||
mode: { initial: SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL, valid: 'screen' } }, | ||
{ interface: 'SVGFEColorMatrixElement', attributes: [ 'type' ], | ||
type: { initial: SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX, valid: 'saturate' } }, | ||
{ interface: 'SVGFECompositeElement', attributes: [ 'operator' ], | ||
operator: { initial: SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OVER, valid: 'in' } }, | ||
{ interface: 'SVGFEConvolveMatrixElement', attributes: [ 'edgeMode' ], | ||
edgeMode: { initial: SVGFEConvolveMatrixElement.SVG_EDGEMODE_DUPLICATE, valid: 'wrap' } }, | ||
{ interface: 'SVGFEDisplacementMapElement', attributes: [ 'xChannelSelector', 'yChannelSelector' ], | ||
xChannelSelector: { initial: SVGFEDisplacementMapElement.SVG_CHANNEL_A, valid: 'R' }, | ||
yChannelSelector: { initial: SVGFEDisplacementMapElement.SVG_CHANNEL_A, valid: 'G' } }, | ||
{ interface: 'SVGFEMorphologyElement', attributes: [ 'operator' ], | ||
operator: { initial: SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE, valid: 'dilate' } }, | ||
{ interface: 'SVGFETurbulenceElement', attributes: [ 'stitchTiles', 'type' ], | ||
stitchTiles: { initial: SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH, valid: 'stitch' }, | ||
type: { initial: SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE, valid: 'fractalNoise' } }, | ||
{ interface: 'SVGFilterElement', attributes: [ 'filterUnits', 'primitiveUnits' ], | ||
filterUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX, valid: 'userSpaceOnUse' }, | ||
primitiveUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE, valid: 'objectBoundingBox' } }, | ||
{ interface: 'SVGGradientElement', attributes: [ 'gradientUnits', 'spreadMethod' ], | ||
gradientUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX, valid: 'userSpaceOnUse' }, | ||
spreadMethod: { initial: SVGGradientElement.SVG_SPREADMETHOD_PAD, valid: 'repeat' } }, | ||
{ interface: 'SVGMarkerElement', attributes: [ 'markerUnits', 'orientType' ], | ||
markerUnits: { initial: SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH, valid: 'userSpaceOnUse' }, | ||
orientType: { initial: SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE, valid: 'auto' } }, | ||
{ interface: 'SVGMaskElement', attributes: [ 'maskUnits', 'maskContentUnits' ], | ||
maskUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX, valid: 'userSpaceOnUse' }, | ||
maskContentUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE, valid: 'objectBoundingBox' } }, | ||
{ interface: 'SVGPatternElement', attributes: [ 'patternUnits', 'patternContentUnits' ], | ||
patternUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX, valid: 'userSpaceOnUse' }, | ||
patternContentUnits: { initial: SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE, valid: 'objectBoundingBox' } }, | ||
{ interface: 'SVGTextContentElement', attributes: [ 'lengthAdjust' ], | ||
lengthAdjust: { initial: SVGTextContentElement.LENGTHADJUST_SPACING, valid: 'spacingAndGlyphs' } }, | ||
{ interface: 'SVGTextPathElement', attributes: [ 'method', 'spacing' ], | ||
method: { initial: SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN, valid: 'stretch' }, | ||
spacing: { initial: SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT, valid: 'auto' } }, | ||
], { mapProperty: { orientType: 'orient' } }); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters