1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-02 08:57:19 -04:00
Commit Graph

42 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
6f9501346e Remove GFDL-licensed test file
In recent ELinks release announcements, I have described:

  This release of ELinks is mostly licensed under version 2 of the GNU
  General Public License.  More permissive licences apply to some parts
  of it, and there is also one test file under the GNU Free Documentation
  License; please see COPYING for the list.

Remove that test file, so its GPL-incompatible licence need not be
mentioned in future announcements.  The file however remains
downloadable as part of the elinks.git repository and releases like
elinks-0.11.6.tar.gz.  Those should still be covered by the licence.
2009-07-09 00:11:52 +03:00
Kalle Olavi Niemitalo
29c34df62e Fix assertion failure if IMG/@usemap refers to a different file.
Change test/imgmap2.html so it can be used for testing this too.

Debian Iceweasel 3.0.4 does not appear to support such external
client-side image maps.  Well, that's one place where ELinks is
superior, I guess.  There might be a security problem though if ELinks
were to let scripts of the referring page examine the links in the
image map.
2009-01-01 19:12:41 +00:00
Kalle Olavi Niemitalo
dc41f0bd4c test: Don't refer to deleted files from imgmap.html.
align.html and poocs.net.html have been deleted.
Point the links to href_tests.html and nbsp.html instead.
2009-01-01 18:36:34 +00:00
Kalle Olavi Niemitalo
5be3f71ddd Add test/image.png and use it in test/imgmap.html.
This makes the image-map test work sensibly in graphical browsers too.
2009-01-01 18:35:11 +00:00
Kalle Olavi Niemitalo
25da8085b3 Fix double-free crash if EOF immediately follows </MAP>.
look_for_link() used to return 0 both when it found the closing </MAP>
tag, and when it hit the end of the file.  In the first case, it also
added *menu to the memory_list; in the second case, it did not.  The
caller get_image_map() supposedly distinguished between these cases by
checking whether pos >= eof, and freed *menu separately if so.

However, if the </MAP> was at the very end of the HTML file, so that
not even a newline followed it, then look_for_link() left pos == eof
even though it had found the </MAP> and added *menu to the memory_list.
This made get_image_map() misinterpret the result and mem_free(*menu)
even though *menu had already been freed as part of the memory_list;
thus the crash.

To fix this, make look_for_link() return -1 instead of 0 if it hits
EOF without finding the </MAP>.  Then make get_image_map() check the
return value instead of comparing pos to eof.  And add a test case,
although not an automated one.

Alternatively, look_for_link() could have been changed to decrement
pos between finding the </MAP> and returning 0.  Then, the pos >= eof
comparison in get_image_map() would have been false.  That scheme
would however have been a bit more difficult to understand and
maintain, I think.

Reported by Paul B. Mahol.
(cherry picked from commit a2404407ce)
2008-12-31 20:15:44 +00:00
Peter Collingbourne
658b9cc70f Fixed bug relating to newlines in hidden input fields
This patch fixes an issue whereby a newline character appearing within
a hidden input field is incorrectly reinterpreted as a space character.
The patch handles almost all cases, and includes a test case.
15/18 tests pass, but the remainder currently fail due to the fact
that ELinks does not currently support textarea scripting.
2008-11-09 23:28:46 +02:00
Kalle Olavi Niemitalo
22975bb0ec Remove unclearly licensed test files.
test/align.html: from www.czech-tv.cz
test/css/idnes_mail.html: apparently from idnes.cz
test/erreurs_en.htm: unclear origin
test/javascript_broken.html: presumably from www.hotjobs.com
test/poocs.net.html: presumably from poocs.net

I did not find in the source tree a licence to distribute any of these.
2008-10-03 10:39:12 +03:00
Kalle Olavi Niemitalo
fe78a0249a test/optgroup.html is under GNU Free Documentation License
test/optgroup.html was added on 2004-04-17 with no comment about licensing.
I contacted the author via <http://iccl.fi/feedback.cgi?id=mail>, asking
for a licence.  The author noted that a developer of ELinks had originally
asked on the #debian.fi channel whether the file could be used, and he had
allowed it then.  That permission grant had not been recorded in the source
tree though, and it is not clear whether modification had been allowed.
Anyway, the author now explicitly grants us the GNU free documentation
licence on this file, and is willing to consider other licences.
2008-09-24 02:08:51 +03:00
Kalle Olavi Niemitalo
327fc1e46e 1034: NEWS, comments, and tests 2008-07-20 14:34:12 +03:00
Witold Filipczyk
ac48b3e4e6 test: raw deflate
(cherry picked from commit c48dc625e3)
2008-03-01 15:27:04 +02:00
Witold Filipczyk
8e0938d2fc Encoding tests rewritten. They do not create files in /tmp. 2008-02-17 21:54:18 +02:00
Witold Filipczyk
99c144381a chunked encoding tests: All these tests fail. 2008-02-17 21:54:17 +02:00
Witold Filipczyk
3fd6ae4a2d Three CGI tests for content-encoding.
The output should be:
Two lines should be visible.
The second line.

