[gxml/newattr] test/XPathExressionTest.vala: use get_named_item () instead of [] to access attrs



commit d2a5ab9ed2d9102a1cdee36c43d7337ef134903b
Author: Richard Schwarting <aquarichy gmail com>
Date:   Fri Nov 8 14:59:49 2013 -0500

    test/XPathExressionTest.vala: use get_named_item () instead of [] to access attrs

 test/XPathExpressionTest.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/test/XPathExpressionTest.vala b/test/XPathExpressionTest.vala
index 485ddfb..a8b20d6 100644
--- a/test/XPathExpressionTest.vala
+++ b/test/XPathExpressionTest.vala
@@ -301,7 +301,7 @@ class XPathExpressionTest : GXmlTest {
                                        assert (result.nodeset_value[0] != null);
                                        assert (result.nodeset_value[0] is Element);
 
-                                       context = result.nodeset_value[0].attributes["id"];
+                                       context = result.nodeset_value[0].attributes.get_named_item ("id");
                                        assert (context != null);
                                        assert (context is Attr);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]