mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +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"]
|
||
|
]
|
||
|
});
|