summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/idl/iterator.widl
blob: 3bf1b36dec675656cbfd7ea4603617b3db91bfc6 (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
interface SessionManager {
  Session getSessionForUser(DOMString username);
  readonly attribute unsigned long sessionCount;

  Session iterator;
};

interface Session {
  readonly attribute DOMString username;
  // ...
};

interface SessionManager2 {
  Session2 getSessionForUser(DOMString username);
  readonly attribute unsigned long sessionCount;

  Session2 iterator = SessionIterator;
};

interface Session2 {
  readonly attribute DOMString username;
  // ...
};

interface SessionIterator {
  readonly attribute unsigned long remainingSessions;
};

     interface NodeList {
       Node iterator = NodeIterator;
     };

     interface NodeIterator {
       Node iterator object;
     };