X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fattributes-test.h;h=14696b8458644f682118038900a8c185b0b3c816;hb=c7cf14ac71346f76ae219ce67fb88c1bd34832e2;hp=25167e75be6912b9617ffc3b91066f6f25337a53;hpb=aee6bba4d090adbd7801efd2eb156ca8aee2301f;p=inkscape.git diff --git a/src/attributes-test.h b/src/attributes-test.h index 25167e75b..14696b845 100644 --- a/src/attributes-test.h +++ b/src/attributes-test.h @@ -7,7 +7,6 @@ #include #include #include -#include "utest/utest.h" #include "attributes.h" #include "streq.h" @@ -45,28 +44,29 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"begin", true}, {"additive", true}, {"font", true}, + {"-inkscape-font-specification", true}, // TODO look into this attribute's name {"marker", true}, {"line-height", true}, - {"accent-height", false}, + {"accent-height", true}, {"accumulate", true}, {"alignment-baseline", true}, - {"alphabetic", false}, + {"alphabetic", true}, {"amplitude", true}, {"animate", false}, - {"arabic-form", false}, - {"ascent", false}, + {"arabic-form", true}, + {"ascent", true}, {"attributeType", true}, {"azimuth", true}, {"baseFrequency", true}, {"baseline-shift", true}, {"baseProfile", false}, - {"bbox", false}, + {"bbox", true}, {"bias", true}, {"block-progression", true}, {"by", true}, {"calcMode", true}, - {"cap-height", false}, + {"cap-height", true}, {"class", false}, {"clip", true}, {"clip-path", true}, @@ -83,7 +83,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"cx", true}, {"cy", true}, {"d", true}, - {"descent", false}, + {"descent", true}, {"diffuseConstant", true}, {"direction", true}, {"display", true}, @@ -132,25 +132,25 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"from", true}, {"fx", true}, {"fy", true}, - {"g1", false}, - {"g2", false}, - {"glyph-name", false}, + {"g1", true}, + {"g2", true}, + {"glyph-name", true}, {"glyph-orientation-horizontal", true}, {"glyph-orientation-vertical", true}, {"glyphRef", false}, {"gradientTransform", true}, {"gradientUnits", true}, - {"hanging", false}, + {"hanging", true}, {"height", true}, - {"horiz-adv-x", false}, - {"horiz-origin-x", false}, - {"horiz-origin-y", false}, - {"ideographic", false}, + {"horiz-adv-x", true}, + {"horiz-origin-x", true}, + {"horiz-origin-y", true}, + {"ideographic", true}, {"image-rendering", true}, {"in", true}, {"in2", true}, {"intercept", true}, - {"k", false}, + {"k", true}, {"k1", true}, {"k2", true}, {"k3", true}, @@ -161,7 +161,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"keyPoints", false}, {"keySplines", true}, {"keyTimes", true}, - {"lang", false}, + {"lang", true}, {"lengthAdjust", false}, {"letter-spacing", true}, {"lighting-color", true}, @@ -176,7 +176,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"mask", true}, {"maskContentUnits", true}, {"maskUnits", true}, - {"mathematical", false}, + {"mathematical", true}, {"max", true}, {"media", false}, {"method", false}, @@ -193,7 +193,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"onerror", false}, {"onfocusin", false}, {"onfocusout", false}, - {"onload", false}, + {"onload", true}, {"onmousedown", false}, {"onmousemove", false}, {"onmouseout", false}, @@ -211,9 +211,9 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"orientation", true}, {"origin", false}, {"overflow", true}, - {"overline-position", false}, - {"overline-thickness", false}, - {"panose-1", false}, + {"overline-position", true}, + {"overline-thickness", true}, + {"panose-1", true}, {"path", false}, {"pathLength", false}, {"patternContentUnits", true}, @@ -251,13 +251,13 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"spreadMethod", true}, {"startOffset", true}, {"stdDeviation", true}, - {"stemh", false}, - {"stemv", false}, + {"stemh", true}, + {"stemv", true}, {"stitchTiles", true}, {"stop-color", true}, {"stop-opacity", true}, - {"strikethrough-position", false}, - {"strikethrough-thickness", false}, + {"strikethrough-position", true}, + {"strikethrough-thickness", true}, {"stroke", true}, {"stroke-dasharray", true}, {"stroke-dashoffset", true}, @@ -284,32 +284,32 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"to", true}, {"transform", true}, {"type", true}, - {"u1", false}, - {"u2", false}, - {"underline-position", false}, - {"underline-thickness", false}, - {"unicode", false}, + {"u1", true}, + {"u2", true}, + {"underline-position", true}, + {"underline-thickness", true}, + {"unicode", true}, {"unicode-bidi", true}, - {"unicode-range", false}, - {"units-per-em", false}, - {"v-alphabetic", false}, - {"v-hanging", false}, - {"v-ideographic", false}, - {"v-mathematical", false}, + {"unicode-range", true}, + {"units-per-em", true}, + {"v-alphabetic", true}, + {"v-hanging", true}, + {"v-ideographic", true}, + {"v-mathematical", true}, {"values", true}, {"version", true}, - {"vert-adv-y", false}, - {"vert-origin-x", false}, - {"vert-origin-y", false}, + {"vert-adv-y", true}, + {"vert-origin-x", true}, + {"vert-origin-y", true}, {"viewBox", true}, {"viewTarget", false}, {"visibility", true}, {"width", true}, - {"widths", false}, + {"widths", true}, {"word-spacing", true}, {"writing-mode", true}, {"x", true}, - {"x-height", false}, + {"x-height", true}, {"x1", true}, {"x2", true}, {"xChannelSelector", true}, @@ -339,7 +339,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"sodipodi:insensitive", true}, {"sodipodi:nonprintable", true}, {"inkscape:groupmode", true}, - {"sodipodi:version", true}, + {"sodipodi:version", false}, {"inkscape:version", true}, {"inkscape:object-paths", true}, {"inkscape:object-nodes", true}, @@ -347,15 +347,23 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"inkscape:bbox-nodes", true}, {"inkscape:snap-page", true}, {"inkscape:snap-global", true}, - {"inkscape:snap-indicator", true}, {"inkscape:snap-bbox", true}, {"inkscape:snap-nodes", true}, - {"inkscape:snap-guide", true}, + {"inkscape:snap-from-guide", true}, {"inkscape:snap-center", true}, - {"inkscape:snap-intersection-grid-guide", true}, + {"inkscape:snap-smooth-nodes", true}, + {"inkscape:snap-midpoints", true}, + {"inkscape:snap-object-midpoints", true}, + {"inkscape:snap-bbox-edge-midpoints", true}, + {"inkscape:snap-bbox-midpoints", true}, + //{"inkscape:snap-intersection-grid-guide", true}, + {"inkscape:snap-grids", true}, + {"inkscape:snap-to-guides", true}, {"inkscape:snap-intersection-paths", true}, + {"inkscape:original-d", true}, {"inkscape:pageopacity", true}, {"inkscape:pageshadow", true}, + {"inkscape:path-effect", true}, {"inkscape:transform-center-x", true}, {"inkscape:transform-center-y", true}, {"inkscape:zoom", true}, @@ -365,10 +373,13 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"inkscape:window-height", true}, {"inkscape:window-x", true}, {"inkscape:window-y", true}, + {"inkscape:window-maximized", true}, {"inkscape:current-layer", true}, {"inkscape:connector-type", true}, {"inkscape:connection-start", true}, {"inkscape:connection-end", true}, + {"inkscape:connection-points", true}, + {"inkscape:connector-curvature", true}, {"inkscape:connector-avoid", true}, {"inkscape:connector-spacing", true}, {"sodipodi:cx", true}, @@ -509,9 +520,9 @@ struct {char const *attr; bool supported;} const all_attrs[] = { } TS_ASSERT(!found); - for ( guint index = 1; index < n_ids; index++ ) { + for ( unsigned int index = 1; index < n_ids; index++ ) { guchar const* name = sp_attribute_name(index); - gint postLookup = sp_attribute_lookup( reinterpret_cast(name) ); + unsigned int postLookup = sp_attribute_lookup( reinterpret_cast(name) ); TSM_ASSERT_EQUALS( std::string("Enum round-trip through string {") + (char const*)name + "} failed.", index, postLookup ); } @@ -529,4 +540,4 @@ struct {char const *attr; bool supported;} const all_attrs[] = { fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :