| OLD | NEW |
| (Empty) |
| 1 SVG 1.1 dynamic animation tests | |
| 2 | |
| 3 Tests animation on 'currentColor'. | |
| 4 | |
| 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 6 | |
| 7 | |
| 8 | |
| 9 Initial condition: | |
| 10 PASS document.defaultView.getComputedStyle(rect).getPropertyValue('fill') is "#f
f0000" | |
| 11 PASS (fillPaint = document.defaultView.getComputedStyle(rect).getPropertyCSSValu
e('fill')).toString() is "[object SVGPaint]" | |
| 12 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR | |
| 13 PASS fillPaint.uri is "" | |
| 14 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_CURRENTCOLOR | |
| 15 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | |
| 16 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 255 | |
| 17 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | |
| 18 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | |
| 19 | |
| 20 Half-time condition: | |
| 21 PASS document.defaultView.getComputedStyle(rect).getPropertyValue('fill') is "#8
04000" | |
| 22 PASS (fillPaint = document.defaultView.getComputedStyle(rect).getPropertyCSSValu
e('fill')).toString() is "[object SVGPaint]" | |
| 23 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR | |
| 24 PASS fillPaint.uri is "" | |
| 25 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_CURRENTCOLOR | |
| 26 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | |
| 27 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | |
| 28 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 64 | |
| 29 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | |
| 30 | |
| 31 End condition: | |
| 32 PASS document.defaultView.getComputedStyle(rect).getPropertyValue('fill') is "#0
08000" | |
| 33 PASS (fillPaint = document.defaultView.getComputedStyle(rect).getPropertyCSSValu
e('fill')).toString() is "[object SVGPaint]" | |
| 34 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR | |
| 35 PASS fillPaint.uri is "" | |
| 36 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_CURRENTCOLOR | |
| 37 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | |
| 38 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | |
| 39 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | |
| 40 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | |
| 41 PASS successfullyParsed is true | |
| 42 | |
| 43 TEST COMPLETE | |
| 44 | |
| OLD | NEW |