| OLD | NEW |
| 1 Color test for resources/css-parsing-tests/color3.json | 1 Color test for resources/css-parsing-tests/color3.json |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS colorTest.parseColor("") is "parse error" | 6 PASS colorTest.parseColor("") is "parse error" |
| 7 PASS colorTest.parseColor(" /* hey */\n") is "parse error" | 7 PASS colorTest.parseColor(" /* hey */\n") is "parse error" |
| 8 FAIL colorTest.parseColor("4") should be parse error. Was rgb(0, 0, 4). | 8 FAIL colorTest.parseColor("4") should be parse error. Was rgb(0, 0, 4). |
| 9 PASS colorTest.parseColor("top") is "parse error" | 9 PASS colorTest.parseColor("top") is "parse error" |
| 10 PASS colorTest.parseColor("/**/transparent") is "rgba(0, 0, 0, 0)" | 10 PASS colorTest.parseColor("/**/transparent") is "rgba(0, 0, 0, 0)" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 PASS colorTest.parseColor("#ffff") is "parse error" | 27 PASS colorTest.parseColor("#ffff") is "parse error" |
| 28 PASS colorTest.parseColor("#fffff") is "parse error" | 28 PASS colorTest.parseColor("#fffff") is "parse error" |
| 29 PASS colorTest.parseColor("#ffffff") is "rgb(255, 255, 255)" | 29 PASS colorTest.parseColor("#ffffff") is "rgb(255, 255, 255)" |
| 30 PASS colorTest.parseColor("#fffffg") is "parse error" | 30 PASS colorTest.parseColor("#fffffg") is "parse error" |
| 31 PASS colorTest.parseColor("#fffffff") is "parse error" | 31 PASS colorTest.parseColor("#fffffff") is "parse error" |
| 32 PASS colorTest.parseColor("#ffffffff") is "parse error" | 32 PASS colorTest.parseColor("#ffffffff") is "parse error" |
| 33 PASS colorTest.parseColor("#fffffffff") is "parse error" | 33 PASS colorTest.parseColor("#fffffffff") is "parse error" |
| 34 PASS colorTest.parseColor("#FFCc99") is "rgb(255, 204, 153)" | 34 PASS colorTest.parseColor("#FFCc99") is "rgb(255, 204, 153)" |
| 35 PASS colorTest.parseColor("#369") is "rgb(51, 102, 153)" | 35 PASS colorTest.parseColor("#369") is "rgb(51, 102, 153)" |
| 36 PASS colorTest.parseColor("rgb(00, 51, 102)") is "rgb(0, 51, 102)" | 36 PASS colorTest.parseColor("rgb(00, 51, 102)") is "rgb(0, 51, 102)" |
| 37 FAIL colorTest.parseColor("r\\gb(00, 51, 102)") should be rgb(0, 51, 102). Was p
arse error. | 37 PASS colorTest.parseColor("r\\gb(00, 51, 102)") is "rgb(0, 51, 102)" |
| 38 FAIL colorTest.parseColor("r\\67 b(00, 51, 102)") should be rgb(0, 51, 102). Was
parse error. | 38 PASS colorTest.parseColor("r\\67 b(00, 51, 102)") is "rgb(0, 51, 102)" |
| 39 PASS colorTest.parseColor("RGB(153, 204, 255)") is "rgb(153, 204, 255)" | 39 PASS colorTest.parseColor("RGB(153, 204, 255)") is "rgb(153, 204, 255)" |
| 40 PASS colorTest.parseColor("rgB(0, 0, 0)") is "rgb(0, 0, 0)" | 40 PASS colorTest.parseColor("rgB(0, 0, 0)") is "rgb(0, 0, 0)" |
| 41 PASS colorTest.parseColor("rgB(0, 51, 255)") is "rgb(0, 51, 255)" | 41 PASS colorTest.parseColor("rgB(0, 51, 255)") is "rgb(0, 51, 255)" |
| 42 PASS colorTest.parseColor("rgb(0,51,255)") is "rgb(0, 51, 255)" | 42 PASS colorTest.parseColor("rgb(0,51,255)") is "rgb(0, 51, 255)" |
| 43 PASS colorTest.parseColor("rgb(0 , 51 ,255)") is "rgb(0, 51, 255)" | 43 PASS colorTest.parseColor("rgb(0 , 51 ,255)") is "rgb(0, 51, 255)" |
| 44 PASS colorTest.parseColor("rgb(/* R */0, /* G */51, /* B */255)") is "rgb(0, 51,
255)" | 44 PASS colorTest.parseColor("rgb(/* R */0, /* G */51, /* B */255)") is "rgb(0, 51,
255)" |
| 45 FAIL colorTest.parseColor("rgb(-51, 306, 0)") should be rgb(-51, 306, 0). Was rg
b(0, 255, 0). | 45 FAIL colorTest.parseColor("rgb(-51, 306, 0)") should be rgb(-51, 306, 0). Was rg
b(0, 255, 0). |
| 46 FAIL colorTest.parseColor("rgb(42%, 3%, 50%)") should be rgb(107, 7, 127). Was r
gb(107, 7, 128). | 46 FAIL colorTest.parseColor("rgb(42%, 3%, 50%)") should be rgb(107, 7, 127). Was r
gb(107, 7, 128). |
| 47 PASS colorTest.parseColor("RGB(100%, 100%, 100%)") is "rgb(255, 255, 255)" | 47 PASS colorTest.parseColor("RGB(100%, 100%, 100%)") is "rgb(255, 255, 255)" |
| 48 PASS colorTest.parseColor("rgB(0%, 0%, 0%)") is "rgb(0, 0, 0)" | 48 PASS colorTest.parseColor("rgB(0%, 0%, 0%)") is "rgb(0, 0, 0)" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 PASS colorTest.parseColor("hsla()") is "parse error" | 126 PASS colorTest.parseColor("hsla()") is "parse error" |
| 127 PASS colorTest.parseColor("hsla(0)") is "parse error" | 127 PASS colorTest.parseColor("hsla(0)") is "parse error" |
| 128 PASS colorTest.parseColor("hsla(0, 0%)") is "parse error" | 128 PASS colorTest.parseColor("hsla(0, 0%)") is "parse error" |
| 129 PASS colorTest.parseColor("hsla(0, 0%, 0%, 50%)") is "parse error" | 129 PASS colorTest.parseColor("hsla(0, 0%, 0%, 50%)") is "parse error" |
| 130 PASS colorTest.parseColor("hsla(0, 0%, 0%, 1, 0%)") is "parse error" | 130 PASS colorTest.parseColor("hsla(0, 0%, 0%, 1, 0%)") is "parse error" |
| 131 PASS colorTest.parseColor("cmyk(0, 0, 0, 0)") is "parse error" | 131 PASS colorTest.parseColor("cmyk(0, 0, 0, 0)") is "parse error" |
| 132 PASS successfullyParsed is true | 132 PASS successfullyParsed is true |
| 133 | 133 |
| 134 TEST COMPLETE | 134 TEST COMPLETE |
| 135 | 135 |
| OLD | NEW |