mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
13 lines
439 B
JavaScript
13 lines
439 B
JavaScript
require(__dirname).test({
|
|
xml : "<html><head><script>if (1 < 0) { console.log('elo there'); }</script></head></html>",
|
|
expect : [
|
|
["opentag", {"name": "HTML","attributes": {}}],
|
|
["opentag", {"name": "HEAD","attributes": {}}],
|
|
["opentag", {"name": "SCRIPT","attributes": {}}],
|
|
["script", "if (1 < 0) { console.log('elo there'); }"],
|
|
["closetag", "SCRIPT"],
|
|
["closetag", "HEAD"],
|
|
["closetag", "HTML"]
|
|
]
|
|
});
|