jvoisin
cc35e5b0e5
test: cover children traversals with duplicate source nodes
...
A Selection's Nodes field is exported, so callers can build a selection that
holds the same node more than once. Add a regression test asserting that
Children, ChildrenFiltered and Contents deduplicate the shared child set
rather than returning it once per duplicate source node.
2026-06-01 09:11:37 +02:00
Martin Angers
b91267330e
add tests and benchmark for appendWithoutDuplicates optimization
2016-08-28 11:03:18 -04:00
Martin Angers
2ab590df05
use a failing matcher if selector fails to compile, adjust tests
2016-06-15 09:27:17 -04:00
Martin Angers
9cc531274b
implement tests for selection methods with invalid selector strings
2016-06-15 08:42:27 -04:00
Martin Angers
409e94058f
make test assert helpers private
2014-11-07 09:20:20 -05:00
Martin Angers
d247f5b79a
add test for issue #26 , cannot reproduce
2013-11-12 12:34:21 -05:00
Martin Angers
6948b1bfac
finalize tests and benchmarks for v0.2
2012-11-11 21:26:27 -05:00
Martin Angers
f98d0dce50
add tests for closest with selector
2012-11-10 20:57:04 -05:00
Martin Angers
6669ef001f
remove Document.Root, Document is itself a Selection (using embedded struct)
2012-10-14 12:28:27 -04:00
Martin Angers
d5e9341ca1
add PrevFilteredUntil...() with tests
2012-09-10 10:04:00 -04:00
Martin Angers
2fc9009621
add NextFilteredUntil...() with tests
2012-09-10 09:09:32 -04:00
Martin Angers
5da274a53d
add NextUntil...() with tests
2012-09-06 14:40:15 -04:00
Martin Angers
eea8ab69ed
add PrevUntilSelection() and PrevUntilNodes() with tests
2012-09-06 10:57:54 -04:00
Martin Angers
7dcaa4213b
add PrevUntil() with tests
2012-09-06 10:39:30 -04:00
Martin Angers
bf960f0855
fix order for prevAll
2012-09-06 09:20:24 -04:00
Martin Angers
454e21b28a
finalize End() tests
2012-09-05 10:06:52 -04:00
Martin Angers
af4a62048b
add PrevAll() and PrevAllFiltered() with tests
2012-09-04 13:44:20 -04:00
Martin Angers
9394a923e0
add Prev() and PrevFiltered() with tests
2012-09-04 13:06:03 -04:00
Martin Angers
ed3b9aca8a
add Next() and NextFiltered() with tests
2012-09-04 12:07:59 -04:00
Martin Angers
ff0cbc32c4
add SiblingsFiltered() and tests
2012-09-04 11:20:20 -04:00
Martin Angers
b26e37d262
add Siblings() with tests
2012-09-04 11:15:09 -04:00
Martin Angers
f461c82030
add ParentsFilteredUntil...() with tests
2012-09-04 10:58:44 -04:00
Martin Angers
d03482bacd
add ParentsUntil...() with tests
2012-09-04 10:39:59 -04:00
Martin Angers
cfa964cff5
add Parents() and ParentsFiltered(), with tests
2012-09-04 10:11:00 -04:00
Martin Angers
01f04bca8b
add Parent() and ParentFiltered(), refactor tests using Asserts...()
2012-09-04 09:52:19 -04:00
Martin Angers
6e1e76af6b
refactor Document to make Root a Selection, with all API available
2012-09-02 14:45:50 -04:00
Martin Angers
bae24062b4
add Contents() and Children() with tests.
2012-09-02 14:07:18 -04:00
Martin Angers
3631dc402c
fix Find() so that is searches only descendents
2012-09-01 20:00:44 -04:00
Martin Angers
d17b003dc8
fix tests after reorganization
2012-08-30 17:38:51 -04:00
Martin Angers
de74d0bf97
reorganize code in what seems like a sane structure
2012-08-30 17:35:41 -04:00