aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/script.js
blob: fbda1f6c6123b4d2e41e20317b8bfed6a91804ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require(__dirname).test({
  xml : "<html><head><script>if (1 < 0) { console.log('elo there'); }</script></head></html>",
  expect : [
    ["opentag", {"name": "HTML","attributes": {}, "isSelfClosing": false}],
    ["opentag", {"name": "HEAD","attributes": {}, "isSelfClosing": false}],
    ["opentag", {"name": "SCRIPT","attributes": {}, "isSelfClosing": false}],
    ["script", "if (1 < 0) { console.log('elo there'); }"],
    ["closetag", "SCRIPT"],
    ["closetag", "HEAD"],
    ["closetag", "HTML"]
  ]
});