Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jazz-soft/xml-test
- Owner: jazz-soft
- Created: 2025-01-20T16:25:54.000Z (24 days ago)
- Default Branch: main
- Last Pushed: 2025-02-06T02:34:11.000Z (7 days ago)
- Last Synced: 2025-02-06T03:29:21.798Z (7 days ago)
- Topics: playwright, test, xml, xpath
- Language: JavaScript
- Homepage:
- Size: 25.4 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
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.2to be continued...