OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("This tests checks that all of the input values for obje
ct-fit parse correctly."); | 8 description("This tests checks that all of the input values for obje
ct-fit parse correctly."); |
9 | 9 |
10 function test(value) | 10 function test(value) |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 shouldBe('testComputedStyle(";")', '"fill"'); | 32 shouldBe('testComputedStyle(";")', '"fill"'); |
33 shouldBe('test("object-fit: inherit;")', '"inherit"'); | 33 shouldBe('test("object-fit: inherit;")', '"inherit"'); |
34 shouldBe('test("object-fit: initial;")', '"initial"'); | 34 shouldBe('test("object-fit: initial;")', '"initial"'); |
35 shouldBe('test("object-fit: fill;")', '"fill"'); | 35 shouldBe('test("object-fit: fill;")', '"fill"'); |
36 shouldBe('test("object-fit: contain;")', '"contain"'); | 36 shouldBe('test("object-fit: contain;")', '"contain"'); |
37 shouldBe('test("object-fit: cover;")', '"cover"'); | 37 shouldBe('test("object-fit: cover;")', '"cover"'); |
38 shouldBe('test("object-fit: none;")', '"none"'); | 38 shouldBe('test("object-fit: none;")', '"none"'); |
39 shouldBe('test("object-fit: scale-down;")', '"scale-down"'); | 39 shouldBe('test("object-fit: scale-down;")', '"scale-down"'); |
40 | 40 |
41 shouldBeNull('test("object-fit: fill contain;")'); | 41 shouldBeEqualToString('test("object-fit: fill contain;")', ''); |
42 shouldBeNull('test("object-fit: bananas;")'); | 42 shouldBeEqualToString('test("object-fit: bananas;")', ''); |
43 shouldBeNull('test("object-fit: 23px;")'); | 43 shouldBeEqualToString('test("object-fit: 23px;")', ''); |
44 shouldBeNull('test("object-fit: 20%;")'); | 44 shouldBeEqualToString('test("object-fit: 20%;")', ''); |
45 </script> | 45 </script> |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |