Changeset 444 for trunk/TestCase


Ignore:
Timestamp:
Feb 28, 2008, 11:36:39 PM (17 years ago)
Author:
dai
Message:

タグ属性用のテストコードを追加。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TestCase/SimpleTestCase/XmlTest.ab

    r424 r444  
    77    doc.AppendChild( doc.CreateElement( "root" ) )
    88    doc.ChildNodes[1].AppendChild( doc.CreateElement( "test" ) )
     9
     10    Dim attr1 = doc.CreateAttribute( "attr1" )
     11    attr1.Value = "123"
     12    doc.ChildNodes[1].Attributes.Add( attr1 )
     13    Dim attr2 = doc.CreateAttribute( "attr2" )
     14    attr2.Value = "456"
     15    doc.ChildNodes[1].Attributes.Add( attr2 )
     16
    917    System.Diagnostics.Debug.WriteLine( doc.OuterXml() )
    1018End Sub
Note: See TracChangeset for help on using the changeset viewer.