All three tests fail currently when the ELinks is invoked like this:
$ elinks -no-connect path_to_chunked_test
2008-02-17 21:54:17 +02:00
Laurent MONIN
286a6a09d8 Add a simple testcase for missing ; in meta refresh content attribute. 2007-09-14 11:56:55 +02:00
Miciah Dashiel Butler Masters
23262b3145 Fix process_head to check for cache-control information even if no refresh
Previously, process_head immediately returned if there was no refresh, never giving the cache-control check further down a chance to run.

Also add new tests:

   nocache.html
   refresh+nocache.html
2007-09-12 23:33:40 +02:00
Witold Filipczyk
1b0bad8cbc test, CGI: added a simple form to test CGI. 2007-06-17 19:42:54 +03:00
Kalle Olavi Niemitalo
55f4307511 SEE compatibility in forms.namedItem.html. 2007-06-10 15:16:51 +03:00
Kalle Olavi Niemitalo
c9b2fbbd46 SMJS: Fix error "forms.namedItem is not a function".
Commit 63752c854b303f5f58636a512a137bf3702e051b on 2004-12-27
seems to have broken this.
2007-06-10 13:11:53 +03:00
Witold Filipczyk
9179c8d3f6 test: The CGI script showing POST DATA sent to it.
TODO: Combine print-post.sh and print-vars.sh into one script.
2007-03-10 13:45:49 +02:00
Jonas Fonseca
45d82029be Add simple script to testing the various features of the -remote option
It should test the most important use cases.
2006-12-04 21:50:01 +01:00
Jonas Fonseca
85e3a09470 Add a stupid test script to print CGI variables set by ELinks
To use it to test whether that CGI works put the following in your
elinks.conf:

      set protocol.file.cgi.policy = 1
      set protocol.file.cgi.path = "/path/to/elinks/test/cgi"

Then point ELinks to the print-vars.sh script inside the CGI test directory
in the ELinks source directory.
2006-11-30 20:46:10 +01:00
Witold Filipczyk
31729c7c59 Test case for scroll. Scrolling currently only works with SEE.
TODO: window.status and SpiderMonkey setTimeout.
2006-10-23 23:08:14 +02:00
Kalle Olavi Niemitalo
0c8d40049f Bug 811: Added test/nbsp.html.
ELinks currently fails this test.  Also, it does not support all the
DOM features used here.  I don't know whether the scripts should be
simplified or ELinks should be enhanced to support them.
2006-10-15 13:37:27 +03:00
Kalle Olavi Niemitalo
1c0598d5ba ECMAScript: More accessKey tests. 2006-08-20 17:07:26 +03:00
Kalle Olavi Niemitalo
4a638c2e84 ECMAScript: Added a test for the accessKey property.
ELinks currently fails this test.
2006-08-20 12:15:57 +03:00
Jonas Fonseca
9f3456c872 Add support for parsing space separated CSS class attribute values
Sequentially apply style for stuff like class="class1 class2".
2006-06-06 15:21:56 +02:00
Witold Filipczyk
a558fe67b9 OnClick test 2006-04-30 16:56:40 +02:00
Miciah Dashiel Butler Masters
a464157d4d SEE & SMJS: document.write(ln): use all arguments
Additionally add a test to test/ecmascript/document_write.html.

Thanks to Kirk Reiser for observing that ELinks only printed the first.
2006-02-12 04:33:42 +00:00
Jonas Fonseca
03c467bcbf Move URI normalization to the test library 2006-01-28 15:03:19 +01:00
7a6a5918fe Test file for document.write 2006-01-27 16:55:41 +01:00
Laurent MONIN
61e07bf6ba Add a css media test file (see bug 722). 2006-01-14 01:56:22 +01:00
witekfl
d8592e4f99 Alternative experimental ECMAScript engine. 2006-01-10 19:17:29 +01:00
Jonas Fonseca
b1514c7a35 Check if the test 'trash' directory could be entered
Original patch by Alex Riesen <raa.lkml@gmail.com> for GIT.
2006-01-06 17:46:55 +01:00
Jonas Fonseca
23f0085842 Move src/dom/test/libtest test/libtest.sh, put path to it in TEST_LIB 2006-01-03 00:34:10 +01:00
Jonas Fonseca
021af4e87c Although aware ELinks doesn't need another sgml/doctype here is DocBook
It was created a long time ago so (I think) it deserves to survive. It
maps .sgml files to applicatino/docbook+xml and uses the highlighter.
2006-01-01 23:22:10 +01:00
Jonas Fonseca
9a0bf83756 Add basic stuff for XBEL parsing/highlighting using the DOM engine 2005-12-30 22:19:32 +01:00
Jonas Fonseca
66248849cd Add an RSS test file 2005-12-30 22:18:22 +01:00
Laurent MONIN
0fed31e6bd Add a file for script types testing. 2005-11-02 16:55:15 +01:00
Laurent MONIN
80af673860 More sub/sup tests. 2005-10-19 23:05:41 +02:00
Petr Baudis
06ea255a22 Convert part of the build to the new build system
The root makefile is converted as well as some leaf Makefiles. This
also brings in the required infrastructure and adjusts configure.in
appropriately.

I converted only makefiles containing no configurable stuff, since
that'll require more consideration yet.
2005-09-15 21:03:56 +02:00
Jonas Fonseca
7462f22635 Remove now obsolete .cvsignore files. 2005-09-15 18:33:20 +02:00
Petr Baudis
0f6d4310ad Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00