diff options
| author | MenTaLguY <mental@rydia.net> | 2007-01-24 04:52:34 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-01-24 04:52:34 +0000 |
| commit | 630ae5a56096375af6b64f59fc78d28561529668 (patch) | |
| tree | 9c876e9131869438c13afcad620db6d8224edc3c /src | |
| parent | more removal of sp_repr_new* (diff) | |
| download | inkscape-630ae5a56096375af6b64f59fc78d28561529668.tar.gz inkscape-630ae5a56096375af6b64f59fc78d28561529668.zip | |
remove sp_repr_new from style tests
(bzr r2272)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-style-elem-test.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-style-elem-test.h b/src/sp-style-elem-test.h index e5b2e8a48..8f52e8afd 100644 --- a/src/sp-style-elem-test.h +++ b/src/sp-style-elem-test.h @@ -77,7 +77,7 @@ public: SP_OBJECT(style_elem)->document = _doc; sp_object_set(SP_OBJECT(style_elem), SP_ATTR_TYPE, "text/css"); - Inkscape::XML::Node *repr = sp_repr_new("svg:style"); + Inkscape::XML::Node *repr = sp_document_repr_doc(_doc)->createElement("svg:style"); SP_OBJECT(style_elem)->updateRepr(repr, SP_OBJECT_WRITE_ALL); { gchar const *typ = repr->attribute("type"); @@ -94,7 +94,7 @@ public: void testBuild() { SPStyleElem &style_elem = *SP_STYLE_ELEM(g_object_new(SP_TYPE_STYLE_ELEM, NULL)); - Inkscape::XML::Node *const repr = sp_repr_new("svg:style"); + Inkscape::XML::Node *const repr = sp_document_repr_doc(_doc)->createElement("svg:style"); repr->setAttribute("type", "text/css"); sp_object_invoke_build(&style_elem, _doc, repr, false); TS_ASSERT( style_elem.is_css ); @@ -116,9 +116,9 @@ public: void testReadContent() { SPStyleElem &style_elem = *SP_STYLE_ELEM(g_object_new(SP_TYPE_STYLE_ELEM, NULL)); - Inkscape::XML::Node *const repr = sp_repr_new("svg:style"); + Inkscape::XML::Node *const repr = sp_document_repr_doc(_doc)->createElement("svg:style"); repr->setAttribute("type", "text/css"); - Inkscape::XML::Node *const content_repr = sp_repr_new_text(".myclass { }"); + Inkscape::XML::Node *const content_repr = sp_document_repr_doc(_doc)->createTextNode(".myclass { }"); repr->addChild(content_repr, NULL); sp_object_invoke_build(&style_elem, _doc, repr, false); TS_ASSERT( style_elem.is_css ); |
