| OLD | NEW |
| (Empty) |
| 1 description("This test ensures that objects RGBColor objects return the correct
values."); | |
| 2 | |
| 3 var element = document.createElement('div'); | |
| 4 document.documentElement.appendChild(element); | |
| 5 element.style.color = "rgb(10, 20, 30)"; | |
| 6 | |
| 7 shouldBe("window.getComputedStyle(element, '').getPropertyCSSValue('color').getR
GBColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "10"); | |
| 8 shouldBe("window.getComputedStyle(element, '').getPropertyCSSValue('color').getR
GBColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "20"); | |
| 9 shouldBe("window.getComputedStyle(element, '').getPropertyCSSValue('color').getR
GBColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "30"); | |
| OLD | NEW |