OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 | 9 |
10 description("Verify that the priority parameter is a case-insensitive match to '
important' or the empty string."); | 10 description("Verify that the priority parameter is a case-insensitive match to '
important' or the empty string."); |
(...skipping 19 matching lines...) Expand all Loading... |
30 e.style.borderBottomStyle = ""; | 30 e.style.borderBottomStyle = ""; |
31 e.style.setProperty("border-bottom-style", "solid", "impORTANT"); | 31 e.style.setProperty("border-bottom-style", "solid", "impORTANT"); |
32 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'"); | 32 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'"); |
33 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'"); | 33 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'"); |
34 | 34 |
35 e.style.borderBottomStyle = ""; | 35 e.style.borderBottomStyle = ""; |
36 e.style.setProperty("border-bottom-style", "solid", "random"); | 36 e.style.setProperty("border-bottom-style", "solid", "random"); |
37 shouldBe("e.style.getPropertyValue('border-bottom-style')", "null"); | 37 shouldBe("e.style.getPropertyValue('border-bottom-style')", "null"); |
38 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''"); | 38 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''"); |
39 | 39 |
| 40 e.style.borderBottomStyle = ""; |
| 41 e.style.setProperty("border-bottom-style", "solid", "undefined"); |
| 42 shouldBe("e.style.getPropertyValue('border-bottom-style')", "null"); |
| 43 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''"); |
| 44 |
| 45 e.style.borderBottomStyle = ""; |
| 46 e.style.setProperty("border-bottom-style", "solid", undefined); |
| 47 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'"); |
| 48 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''"); |
| 49 |
40 document.body.removeChild(testContainer); | 50 document.body.removeChild(testContainer); |
41 </script> | 51 </script> |
42 </body> | 52 </body> |
43 </html> | 53 </html> |
OLD | NEW |