Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what's the input to TestParser?

20 views
Skip to first unread message

Yuhao

unread,
Dec 31, 2011, 4:37:20 PM12/31/11
to
Hi All,

Under $firefox/obj-x86_64-unknown-linux-gnu/dist/bin, there is a test
module called "TestParser". I was wondering that should be the input
file to this module? I tried pure html file of a page, but got the
error information "Unable to create a sink".


Thanks,
Yuhao

Mats Palmgren

unread,
Jan 2, 2012, 7:49:41 AM1/2/12
to Yuhao
See
http://mxr.mozilla.org/mozilla-central/source/parser/htmlparser/tests/html/README

It's not used any more though, it only tests the old parser that
lives under parser/htmlparser/ -- the HTML5 parser that we use
now lives under parser/html

/Mats

Yuhao

unread,
Jan 2, 2012, 3:37:04 PM1/2/12
to
Thanks. But is there a separate test module for the new parser, just
like TestParser for the old parser? If not, is there a way to study
the performance of the parser only?

Thanks,
Yuhao

On Jan 2, 6:49 am, Mats Palmgren <mats...@gmail.com> wrote:
> On 12/31/2011 10:37 PM, Yuhao wrote:
>
> > Hi All,
>
> > Under $firefox/obj-x86_64-unknown-linux-gnu/dist/bin, there is a test
> > module called "TestParser".  I was wondering that should be the input
> > file to this module?  I tried pure html file of a page, but got the
> > error information "Unable to create a sink".
>
> Seehttp://mxr.mozilla.org/mozilla-central/source/parser/htmlparser/tests...

Mats Palmgren

unread,
Jan 2, 2012, 3:51:01 PM1/2/12
to Yuhao, Henri Sivonen
On 01/02/2012 09:37 PM, Yuhao wrote:
> Thanks. But is there a separate test module for the new parser, just
> like TestParser for the old parser? If not, is there a way to study
> the performance of the parser only?

I don't know. Henri might know how to test performance of the new
HTML parser.

/Mats
0 new messages