5 testRunner
.dumpAsText();
14 ["StyleSheets", undefined],
18 ["Events", undefined],
19 ["UIEvents", undefined],
20 ["MouseEvents", undefined],
21 ["HTMLEvents", undefined],
22 ["MutationEvents", undefined],
24 ["Traversal", undefined],
30 ["StyleSheets", null],
36 ["MouseEvents", null],
38 ["MutationEvents", null],
54 ["MutationEvents", ""],
62 ["StyleSheets", "1.0"],
68 ["MouseEvents", "1.0"],
69 ["HTMLEvents", "1.0"],
70 ["MutationEvents", "1.0"],
78 ["StyleSheets", "2.0"],
84 ["MouseEvents", "2.0"],
85 ["HTMLEvents", "2.0"],
86 ["MutationEvents", "2.0"],
94 ["StyleSheets", "3.0"],
100 ["MouseEvents", "3.0"],
101 ["HTMLEvents", "3.0"],
102 ["MutationEvents", "3.0"],
104 ["Traversal", "3.0"],
106 ["Core", "nonsense"],
107 ["HTML", "nonsense"],
109 ["Views", "nonsense"],
110 ["StyleSheets", "nonsense"],
112 ["CSS2", "nonsense"],
113 ["CSS3", "nonsense"],
114 ["Events", "nonsense"],
115 ["UIEvents", "nonsense"],
116 ["MouseEvents", "nonsense"],
117 ["HTMLEvents", "nonsense"],
118 ["MutationEvents", "nonsense"],
119 ["Range", "nonsense"],
120 ["Traversal", "nonsense"],
126 [undefined, "nonsense"],
127 [undefined, undefined],
142 ["nonsense", "nonsense"],
143 ["nonsense", undefined],
147 for (var i
= 0; i
< features
.length
; ++i
)
149 var item
= features
[i
];
150 if (item
[1] == "omitted")
151 var hasFeature
= document
.implementation
.hasFeature(item
[0]);
153 var hasFeature
= document
.implementation
.hasFeature(item
[0], item
[1]);
155 var item0String
= item
[0];
156 if (typeof item0String
== "string")
157 item0String
= '"' + item0String
+ '"';
158 var item1String
= item
[1];
159 if (typeof item1String
== "string" && item
[1] != "omitted")
160 item1String
= '"' + item1String
+ '"';
161 var message
= item0String
+ ', ' + item1String
+ ': ' + hasFeature
;
163 var div
= document
.createElement('div');
164 div
.innerHTML
= message
;
165 document
.body
.appendChild(div
);
171 <body onload=
"test()">