Java applet not found (problem in the official DOM testsuite)

Koos Vriezen koos.vriezen at xs4all.nl
Sat Dec 21 16:55:42 GMT 2002


On Thu, 19 Dec 2002, David Faure wrote:

> Are you sure that something, in the JSUnit case, is creating a URL like
> file://foo ?

Running it with the JS Debugger I see that in kickOffTests() the call to
top.testManager.resolveUserEnteredTestFileName() returns
file:////home/koos/public_html/DOM-javabug/javabug/HTMLAppletElement01.html
The test in

 if (userEnteredTestFileName.indexOf("http://") == 0 || userEnteredTestFileName.indexOf("file:///") == 0)
    return userEnteredTestFileName;
  return getTestFileProtocol()+this.getTestFileName();

fails and getTestFileProtocol() return file:/// and this.getTestFileName()
returns
/home/koos/public_html/DOM-javabug/javabug/HTMLAppletElement01.html

I suspect the result of 'Browse' should be a file:///xxxx instead.

Koos





More information about the kfm-devel mailing list