OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <script> | 3 <script> |
4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
5 layoutTestController.dumpAsText(); | 5 layoutTestController.dumpAsText(); |
6 | 6 |
7 var stopElement = document.createElementNS("http://www.w3.org/2000/s
vg", "stop"); | 7 var stopElement = document.createElementNS("http://www.w3.org/2000/s
vg", "stop"); |
8 stopElement.style.stopColor = "blue"; | 8 stopElement.style.stopColor = "blue"; |
9 | 9 |
10 var colorString = "rgb(00000000000000000000"; | 10 var colorString = "rgb(00000000000000000000"; |
11 var e; | 11 var e; |
12 try { | 12 try { |
13 stopElement.style.getPropertyCSSValue("stop-color").setRGBColor(
colorString); | 13 stopElement.style.getPropertyCSSValue("stop-color").setRGBColor(
colorString); |
14 } catch (err) { | 14 } catch (err) { |
15 e = err; | 15 e = err; |
16 } | 16 } |
17 | 17 |
18 document.body.innerHTML = (e && e.SVG_INVALID_VALUE_ERR == 1) ? "PAS
S" : "FAIL"; | 18 document.body.innerHTML = (e && e.SVG_INVALID_VALUE_ERR == 1) ? "PAS
S" : "FAIL"; |
19 </script> | 19 </script> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |