aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/NetscapeBookmarkUtils/input
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-08-12 23:22:15 +0200
committerArthurHoaro <arthur@hoa.ro>2016-11-05 14:29:52 +0100
commitc019d62970a5b618f44ac858b990b573645bd714 (patch)
tree789bb2047f008993f08b3854855d01aeeb67decf /tests/NetscapeBookmarkUtils/input
parent24d8f65abea2c1251e250089f20e89034454926d (diff)
downloadShaarli-c019d62970a5b618f44ac858b990b573645bd714.tar.gz
Shaarli-c019d62970a5b618f44ac858b990b573645bd714.tar.zst
Shaarli-c019d62970a5b618f44ac858b990b573645bd714.zip
Fix: ensure Internet Explorer bookmark dumps can be imported
Relates to https://github.com/shaarli/Shaarli/issues/607 Modifications: - [application][tests] NetscapeBookmarkUtils: more permissive doctype detection The IE bookmark exports contain extra escape sequences, which can be observed by binary comparison of the reference input data used in tests: $ cmp -b -l -n 8 netscape_basic.htm internet_explorer_encoding.htm 1 74 < 357 M-o 2 41 ! 273 M-; 3 104 D 277 M-? 4 117 O 74 < 5 103 C 41 ! 6 124 T 104 D 7 131 Y 117 O 8 120 P 103 C Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/NetscapeBookmarkUtils/input')
-rw-r--r--tests/NetscapeBookmarkUtils/input/internet_explorer_encoding.htm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/NetscapeBookmarkUtils/input/internet_explorer_encoding.htm b/tests/NetscapeBookmarkUtils/input/internet_explorer_encoding.htm
new file mode 100644
index 00000000..18703cf6
--- /dev/null
+++ b/tests/NetscapeBookmarkUtils/input/internet_explorer_encoding.htm
@@ -0,0 +1,9 @@
1<!DOCTYPE NETSCAPE-Bookmark-file-1>
2<!-- This is an automatically generated file.
3It will be read and overwritten.
4Do Not Edit! -->
5<TITLE>Bookmarks</TITLE>
6<H1>Bookmarks</H1>
7<DL><p>
8 <DT><A HREF="http://hginit.com/" ADD_DATE="1466271584" LAST_VISIT="1466271584" LAST_MODIFIED="1466271584" >Hg Init a Mercurial tutorial by Joel Spolsky</A>
9</DL><p>