Code

fix pasting style after copying a text span
[inkscape.git] / src / attributes-test.h
index 1030f9e46755ca94599b8ed2418ff862d54674de..7b021a5433bc4a776e59cd9c0ea715ece4e0336a 100644 (file)
@@ -7,7 +7,6 @@
 #include <vector>
 #include <glib.h>
 #include <glib/gprintf.h>
-#include "utest/utest.h"
 #include "attributes.h"
 #include "streq.h"
 
@@ -57,7 +56,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"arabic-form", false},
     {"ascent", false},
     {"attributeType", true},
-    {"azimuth", false},
+    {"azimuth", true},
     {"baseFrequency", true},
     {"baseline-shift", true},
     {"baseProfile", false},
@@ -93,7 +92,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"dx", true},
     {"dy", true},
     {"edgeMode", true},
-    {"elevation", false},
+    {"elevation", true},
     {"enable-background", true},
     {"end", true},
     {"exponent", true},
@@ -147,7 +146,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"horiz-origin-y", false},
     {"ideographic", false},
     {"image-rendering", true},
-    {"in", false},
+    {"in", true},
     {"in2", true},
     {"intercept", true},
     {"k", false},
@@ -165,7 +164,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"lengthAdjust", false},
     {"letter-spacing", true},
     {"lighting-color", true},
-    {"limitingConeAngle", false},
+    {"limitingConeAngle", true},
     {"local", true},
     {"marker-end", true},
     {"marker-mid", true},
@@ -221,9 +220,9 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"patternUnits", true},
     {"pointer-events", true},
     {"points", true},
-    {"pointsAtX", false},
-    {"pointsAtY", false},
-    {"pointsAtZ", false},
+    {"pointsAtX", true},
+    {"pointsAtY", true},
+    {"pointsAtZ", true},
     {"preserveAlpha", true},
     {"preserveAspectRatio", true},
     {"primitiveUnits", true},
@@ -237,7 +236,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"requiredFeatures", true},
     {"requiredExtensions", true},
     {"restart", true},
-    {"result", false},
+    {"result", true},
     {"rotate", true},
     {"rx", true},
     {"ry", true},
@@ -328,7 +327,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"y1", true},
     {"y2", true},
     {"yChannelSelector", true},
-    {"z", false},
+    {"z", true},
     {"zoomAndPan", false},
 
     /* Extra attributes. */
@@ -341,10 +340,25 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"inkscape:groupmode", true},
     {"sodipodi:version", true},
     {"inkscape:version", true},
-/*  {"inkscape:object-bbox", true},
-    {"inkscape:object-points", true},*/
     {"inkscape:object-paths", true},
     {"inkscape:object-nodes", true},
+    {"inkscape:bbox-paths", true},
+    {"inkscape:bbox-nodes", true},
+    {"inkscape:snap-page", true},
+    {"inkscape:snap-global", true},
+    {"inkscape:snap-bbox", true},
+    {"inkscape:snap-nodes", true},
+    {"inkscape:snap-from-guide", true},
+    {"inkscape:snap-center", 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:pageopacity", true},
     {"inkscape:pageshadow", true},
     {"inkscape:transform-center-x", true},
@@ -356,10 +370,6 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"inkscape:window-height", true},
     {"inkscape:window-x", true},
     {"inkscape:window-y", true},
-/*  {"inkscape:grid-bbox", true},
-    {"inkscape:guide-bbox", true},
-    {"inkscape:grid-points", true},
-    {"inkscape:guide-points", true},*/
     {"inkscape:current-layer", true},
     {"inkscape:connector-type", true},
     {"inkscape:connection-start", true},
@@ -370,6 +380,15 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"sodipodi:cy", true},
     {"sodipodi:rx", true},
     {"sodipodi:ry", true},
+    {"inkscape:perspectiveID", true},
+    {"inkscape:corner0", true},
+    {"inkscape:corner7", true},
+    {"inkscape:box3dsidetype", true},
+    {"inkscape:persp3d", true},
+    {"inkscape:vp_x", true},
+    {"inkscape:vp_y", true},
+    {"inkscape:vp_z", true},
+    {"inkscape:persp3d-origin", true},
     {"sodipodi:start", true},
     {"sodipodi:end", true},
     {"sodipodi:open", true},
@@ -404,12 +423,12 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     /* SPNamedView */
     {"viewonly", true},
     {"showgrid", true},
-    {"gridtype", true},
+//    {"gridtype", true},
     {"showguides", true},
     {"gridtolerance", true},
     {"guidetolerance", true},
     {"objecttolerance", true},
-    {"gridoriginx", true},
+/*    {"gridoriginx", true},
     {"gridoriginy", true},
     {"gridspacingx", true},
     {"gridspacingy", true},
@@ -419,7 +438,7 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"gridopacity", true},
     {"gridempcolor", true},
     {"gridempopacity", true},
-    {"gridempspacing", true},
+    {"gridempspacing", true}, */
     {"guidecolor", true},
     {"guideopacity", true},
     {"guidehicolor", true},
@@ -495,9 +514,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<gchar const*>(name) );
+            unsigned int postLookup = sp_attribute_lookup( reinterpret_cast<gchar const*>(name) );
             TSM_ASSERT_EQUALS( std::string("Enum round-trip through string {") + (char const*)name + "} failed.", index, postLookup );
         }