1 |
|
2 | require(__dirname).test({
|
3 | xml :
|
4 | "<root> "+
|
5 | "<haha /> "+
|
6 | "<haha/> "+
|
7 | "<monkey> "+
|
8 | "=(|) "+
|
9 | "</monkey>"+
|
10 | "</root> ",
|
11 | expect : [
|
12 | ["opentag", {name:"ROOT", attributes:{}}],
|
13 | ["opentag", {name:"HAHA", attributes:{}}],
|
14 | ["closetag", "HAHA"],
|
15 | ["opentag", {name:"HAHA", attributes:{}}],
|
16 | ["closetag", "HAHA"],
|
17 |
|
18 |
|
19 | ["opentag", {name:"MONKEY", attributes:{}}],
|
20 | ["text", "=(|)"],
|
21 | ["closetag", "MONKEY"],
|
22 | ["closetag", "ROOT"]
|
23 | ],
|
24 | opt : { trim : true }
|
25 | }); |
\ | No newline at end of file |