From 99a8b8af0059569beae3f1f3c0d16ffbebddbf2b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 24 Jul 2014 13:05:29 +0100 Subject: Improve src/parse/important.c coverage to 98.4% --- test/data/parse/properties.dat | 441 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 441 insertions(+) (limited to 'test/data/parse/properties.dat') diff --git a/test/data/parse/properties.dat b/test/data/parse/properties.dat index 4716929..7fcf137 100644 --- a/test/data/parse/properties.dat +++ b/test/data/parse/properties.dat @@ -122,6 +122,30 @@ | 0x009c0000 #reset +#data +* { azimuth: behind !important; } +#errors +#expected +| 1 * +| 0x00900400 +#reset + +#data +* { azimuth: behind far-right !important; } +#errors +#expected +| 1 * +| 0x009c0400 +#reset + +#data +* { azimuth: far-right behind !important; } +#errors +#expected +| 1 * +| 0x009c0400 +#reset + #data * { azimuth: far-right; } #errors @@ -378,6 +402,14 @@ | 0x00a00004 0x00002800 0x00000100 #reset +#data +* { background-position: 10% 20% !important; } +#errors +#expected +| 1 * +| 0x02200404 0x00002800 0x00000100 0x00005000 0x00000100 +#reset + ## ## 05 - background-repeat ## @@ -462,6 +494,30 @@ | 0x02000007 0x00000c00 0x00000000 0x00000a00 0x00000002 #reset +#data +* { border-spacing: 3em !important; } +#errors +#expected +| 1 * +| 0x02000407 0x00000c00 0x00000002 0x00000c00 0x00000002 +#reset + +#data +* { border-spacing: 2.5em 2.5em !important; } +#errors +#expected +| 1 * +| 0x02000407 0x00000a00 0x00000002 0x00000a00 0x00000002 +#reset + +#data +* { border-spacing: 3px 2.5em !important; } +#errors +#expected +| 1 * +| 0x02000407 0x00000c00 0x00000000 0x00000a00 0x00000002 +#reset + ## ## 08 - border-top-color ## 09 - border-right-color @@ -779,6 +835,54 @@ | 0x02000017 0x00000000 0x00000000 0x00037000 0x00000000 0x000006cd 0x00000002 0x00000000 0x00000000 #reset +#data +* { clip: auto !important; } +#errors +#expected +| 1 * +| 0x00000417 +#reset + +#data +* { clip: rect(10px, auto, auto, 10px) !important; } +#errors +#expected +| 1 * +| 0x02c00417 0x00002800 0x00000000 0x00002800 0x00000000 +#reset + +#data +* { clip: rect(auto, auto, auto, auto) !important; } +#errors +#expected +| 1 * +| 0x03e00417 +#reset + +#data +* { clip: rect(1px, 2px, 3px, 4px) !important; } +#errors +#expected +| 1 * +| 0x02000417 0x00000400 0x00000000 0x00000800 0x00000000 0x00000c00 0x00000000 0x00001000 0x00000000 +#reset + +#data +* { clip: rect(auto 1em 1em auto) !important; } +#errors +#expected +| 1 * +| 0x03200417 0x00000400 0x00000002 0x00000400 0x00000002 +#reset + +#data +* { clip: rect(0px, 220px, 1.7em, 0px) !important } +#errors +#expected +| 1 * +| 0x02000417 0x00000000 0x00000000 0x00037000 0x00000000 0x000006cd 0x00000002 0x00000000 0x00000000 +#reset + ## ## 18 - color ## @@ -927,6 +1031,126 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x00080019 0x00000081 PTR(http://picodrive.acornarcade.com/) 0x00000080 PTR( : ) 0x00000084 PTR(name) 0x00000080 PTR( ) 0x00000382 PTR(x) 0x00000080 PTR(.) 0x00000383 PTR(y) PTR(.) 0x00000003 0x00000000 #reset +#data +p:after { content: normal !important; } +#errors +#expected +| 1 p:after +| 0x00000419 +#reset + +#data +p:after { content: none !important; } +#errors +#expected +| 1 p:after +| 0x00040419 +#reset + +#data +p:before { content: open-quote !important; } +#errors +#expected +| 1 p:before +| 0x00080419 0x00000000 +#reset + +#data +p:after { content: close-quote !important; } +#errors +#expected +| 1 p:after +| 0x000c0419 0x00000000 +#reset + +#data +p:before { content: no-open-quote !important; } +#errors +#expected +| 1 p:before +| 0x00100419 0x00000000 +#reset + +#data +p:after { content: no-close-quote !important; } +#errors +#expected +| 1 p:after +| 0x00140419 0x00000000 +#reset + +#data +a:after { content: " a" !important; } +#errors +#expected +| 1 a:after +| 0x02000419 PTR( a) 0x00000000 +#reset + +#data +p:after { content: url("http://www.netsurf-browser.org/") !important; } +#errors +#expected +| 1 p:after +| 0x02040419 PTR(http://www.netsurf-browser.org/) 0x00000000 +#reset + +#data +p:after { content: counter(n) !important; } +#errors +#expected +| 1 p:after +| 0x0e080419 PTR(n) 0x00000000 +#reset + +#data +p:after { content: counter(n, upper-roman) !important; } +#errors +#expected +| 1 p:after +| 0x1a080419 PTR(n) 0x00000000 +#reset + +#data +p:after { content: counters(n, ".") !important; } +#errors +#expected +| 1 p:after +| 0x0e0c0419 PTR(n) PTR(.) 0x00000000 +#reset + +#data +p:after { content: counters(n, '.', disc) !important; } +#errors +#expected +| 1 p:after +| 0x020c0419 PTR(n) PTR(.) 0x00000000 +#reset + +#data +p:after { content: attr(name) !important; } +#errors +#expected +| 1 p:after +| 0x02100419 PTR(name) 0x00000000 +#reset + +#data +h2:before { content: "Chapter " counter(chapters) ': \'' !important; } +#errors +#expected +| 1 h2:before +| 0x02000419 PTR(Chapter ) 0x00000382 PTR(chapters) 0x00000080 PTR(: ') 0x00000000 +#reset + +#data +p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " attr(name) " " counter(x) "." counters(y, ".") close-quote !important; } +#errors +#expected +| 1 p:before +| 0x00080419 0x00000081 PTR(http://picodrive.acornarcade.com/) 0x00000080 PTR( : ) 0x00000084 PTR(name) 0x00000080 PTR( ) 0x00000382 PTR(x) 0x00000080 PTR(.) 0x00000383 PTR(y) PTR(.) 0x00000003 0x00000000 +#reset + ## ## 1a - counter-increment ## @@ -979,6 +1203,54 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0200001a PTR(moose) 0x00000400 0x00000080 PTR(a) 0x00000400 0x00000000 #reset +#data +* { counter-increment: none !important; } +#errors +#expected +| 1 * +| 0x0000041a +#reset + +#data +* { counter-increment: a !important; } +#errors +#expected +| 1 * +| 0x0200041a PTR(a) 0x00000400 0x00000000 +#reset + +#data +* { counter-increment: moose 10 !important; } +#errors +#expected +| 1 * +| 0x0200041a PTR(moose) 0x00002800 0x00000000 +#reset + +#data +* { counter-increment: a moose 10 !important; } +#errors +#expected +| 1 * +| 0x0200041a PTR(a) 0x00000400 0x00000080 PTR(moose) 0x00002800 0x00000000 +#reset + +#data +* { counter-increment: a 2 moose !important; } +#errors +#expected +| 1 * +| 0x0200041a PTR(a) 0x00000800 0x00000080 PTR(moose) 0x00000400 0x00000000 +#reset + +#data +* { counter-increment: moose a !important; } +#errors +#expected +| 1 * +| 0x0200041a PTR(moose) 0x00000400 0x00000080 PTR(a) 0x00000400 0x00000000 +#reset + ## ## 1b - counter-reset ## @@ -1219,6 +1491,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0200001e PTR(cursor.png) 0x00000003 #reset +#data +* { cursor: url(cursor.png), pointer !important; } +#errors +#expected +| 1 * +| 0x0200041e PTR(cursor.png) 0x00000003 +#reset + #data * { cursor: url(cursor.svg), url(cursor.png), pointer; } #errors @@ -1455,6 +1735,22 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000021 0x00000324 0x00000202 #reset +#data +* { elevation: lower !important; } +#errors +#expected +| 1 * +| 0x00100421 +#reset + +#data +* { elevation: 45deg !important; } +#errors +#expected +| 1 * +| 0x02000421 0x0000b400 0x00000200 +#reset + ## ## 22 - empty-cells ## @@ -1911,6 +2207,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0200002b 0x00000152 0x00000004 #reset +#data +* { letter-spacing: 0.33cm !important; } +#errors +#expected +| 1 * +| 0x0200042b 0x00000152 0x00000004 +#reset + ## ## 2c - line-height ## @@ -1939,6 +2243,22 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0204002c 0x00003000 0x00000005 #reset +#data +* { line-height: 1.2 !important; } +#errors +#expected +| 1 * +| 0x0200042c 0x000004cd +#reset + +#data +* { line-height: 12mm !important; } +#errors +#expected +| 1 * +| 0x0204042c 0x00003000 0x00000005 +#reset + #data * { line-height: 33.33%; } #errors @@ -2202,6 +2522,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000034 0x00019000 0x00000000 #reset +#data +* { max-height: 100px !important; } +#errors +#expected +| 1 * +| 0x02000434 0x00019000 0x00000000 +#reset + #data * { max-height: 50%; } #errors @@ -2765,6 +3093,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000046 0x00019000 #reset +#data +* { pitch-range: 100 !important; } +#errors +#expected +| 1 * +| 0x02000446 0x00019000 +#reset + ## ## 47 - pitch ## @@ -2817,6 +3153,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000047 0x00000000 0x00000800 #reset +#data +* { pitch: 0 !important; } +#errors +#expected +| 1 * +| 0x02000447 0x00000000 0x00000800 +#reset + #data * { pitch: 400Hz; } #errors @@ -2853,6 +3197,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x00040048 #reset +#data +* { play-during: none !important; } +#errors +#expected +| 1 * +| 0x00040448 +#reset + #data * { play-during: url(death_rattle.wav); } #errors @@ -2893,6 +3245,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02800048 PTR(death_rattle.wav) #reset +#data +* { play-during: url(death_rattle.wav) repeat !important; } +#errors +#expected +| 1 * +| 0x02800448 PTR(death_rattle.wav) +#reset + ## ## 49 - position ## @@ -2957,6 +3317,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0200004a PTR(') PTR(') 0x00000080 PTR(") PTR(") 0x00000000 #reset +#data +* { quotes: "'" '\'' '"' '"' !important; } +#errors +#expected +| 1 * +| 0x0200044a PTR(') PTR(') 0x00000080 PTR(") PTR(") 0x00000000 +#reset + ## ## 4b - richness ## @@ -3169,6 +3537,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000051 0x0002f800 #reset +#data +* { speech-rate: 190 !important; } +#errors +#expected +| 1 * +| 0x02000451 0x0002f800 +#reset + ## ## 52 - stress ## @@ -3181,6 +3557,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000052 0x00000000 #reset +#data +* { stress: 0 !important; } +#errors +#expected +| 1 * +| 0x02000452 0x00000000 +#reset + #data * { stress: 50; } #errors @@ -3533,6 +3917,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x001c005a #reset +#data +* { vertical-align: -10% !important; } +#errors +#expected +| 1 * +| 0x0200045a 0xffffd800 0x00000100 +#reset + #data * { vertical-align: -10%; } #errors @@ -3629,6 +4021,22 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0204005c PTR(romeo) 0x00000000 #reset +#data +* { voice-family: child !important; } +#errors +#expected +| 1 * +| 0x000c045c 0x00000000 +#reset + +#data +* { voice-family: romeo !important; } +#errors +#expected +| 1 * +| 0x0204045c PTR(romeo) 0x00000000 +#reset + #data * { voice-family: "juliet"; } #errors @@ -3713,6 +4121,14 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0200005d 0x0000c800 #reset +#data +* { volume: 50 !important; } +#errors +#expected +| 1 * +| 0x0200045d 0x0000c800 +#reset + # dunno if % can be tested here, cos it's a percentage of the inherited value #data * { volume: 33.33%; } @@ -3722,6 +4138,15 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x0204005d 0x00008552 0x00000100 #reset +# dunno if % can be tested here, cos it's a percentage of the inherited value +#data +* { volume: 33.33% !important; } +#errors +#expected +| 1 * +| 0x0204045d 0x00008552 0x00000100 +#reset + ## ## 5e - white-space ## @@ -3846,6 +4271,22 @@ p:before { content: open-quote url('http://picodrive.acornarcade.com/') " : " at | 0x02000062 0x00000800 #reset +#data +* { z-index: auto !important; } +#errors +#expected +| 1 * +| 0x00000462 +#reset + +#data +* { z-index: 2 !important; } +#errors +#expected +| 1 * +| 0x02000462 0x00000800 +#reset + #data * { z-index: -1; } #errors -- cgit v1.2.3