issue-23.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. require(__dirname).test
  2. ( { xml :
  3. "<compileClassesResponse>"+
  4. "<result>"+
  5. "<bodyCrc>653724009</bodyCrc>"+
  6. "<column>-1</column>"+
  7. "<id>01pG0000002KoSUIA0</id>"+
  8. "<line>-1</line>"+
  9. "<name>CalendarController</name>"+
  10. "<success>true</success>"+
  11. "</result>"+
  12. "</compileClassesResponse>"
  13. , expect :
  14. [ [ "opentag", { name: "COMPILECLASSESRESPONSE", attributes: {}, isSelfClosing: false } ]
  15. , [ "opentag", { name : "RESULT", attributes: {}, isSelfClosing: false } ]
  16. , [ "opentag", { name: "BODYCRC", attributes: {}, isSelfClosing: false } ]
  17. , [ "text", "653724009" ]
  18. , [ "closetag", "BODYCRC" ]
  19. , [ "opentag", { name: "COLUMN", attributes: {}, isSelfClosing: false } ]
  20. , [ "text", "-1" ]
  21. , [ "closetag", "COLUMN" ]
  22. , [ "opentag", { name: "ID", attributes: {}, isSelfClosing: false } ]
  23. , [ "text", "01pG0000002KoSUIA0" ]
  24. , [ "closetag", "ID" ]
  25. , [ "opentag", {name: "LINE", attributes: {}, isSelfClosing: false } ]
  26. , [ "text", "-1" ]
  27. , [ "closetag", "LINE" ]
  28. , [ "opentag", {name: "NAME", attributes: {}, isSelfClosing: false } ]
  29. , [ "text", "CalendarController" ]
  30. , [ "closetag", "NAME" ]
  31. , [ "opentag", {name: "SUCCESS", attributes: {}, isSelfClosing: false } ]
  32. , [ "text", "true" ]
  33. , [ "closetag", "SUCCESS" ]
  34. , [ "closetag", "RESULT" ]
  35. , [ "closetag", "COMPILECLASSESRESPONSE" ]
  36. ]
  37. , strict : false
  38. , opt : {}
  39. }
  40. )