Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SAX fixture based tests for jindw/xmldom. #16

Open
bigeasy opened this issue Jul 1, 2012 · 0 comments
Open

Create SAX fixture based tests for jindw/xmldom. #16

bigeasy opened this issue Jul 1, 2012 · 0 comments
Assignees
Milestone

Comments

@bigeasy
Copy link
Collaborator

bigeasy commented Jul 1, 2012

I couldn't find a conformance suite at analogous to the W3C DOM conformance tests at http://www.saxproject.org/, but Elliotte Rusty Harold has a conformance suite at http://cafeconleche.org/SAXTest/. The fixtures are XML and the test suite can probably be very easily duplicated in JavaScript.

Note that I'm using fixtures to mean data driven and apply the Ruby definition of fixture.

As for the whinging in #4, if the SAX conformance test doesn't say anything about error handling, we could write a fixture generator in Java, one that parses XML and emits errors, with line and column number and we could use that as a fixture to determine when the SAX parser should emit an error. Simply choose the best Java based SAX parser according Elliotte's conformance suite and make that parser the fixture.

As an aside, have a look at the test output of a Travis CI run of Timezone, and toward the end you'll see a test with 35950 assertions, one for the millisecond of and the millisecond before every clock transition in IANA Timezone Database. I run it again against the minified source. I'm mentioning this as an example of a fixture based test.

Update: Fixed link to Timezone Travis CI output.

@ghost ghost assigned bigeasy Apr 12, 2013
emmkimme pushed a commit to emmkimme/xmldom that referenced this issue Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant