Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jazz-soft/xml-test

Testing browser-native XML functions
https://github.com/jazz-soft/xml-test

playwright test xml xpath

Last synced: 5 days ago
JSON representation

Testing browser-native XML functions

Awesome Lists containing this project

README

        

# xml-test
Testing browser-native XML functions (using Playwright)

## Command line:

`node test` - run all tests from `tests.json` in `chromium`/`firefox`/`webkit`

`node test msedge` - run all tests in specified browser(s)

`node test xpath` - run test group(s) from `tests.json`

`node test xpath/local-name-wildcard` - run individual test(s) from `tests.json`

`node test xml/unicode-tag-chinese chrome` - run individual test(s) in specified browser(s)

`node test data1.xml data2.xml` - test XML file(s)

`node test query1.xpath query2.xpath` - test XPath expression(s)

`node test data1.xml data2.xml query1.xpath query2.xpath` - test XPath expression(s) vs XML file(s)

`node test --xpath "/*"` - input XPath expression(s) directly in the command line

etc...

## Results:

❌ chromium✅ chromium❌ firefox✅ firefox❌ webkit✅ webkit
DOMParser / XMLSerializer: Unicode characters in the tag name (4E00-9FFF)
✅ 131.0✅ 132.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the tag name (1780-17FF)
✅ 131.0❌ 134.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the attribute name (4E00-9FFF)
✅ 131.0✅ 132.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the attribute name (1780-17FF)
✅ 131.0❌ 134.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the text node (4E00-9FFF)
✅ 131.0✅ 132.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the text node (1780-17FF)
✅ 131.0✅ 132.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the attribute value (4E00-9FFF)
✅ 131.0✅ 132.0✅ 18.2
DOMParser / XMLSerializer: Unicode characters in the attribute value (1780-17FF)
✅ 131.0✅ 132.0✅ 18.2
Evaluate XPath expression: Simple math expression
✅ 131.0✅ 132.0✅ 18.2
Evaluate XPath expression: Simple boolean expression
✅ 131.0✅ 132.0✅ 18.2
Evaluate XPath expression: local-name(dummy)
❌ 133.0✅ 134.0❌ 18.2
Evaluate XPath expression: local-name(/dummy)
❌ 133.0✅ 134.0❌ 18.2
Evaluate XPath expression: local-name(*)
✅ 133.0✅ 134.0✅ 18.2
Evaluate XPath expression: local-name(/*)
✅ 133.0✅ 134.0✅ 18.2
Evaluate XPath expression: local-name(/*:dummy)
❌ 133.0❌ 134.0❌ 18.2

to be continued...