[xml] RUNTEST.c - "HTML SAX regression tests" - 53867.html.sax DIFF TO 53867.html.res AND entities2.html.sax DIFF TO entities2.html.res



Title: RUNTEST.c - "HTML SAX regression tests" - 53867.html.sax DIFF TO 53867.html.res AND entities2.html.sax DIFF TO entities2.html.res

I have toke the sources from trunk and only 2 errors running RUNTEST on Windows 2000

ERROR CASE 1 ----------- 
the tree is dumped to file 53867.html.res and has the following content

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(html)
SAX.ignorableWhitespace(
, 2)
SAX.startElement(head)
SAX.ignorableWhitespace(
, 2)
SAX.startElement(style)
SAX.cdata(
.......
..................., 1000)
SAX.cdata(.............................., 1000)
SAX.cdata(........................
...., 1000)
SAX.cdata(
............................., 1000)
SAX.cdata(.............................., 41)
SAX.endElement(style)
SAX.ignorableWhitespace(
, 2)
SAX.endElement(head)
SAX.ignorableWhitespace(
, 2)
SAX.endElement(html)
SAX.ignorableWhitespace(
, 2)
SAX.endDocument()



and compared against 53867.html.sax

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(html)
SAX.ignorableWhitespace(
, 1)
SAX.startElement(head)
SAX.ignorableWhitespace(
, 1)
SAX.startElement(style)
SAX.cdata(
.......
....................., 1000)
SAX.cdata(.............................., 1000)
SAX.cdata(.............................., 1000)
SAX.cdata(................
............., 977)
SAX.endElement(style)
SAX.ignorableWhitespace(
, 1)
SAX.endElement(head)
SAX.ignorableWhitespace(
, 1)
SAX.endElement(html)
SAX.ignorableWhitespace(
, 1)
SAX.endDocument()


NOTE: there is a total missmatch. Why?
and so does not match - regression error




ERROR CASE 2: ---- and I have an error with

entities 2 which gets dumped into entities2.html.res as

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(html)
SAX.ignorableWhitespace(
, 2)
SAX.startElement(body)
SAX.characters(
, 2)
SAX.startElement(form)
SAX.characters(
  , 4)
SAX.startElement(input, type='text', name='test', value='š')
SAX.endElement(input)
SAX.characters(
, 2)
SAX.endElement(form)
SAX.characters(
, 2)
SAX.endElement(body)
SAX.ignorableWhitespace(
, 2)
SAX.endElement(html)
SAX.endDocument()

and is then compared to entities2.html.sax which is

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(html)
SAX.ignorableWhitespace(
, 1)
SAX.startElement(body)
SAX.characters(
, 1)
SAX.startElement(form)
SAX.characters(
  , 3)
SAX.startElement(input, type='text', name='test', value='š')
SAX.endElement(input)
SAX.characters(
, 1)
SAX.endElement(form)
SAX.characters(
, 1)
SAX.endElement(body)
SAX.ignorableWhitespace(
, 1)
SAX.endElement(html)
SAX.endDocument()

I would have expected that the result file .sax is longer including <CR>'s but it seams that
we dump additional whitespace. In fact the difference in the total white space is the difference
of res1 and res2 in comparing the two files. Now, what is wrong with dumping to using the
SAX ?

If this two bugs are gone then I have a perfect running libxml2 on Windows and then I start
moving this sources to OpenVMS, as well as all relevant files.

Josef



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]