summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Select test runner: Avoid forward declarations.HEADmasterMichael Drake2021-06-161-900/+802
|
* Selection: Don't duplicate unit conversion members in media descriptor.tlsa/unitsMichael Drake2021-05-191-5/+5
|
* Selection: Remove client callback for unit conversion.Michael Drake2021-05-192-191/+140
| | | | | | | Now clients provide a unit conversion context and libcss provides code to perform unit conversion. This reduces the amount of common code that clients have to write.
* Units: Remove units that nobody supports.Michael Drake2021-05-194-48/+6
|
* Add regression test for system font callback units.Michael Drake2021-05-192-1/+143
| | | | Thanks to Ralf Junker.
* bytecode: Change unit representation, so that length has a bit set.Michael Drake2020-11-151-100/+100
| | | | This means that we can use a mask to check the unit class.
* tests: Add test for dodgy media blockDaniel Silverstone2019-12-012-0/+10
| | | | | | | To ensure we don't regress and fail on media blocks which end with selectors with no ruleset, add a test to that effect. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Tests: Add test for non-inherited properties.Michael Drake2019-05-121-0/+128
| | | | | | | These were broken before the uncommon extension block was dropped. Based on test provided by: https://bugs.netsurf-browser.org/mantis/view.php?id=2641
* 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
|