https://github.com/jazz-soft/xml-test
Testing browser-native XML functions
https://github.com/jazz-soft/xml-test
playwright test xml xpath xslt
Last synced: 2 months ago
JSON representation
Testing browser-native XML functions
- Host: GitHub
- URL: https://github.com/jazz-soft/xml-test
- Owner: jazz-soft
- Created: 2025-01-20T16:25:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T22:28:09.000Z (over 1 year ago)
- Last Synced: 2025-03-28T03:12:37.761Z (over 1 year ago)
- Topics: playwright, test, xml, xpath, xslt
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
`node test data1.xml data2.xml transform.xsl` - Transform XML file(s) with XSLT stylesheet(s)
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...