summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Update for new API for media queries.Michael Drake2019-05-041-13/+14
| | | | Signed-off-by: Michael Drake <Michael Drake tlsa@netsurf-browser.org>
* Tests: fix illegal display value test.John-Mark Bell2019-03-101-1/+1
| | | | | | | | | Recovery from malformed property values involves matching the various nesting mechanisms. Thanks to the bug in the parseAny state machine, this code was never run. The test data contained mismatched open parentheses, causing the recovery logic to continue reading until EOF. Fix the test input to match the expectations of the test assertions.
* Media Queries: API for stylesheet import doesn't take media now.Michael Drake2019-03-102-6/+2
|
* Tests: Passing NULL to memcmp is undefined.Michael Drake2018-07-281-1/+2
| | | | test/parse2-auto.c:222:39: runtime error: null pointer passed as argument 2, which is declared to never be null
* Tests: Fix undefined behaviour in css_fixed printing.Michael Drake2018-07-281-1/+1
| | | | test/number.c:137:22: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself
* Tests: add tests for new length units.Lucas Neves2017-11-135-0/+2550
|
* Tests: Fixes sizing of font-size: smaller in selection test.Lucas Neves2017-10-212-2/+2
|
* Tests: Remove invalid lines from selection test.Lucas Neves2017-10-211-4/+0
|
* Fixes use of spaces instead of tabs for whitespace.Lucas Neves2017-10-211-61/+61
|
* Tests: Add support and selection tests for the flexbox properties.Lucas Neves2017-10-212-0/+6490
|
* Tests: Add support and parsing tests for the flexbox properties.Lucas Neves2017-10-213-15/+1933
|
* Unit tests: Add non-integer NUMBER parsing test.Michael Drake2017-09-201-0/+8
|
* Strip trailing whitespace.Michael Drake2017-09-0411-222/+222
|
* Tests: Add box-sizing selection tests.Michael Drake2017-04-271-0/+200
|
* Tests: Dump box-sizing property in selection tests.Michael Drake2017-04-272-0/+69
|
* Tests: Add parser tests for box-sizing.Michael Drake2017-04-271-0/+33
|
* Tests: Add support for dumping the box-sizing property.Michael Drake2017-04-271-0/+11
|
* Tests: Add box-sizing bytecode unit tests.Michael Drake2017-04-271-0/+58
|
* Remove option to support not storing data on DOM nodes.Michael Drake2016-11-195-31/+14
| | | | It was complicating lifetimes and ownership.
* Intern partial styles.Michael Drake2016-11-191-1/+4
| | | | | Note this changes the public API. We can't compose directly over child style now, since it may be interned.
* After composing styles, intern the result in the style sharing arena.Michael Drake2016-11-191-1/+1
| | | | | Note this changes the API. Selection tests updated.
* Change how presentational hints are handled.Michael Drake2016-02-021-6/+7
| | | | | | | | | | | | | | | Previously, we performed normal selection from CSS sources, and then iterated over all the properties in the populated computed style. If the properties were unset or their values were not from either a UA stylesheet or user stylesheet with !important set, then we asked the client program (e.g. NetSurf) if there were any presentational hints for that node, for each such property. In the worst case this triggered N_PROPERTIES * N_NODES calls back to the client program, even for properties that can't be set via HTML attributes. The new API asks the client to supply a list of all the presentational hints that apply to the given node. For most nodes on modern documents, this is 0. Any presentational hints are applied before selection from CSS sources.
* Testutils: undef assert before useJohn-Mark Bell2015-07-181-0/+1
|
* Fix build with gcc2.Adrien Destugues2015-03-211-3/+4
|
* Implement absolutification for column-rule-width.Michael Drake2015-01-101-47/+47
|
* Sync public getter wrapper's absolutification handling.Michael Drake2015-01-101-111/+111
|
* Ensure letter and word spacing are always absolutified.Michael Drake2015-01-021-32/+32
|
* Fix up test data.Michael Drake2014-12-311-1551/+1551
|
* Make it compose styles.Michael Drake2014-12-311-6/+37
|
* Add break-* property selection tests.Michael Drake2014-12-291-0/+309
|
* Dump break-* properties from computed styles, and update test data.Michael Drake2014-12-292-0/+240
|
* Add test case.Michael Drake2014-12-291-2/+102
|
* Update test data for uncommon property default value fixes.Michael Drake2014-12-291-122/+122
|
* Add test for column-* properties.Michael Drake2014-12-061-44/+143
|
* Add column-width to computed style dumping, and update test data.Michael Drake2014-12-062-0/+70
|
* Add column-span to computed style dump and update test data.Michael Drake2014-12-062-0/+62
|
* Add column-rule-width to computed style dump, and update unit tests.Michael Drake2014-11-162-0/+76
|
* Add column-rule-style to computed style dumper, and update unit tests.Michael Drake2014-11-162-0/+86
|
* Fix column-fill computed style offset.Michael Drake2014-11-161-22/+22
|
* Add column-rule-color to computed style dumper and update unit tests.Michael Drake2014-11-152-0/+60
|
* Add column-gap dumping to test rig, and update test data.Michael Drake2014-11-072-0/+70
|
* Add dumping of column-fill property to selection test rig. Update test data.Michael Drake2014-11-072-0/+62
|
* Improve output when selection test fails.Michael Drake2014-10-041-0/+38
| | | | Makes it easier to spot where the difference is.
* Update computed style dumper to dump column-count, and update test data.Michael Drake2014-10-042-3/+66
|
* Improve src/parse/important.c coverage to 98.4%Michael Drake2014-07-242-0/+449
|
* Add support for CSS3 overflow-x and overflow-y properties.Michael Drake2014-06-016-58/+262
| | | | | | | | Now, overflow is a shorthand property setting both overflow-x and overflow-y. The getter for the computed overflow has been removed, and replaced with two for overflow-x and overflow-y.
* print size_t values in a portable wayDavid Tardon2014-01-131-5/+7
| | | | Signed-off-by: John-Mark Bell <jmb@netsurf-browser.org>
* Update for new lpu API.Michael Drake2013-12-142-19/+2
|
* Various changes which modify API and ABI:Michael Drake2013-12-1312-1731/+119
| | | | | | | | | - Remove client allocation function. - Change node_classes callback not to yield array ownership to libcss. - Node bloom filters now built by, during selection libcss. - Added selection callbacks to get and set data on document nodes. Test suite, example, and documentation updated to match.
* Add selection test using bloom filter.Michael Drake2013-12-013-1/+1633
|