[Webtest] webtest javascript unterminated string literal
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Mon, 15 Oct 2007 09:46:16 +0200
Hi,
when you look at a wiki page, you should look at the last change date...
I think that the problem here is that the content of the string gets
parsed as tag.
Are you sure that this script works in a "real browser" without
javascript error? As far as I remember, HtmlUnit parsing rules here are
really near to those of Firefox.
Marc.
--
Blog: http://mguillem.wordpress.com
Ken Jen wrote:
> Hi, I noticed this error when trying to click a link on my test website.
> I noticed on your support site that document.write is not fully
> supported with HTMLunit
> (http://webtest-community.canoo.com/wiki/space/Javascript). Is it the
> reason why? If not, can you please provide help / workaround for this
> problem? Thanks!
>
>
>
> *Details*
>
> javascript error
>
>
>
> unterminated string literal (script in
> http://HOME/testsite/MyAccount/MyAccountUserLogin.asp?LanguageId=1&LanguageIndex=1&SCheck=701767177&SDT=39365.5749993056
> from (50, 31) to (0, 0)#7)
>
> line
>
>
>
> -1
>
> javascript source
>
>
>
> document.write('\n'); document.write(' <TR>\n'); document.write(' <TD
> WIDTH="100%" CLASS="Content" NOWRAP>\n'); document.write(' <a
> name="skip"></a>\n'); document.write(' <B CLASS="Title">\n');
> document.write(' <SCRIPT
> LANGUAGE="Javascript">document.write(document.title);
>
> failing line
>
>
>
> <no source>
>
> javascript call stack
>
>
>
> unterminated string literal (script in
> http://HOME/testsite/MyAccount/MyAccountUserLogin.asp?LanguageId=1&LanguageIndex=1&SCheck=701767177&SDT=39365.5749993056
> from (50, 31) to (0, 0)#7)
>
>
>