Fwd: Re: Java applet not found (problem in the official DOM testsuite)
David Faure <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kfm,gmane.comp.web.dom.test-suites.general |
|---|---|
| Organization | Klaralvdalens Datakonsult. |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Koos Vriezen found out why Java applets couldn't be loaded in the latest version of the DOM testsuite (while it worked in previous versions). The reason is that an invalid URL is being created by jsUnitTestManager.js Only file:/path and file:///path are valid file urls. In file://blah and file:////blah, blah is a hostname (as specified in RFC 2396 IIRC) This looks like a bug in JSUnit, details below. - ---------- Forwarded Message ---------- Subject: Re: Java applet not found (problem in the official DOM testsuite) Date: Saturday 21 December 2002 17:55 From: Koos Vriezen <[email protected]> To: <[email protected]> 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 - ------------------------------------------------------- - -- David Faure -- [email protected], [email protected] Klarälvdalens Datakonsult AB, Platform-independent software solutions Contributing to: http://www.konqueror.org/, http://www.koffice.org/ KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+BZwj72KcVAmwbhARAsWVAJ9hDWDL63wA9tKAincD2ZYSj9iWfQCggL4r Pwx3ddACpPaj/HUYEr41LUA= =rNNc -----END PGP SIGNATURE-----