OLD | NEW |
1 <script> | 1 <script> |
2 | 2 |
3 function test() { | 3 function test() { |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 | 6 |
7 var undefined; | 7 var undefined; |
8 | 8 |
9 var features = [ | 9 var features = [ |
10 ["org.w3c.svg", "1.0"], | 10 ["org.w3c.svg", "1.0"], |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 ["http://www.w3.org/TR/SVG11/feature#View", "1.1"], | 62 ["http://www.w3.org/TR/SVG11/feature#View", "1.1"], |
63 ["http://www.w3.org/TR/SVG11/feature#Script", "1.1"], | 63 ["http://www.w3.org/TR/SVG11/feature#Script", "1.1"], |
64 ["http://www.w3.org/TR/SVG11/feature#Animation", "1.1"], | 64 ["http://www.w3.org/TR/SVG11/feature#Animation", "1.1"], |
65 ["http://www.w3.org/TR/SVG11/feature#Font", "1.1"], | 65 ["http://www.w3.org/TR/SVG11/feature#Font", "1.1"], |
66 ["http://www.w3.org/TR/SVG11/feature#BasicFont", "1.1"], | 66 ["http://www.w3.org/TR/SVG11/feature#BasicFont", "1.1"], |
67 ["http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1"]] | 67 ["http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1"]] |
68 | 68 |
69 for (var i = 0; i < features.length; ++i) | 69 for (var i = 0; i < features.length; ++i) |
70 { | 70 { |
71 var item = features[i]; | 71 var item = features[i]; |
72 if (item[1] == "omitted") { | 72 if (item[1] == "omitted") |
73 var hasFeature = document.implementation.hasFeature(item[0]); | 73 var hasFeature = document.implementation.hasFeature(item[0]); |
74 var isSupported = document.body.isSupported(item[0]); | 74 else |
75 } else { | |
76 var hasFeature = document.implementation.hasFeature(item[0], item[1]
); | 75 var hasFeature = document.implementation.hasFeature(item[0], item[1]
); |
77 var isSupported = document.body.isSupported(item[0], item[1]); | |
78 } | |
79 | 76 |
80 var item0String = item[0]; | 77 var item0String = item[0]; |
81 if (typeof item0String == "string") | 78 if (typeof item0String == "string") |
82 item0String = '"' + item0String + '"'; | 79 item0String = '"' + item0String + '"'; |
83 var item1String = item[1]; | 80 var item1String = item[1]; |
84 if (typeof item1String == "string" && item[1] != "omitted") | 81 if (typeof item1String == "string" && item[1] != "omitted") |
85 item1String = '"' + item1String + '"'; | 82 item1String = '"' + item1String + '"'; |
86 var message = item0String + ', ' + item1String + ': ' + hasFeature + ',
' + isSupported; | 83 var message = item0String + ', ' + item1String + ': ' + hasFeature; |
87 | 84 |
88 var div = document.createElement('div'); | 85 var div = document.createElement('div'); |
89 div.innerHTML = message; | 86 div.innerHTML = message; |
90 document.body.appendChild(div); | 87 document.body.appendChild(div); |
91 } | 88 } |
92 } | 89 } |
93 | 90 |
94 </script> | 91 </script> |
95 | 92 |
96 <body onload="test()"> | 93 <body onload="test()"> |
97 </body> | 94 </body> |
OLD | NEW |