Code

fix pasting style after copying a text span
[inkscape.git] / src / attributes-test.h
index b5c05e988fb4483235b6c8e8b2ac3edaa53ed9e4..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"
 
@@ -349,10 +348,17 @@ struct {char const *attr; bool supported;} const all_attrs[] = {
     {"inkscape:snap-global", 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-intersection-line-segments", 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},
@@ -508,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 );
         }