summary refs log tree commit diff stats
path: root/examples/tunit.nim
Commit message (Expand)AuthorAgeFilesLines
* updated tests to be executedArne Döring2018-11-231-1/+1
* make tests green againAndreas Rumpf2018-08-101-1/+1
* make tests green againAndreas Rumpf2018-07-051-3/+3
* examples: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-47/+47
* when running unit tests, the tester will print only failures using colorless ...Zahary Karadjov2011-11-101-0/+47
n1.nim?h=devel&id=ac9c1cd6b980d4f00eeb52d1109d8e2c8cd21213'>^
6da95ed9c ^


e80465dac ^
6da95ed9c ^


e80465dac ^
6da95ed9c ^



e80465dac ^

6da95ed9c ^










e80465dac ^
d7d059a68 ^
6da95ed9c ^
e80465dac ^
6da95ed9c ^

e80465dac ^
6da95ed9c ^




e80465dac ^
6da95ed9c ^
e80465dac ^

6da95ed9c ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67








                                                
                               









                                                                     
 


                                
 


                                    
 



                                                   

                   










                                           
 
                         
                                   
 

                                   
 




                                                     
                                                    
                         

           




                         
type
  Feature = tuple[name: string, version: string]
  PDOMImplementation* = ref DOMImplementation
  DOMImplementation = object
    Features: seq[Feature] # Read-Only

  PNode* = ref Node
  Node = object {.inheritable.}
    attributes*: seq[PAttr]
    childNodes*: seq[PNode]
    FLocalName: string # Read-only
    FNamespaceURI: string # Read-only
    FNodeName: string # Read-only
    nodeValue*: string
    FNodeType: int # Read-only
    FOwnerDocument: PDocument # Read-Only
    FParentNode: PNode # Read-Only
    prefix*: string # Setting this should change some values... TODO!

  PElement* = ref Element
  Element = object of Node
    FTagName: string # Read-only

  PCharacterData = ref CharacterData
  CharacterData = object of Node
    data*: string

  PDocument* = ref Document
  Document = object of Node
    FImplementation: PDOMImplementation # Read-only
    FDocumentElement: PElement # Read-only

  PAttr* = ref Attr
  Attr = object of Node
    FName: string # Read-only
    FSpecified: bool # Read-only
    value*: string
    FOwnerElement: PElement # Read-only

  PDocumentFragment* = ref DocumentFragment
  DocumentFragment = object of Node

  PText* = ref Text
  Text = object of CharacterData

  PComment* = ref Comment
  Comment = object of CharacterData

  PCDataSection* = ref CDataSection
  CDataSection = object of Text

  PProcessingInstruction* = ref ProcessingInstruction
  ProcessingInstruction = object of Node
    data*: string
    FTarget: string # Read-only

proc `namespaceURI=`*(n: var PNode, value: string) =
  n.FNamespaceURI = value

proc main =
  var n: PNode
  new(n)
  n.namespaceURI = "test"

main()