summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/xml/iterator.widlprocxml
blob: 8ca95fbbd17f302e25d7ab0f255c8751823ae0a5 (plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
  <webidl>interface SessionManager {
  <ref>Session</ref> getSessionForUser(DOMString username);
  readonly attribute unsigned long sessionCount;

  <ref>Session</ref> iterator;
};

interface Session {
  readonly attribute DOMString username;
};

interface SessionManager2 {
  <ref>Session2</ref> getSessionForUser(DOMString username);
  readonly attribute unsigned long sessionCount;

  <ref>Session2</ref> iterator = SessionIterator;
};

interface Session2 {
  readonly attribute DOMString username;
};

interface SessionIterator {
  readonly attribute unsigned long remainingSessions;
};

     interface NodeList {
       <ref>Node</ref> iterator = NodeIterator;
     };

     interface NodeIterator {
       <ref>Node</ref> iterator object;
     };</webidl>
  <Interface name="SessionManager" id="::SessionManager">
    <webidl>interface SessionManager {
  <ref>Session</ref> getSessionForUser(DOMString username);
  readonly attribute unsigned long sessionCount;

  <ref>Session</ref> iterator;
};</webidl>
    <Operation name="getSessionForUser" id="::SessionManager::getSessionForUser">
      <webidl>  <ref>Session</ref> getSessionForUser(DOMString username);</webidl>
      <Type name="Session"/>
      <ArgumentList>
        <Argument name="username">
          <Type type="DOMString"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Attribute readonly="readonly" name="sessionCount" id="::SessionManager::sessionCount">
      <webidl>  readonly attribute unsigned long sessionCount;</webidl>
      <Type type="unsigned long"/>
    </Attribute>
    <Iterator>
      <webidl>  <ref>Session</ref> iterator;</webidl>
      <Type name="Session"/>
    </Iterator>
  </Interface>
  <Interface name="Session" id="::Session">
    <webidl>interface Session {
  readonly attribute DOMString username;
};</webidl>
    <Attribute readonly="readonly" name="username" id="::Session::username">
      <webidl>  readonly attribute DOMString username;</webidl>
      <Type type="DOMString"/>
    </Attribute>
  </Interface>
  <Interface name="SessionManager2" id="::SessionManager2">
    <webidl>interface SessionManager2 {
  <ref>Session2</ref> getSessionForUser(DOMString username);
  readonly attribute unsigned long sessionCount;

  <ref>Session2</ref> iterator = SessionIterator;
};</webidl>
    <Operation name="getSessionForUser" id="::SessionManager2::getSessionForUser">
      <webidl>  <ref>Session2</ref> getSessionForUser(DOMString username);</webidl>
      <Type name="Session2"/>
      <ArgumentList>
        <Argument name="username">
          <Type type="DOMString"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Attribute readonly="readonly" name="sessionCount" id="::SessionManager2::sessionCount">
      <webidl>  readonly attribute unsigned long sessionCount;</webidl>
      <Type type="unsigned long"/>
    </Attribute>
    <Iterator interface="SessionIterator">
      <webidl>  <ref>Session2</ref> iterator = SessionIterator;</webidl>
      <Type name="Session2"/>
    </Iterator>
  </Interface>
  <Interface name="Session2" id="::Session2">
    <webidl>interface Session2 {
  readonly attribute DOMString username;
};</webidl>
    <Attribute readonly="readonly" name="username" id="::Session2::username">
      <webidl>  readonly attribute DOMString username;</webidl>
      <Type type="DOMString"/>
    </Attribute>
  </Interface>
  <Interface name="SessionIterator" id="::SessionIterator">
    <webidl>interface SessionIterator {
  readonly attribute unsigned long remainingSessions;
};</webidl>
    <Attribute readonly="readonly" name="remainingSessions" id="::SessionIterator::remainingSessions">
      <webidl>  readonly attribute unsigned long remainingSessions;</webidl>
      <Type type="unsigned long"/>
    </Attribute>
  </Interface>
  <Interface name="NodeList" id="::NodeList">
    <webidl>     interface NodeList {
       <ref>Node</ref> iterator = NodeIterator;
     };</webidl>
    <Iterator interface="NodeIterator">
      <webidl>       <ref>Node</ref> iterator = NodeIterator;</webidl>
      <Type name="Node"/>
    </Iterator>
  </Interface>
  <Interface name="NodeIterator" id="::NodeIterator">
    <webidl>     interface NodeIterator {
       <ref>Node</ref> iterator object;
     };</webidl>
    <IteratorObject>
      <webidl>       <ref>Node</ref> iterator object;</webidl>
      <Type name="Node"/>
    </IteratorObject>
  </Interface>
</Definitions>