OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <STYLE> | 3 <STYLE> |
4 pre { border:1px solid blue } | 4 pre { border:1px solid blue } |
5 span { font-weight: bold } | 5 span { font-weight: bold } |
6 .success { color: green; } | 6 .success { color: green; } |
7 .failure { color: red; } | 7 .failure { color: red; } |
8 </STYLE> | 8 </STYLE> |
9 </head> | 9 </head> |
10 <body id="body"> | 10 <body id="body"> |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 addResultExpectValue(testname, processor.getParameter("foo", "foo"), "Success"); | 212 addResultExpectValue(testname, processor.getParameter("foo", "foo"), "Success"); |
213 | 213 |
214 // 4.2 pass undefined namespace | 214 // 4.2 pass undefined namespace |
215 | 215 |
216 processor.setParameter(undefined, "foo", "Success"); | 216 processor.setParameter(undefined, "foo", "Success"); |
217 addResultExpectValue("pass undefined namespace", processor.getParameter(undefine
d, "foo"), "Success"); | 217 addResultExpectValue("pass undefined namespace", processor.getParameter(undefine
d, "foo"), "Success"); |
218 | 218 |
219 // 4.3 pass setParameter an undefined name | 219 // 4.3 pass setParameter an undefined name |
220 | 220 |
221 var testname = "pass setParameter an undefined name"; | 221 var testname = "pass setParameter an undefined name"; |
222 addResultExpectException(testname, function () { return processor.setParameter(u
ndefined, undefined , "Success"); } ); | 222 processor.setParameter(undefined, undefined , "Success"); |
| 223 addResultExpectValue(testname, processor.getParameter(undefined, undefined), "Su
ccess"); |
223 | 224 |
224 // 4.4 pass undefined value | 225 // 4.4 pass undefined value |
225 | 226 |
226 processor.setParameter(undefined, "foo", undefined); | 227 processor.setParameter(undefined, "foo", undefined); |
227 var testname = "pass undefined value"; | 228 var testname = "pass undefined value to setParameter"; |
| 229 addResultExpectValue(testname, processor.getParameter(undefined, "foo"), "undefi
ned"); |
228 | 230 |
229 | 231 |
230 // 4.5 pass unsupported value to setParameter (object, for instance?) | 232 // 4.5 pass unsupported value to setParameter (object, for instance?) |
231 | 233 |
232 var testname = "pass unsupported value to setParameter"; | 234 var testname = "pass unsupported value to setParameter"; |
233 addResultExpectException(testname, function () { return processor.setParameter(u
ndefined, "invalid" , new Array()); } ); | 235 addResultExpectException(testname, function () { return processor.setParameter(u
ndefined, "invalid" , new Array()); } ); |
234 | 236 |
235 | 237 |
236 // 5.0 Value getParameter(in DOMString namespaceURI, in DOMString localName); | 238 // 5.0 Value getParameter(in DOMString namespaceURI, in DOMString localName); |
237 addSectionHeader("Value getParameter(in DOMString namespaceURI, in DOMString loc
alName)"); | 239 addSectionHeader("Value getParameter(in DOMString namespaceURI, in DOMString loc
alName)"); |
238 | 240 |
239 // 5.1 pass undefined name | 241 // 5.1 pass undefined name |
240 | 242 |
241 var testname = "pass getParameter an undefined name"; | 243 var testname = "pass getParameter an undefined name"; |
242 addResultExpectException(testname, function () { return processor.getParameter(u
ndefined, undefined); } ); | 244 addResultExpectValue(testname, processor.getParameter(undefined, undefined), "Su
ccess"); |
243 | 245 |
244 // 5.2 pass getParameter a name which has not been set | 246 // 5.2 pass getParameter a name which has not been set |
245 | 247 |
246 var testname = "pass getParameter a name which has not been set"; | 248 var testname = "pass getParameter a name which has not been set"; |
247 addResultExpectValue(testname, processor.getParameter(undefined, "hasnotbeenset"
), undefined); | 249 addResultExpectValue(testname, processor.getParameter(undefined, "hasnotbeenset"
), undefined); |
248 | 250 |
249 // 5.3 verify getParameter actually gets (and set sets) | 251 // 5.3 verify getParameter actually gets (and set sets) |
250 processor.setParameter(null, "test", "testValue"); | 252 processor.setParameter(null, "test", "testValue"); |
251 var testname = "verify getParameter actually gets (and set sets)"; | 253 var testname = "verify getParameter actually gets (and set sets)"; |
252 addResultExpectValue(testname, processor.getParameter(null, "test"), "testValue"
); | 254 addResultExpectValue(testname, processor.getParameter(null, "test"), "testValue"
); |
(...skipping 14 matching lines...) Expand all Loading... |
267 processor.setParameter(undefined, "test", "testValue"); | 269 processor.setParameter(undefined, "test", "testValue"); |
268 processor.removeParameter(undefined, "test"); | 270 processor.removeParameter(undefined, "test"); |
269 var testname = "verify removeParameter actually removes using undefined namespac
e"; | 271 var testname = "verify removeParameter actually removes using undefined namespac
e"; |
270 addResultExpectValue(testname, processor.getParameter(null, "test"), undefined); | 272 addResultExpectValue(testname, processor.getParameter(null, "test"), undefined); |
271 | 273 |
272 // 6.3 pass removeParameter undefined name | 274 // 6.3 pass removeParameter undefined name |
273 | 275 |
274 processor.setParameter(undefined, "undefined", "Success"); | 276 processor.setParameter(undefined, "undefined", "Success"); |
275 processor.removeParameter(undefined, undefined); | 277 processor.removeParameter(undefined, undefined); |
276 var testname = "pass removeParameter undefined name"; | 278 var testname = "pass removeParameter undefined name"; |
277 addResultExpectValue(testname, processor.getParameter(undefined, "undefined"), "
Success"); | 279 addResultExpectValue(testname, processor.getParameter(undefined, "undefined"), u
ndefined); |
278 | 280 |
279 // 6.4 pass removeParameter a name which has not been set | 281 // 6.4 pass removeParameter a name which has not been set |
280 | 282 |
281 processor.removeParameter(undefined, "neverbeensetforremove"); | 283 processor.removeParameter(undefined, "neverbeensetforremove"); |
282 addResultExpectValue("pass removeParameter a name which has not been set", "Succ
ess", "Success"); | 284 addResultExpectValue("pass removeParameter a name which has not been set", "Succ
ess", "Success"); |
283 | 285 |
284 // 6.5 verify removeParameter actually removes | 286 // 6.5 verify removeParameter actually removes |
285 processor.setParameter(null, "test", "testValue"); | 287 processor.setParameter(null, "test", "testValue"); |
286 processor.removeParameter(null, "test"); | 288 processor.removeParameter(null, "test"); |
287 var testname = "verify removeParameter actually removes"; | 289 var testname = "verify removeParameter actually removes"; |
(...skipping 24 matching lines...) Expand all Loading... |
312 | 314 |
313 // 8.2 call, verify that stylesheet has been cleared after reset() | 315 // 8.2 call, verify that stylesheet has been cleared after reset() |
314 var testname = "verify that stylesheet has been cleared"; | 316 var testname = "verify that stylesheet has been cleared"; |
315 var resultDocument = processor.transformToDocument(xml); | 317 var resultDocument = processor.transformToDocument(xml); |
316 addResultExpectValueWhenSerialized(testname, resultDocument, undefined); | 318 addResultExpectValueWhenSerialized(testname, resultDocument, undefined); |
317 | 319 |
318 </script> | 320 </script> |
319 | 321 |
320 </body> | 322 </body> |
321 </html> | 323 </html> |
OLD | NEW |