aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/NetscapeBookmarkUtils/BookmarkImportTest.php
Commit message (Collapse)AuthorAgeFilesLines
* namespacing: \Shaarli\Netscape\NetscapeBookmarkUtilsVirtualTam2019-01-121-657/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-0/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\HistoryVirtualTam2019-01-121-0/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Ignore the case while checking DOCTYPE during the file importArthurHoaro2018-02-231-0/+15
| | | | Fixes #1091
* Don't write History for link importArthurHoaro2017-10-071-43/+38
| | | | | | | | | | With large imports it has a large impact on performances and isn't really useful. Instead, write an IMPORT event, which let client using the history service resync its DB. -> 15k link import done in 6 seconds. Fixes #985
* Add history entries for API endpointArthurHoaro2017-05-071-2/+2
| | | | CHANGED: datetime is now store as an object in history store file
* History mechanismArthurHoaro2017-03-211-17/+64
| | | | | | | | | | | Use case: rest API service * saved by default in data/history * same format as datastore.php * traced events: * save/edit/delete link * change settings or plugins settings * rename tag
* Fix namespace issueArthurHoaro2017-03-101-0/+1
|
* Link imports are now logged in `data/` folder, and can be debug using ↵ArthurHoaro2017-03-101-17/+24
| | | | | | `dev.debug=true` setting related to #741 and #681
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-13/+13
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Unit Test for the new ID systemArthurHoaro2016-12-121-51/+95
|
* Fix: ensure Internet Explorer bookmark dumps can be importedVirtualTam2016-08-121-0/+28
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Refactor bookmark import using a generic Netscape parserVirtualTam2016-08-101-0/+518
Relates to #607 Relates to #608 Relates to #493 (abandoned) Additions: - use Composer's autoload to load 3rd-party dependencies under vendor/ Modifications: - [import] replace the current parser with a generic, stable parser - move code to application/NetscapeBookmarkUtils - improve status report after parsing - [router] use the same endpoint for both bookmark upload and import dialog - [template] update bookmark import options - allow adding tags to all imported links - allow selecting the visibility (privacy) of imported links - [tests] ensure bookmarks are properly parsed and imported in the LinkDB - reuse reference input from the parser's test data See: - https://github.com/shaarli/netscape-bookmark-parser - https://getcomposer.org/doc/01-basic-usage.md#autoloading Signed-off-by: VirtualTam <virtualtam@flibidi.net>