| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 processor.reset(); | 142 processor.reset(); |
| 143 processor.importStylesheet(xsl1); | 143 processor.importStylesheet(xsl1); |
| 144 var ownerDocument = document.implementation.createDocument("", "test", null); | 144 var ownerDocument = document.implementation.createDocument("", "test", null); |
| 145 var testname = "fragment with undefined source"; | 145 var testname = "fragment with undefined source"; |
| 146 addResultExpectException(testname, function () { return processor.transformToFra
gment(undefined, ownerDocument); } ); | 146 addResultExpectException(testname, function () { return processor.transformToFra
gment(undefined, ownerDocument); } ); |
| 147 | 147 |
| 148 // 2.2 fragment with undefined output document | 148 // 2.2 fragment with undefined output document |
| 149 | 149 |
| 150 ownerDocument = document.implementation.createDocument("", "test", null); | 150 ownerDocument = document.implementation.createDocument("", "test", null); |
| 151 newFragment = processor.transformToFragment(xml, undefined); | 151 var testname = "fragment with undefined output document"; |
| 152 addResultExpectValueWhenSerialized("fragment with undefined output document", ne
wFragment, undefined); | 152 addResultExpectException(testname, function () { return processor.transformToFra
gment(xml, undefined); }); |
| 153 | 153 |
| 154 // 2.3 use non-DOMDocument output parameter | 154 // 2.3 use non-DOMDocument output parameter |
| 155 | 155 |
| 156 var testname = "use non-DOMDocument output parameter"; | 156 var testname = "use non-DOMDocument output parameter"; |
| 157 addResultExpectException(testname, function () { return processor.transformToFra
gment(xml, "error"); } ); | 157 addResultExpectException(testname, function () { return processor.transformToFra
gment(xml, "error"); } ); |
| 158 | 158 |
| 159 // 2.4 transform to same fragment twice | 159 // 2.4 transform to same fragment twice |
| 160 | 160 |
| 161 ownerDocument = document.implementation.createDocument("", "test", null); | 161 ownerDocument = document.implementation.createDocument("", "test", null); |
| 162 var secondDocument = document.implementation.createDocument("", "test", null); | 162 var secondDocument = document.implementation.createDocument("", "test", null); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 processor.setParameter("foo", "foo", "Success"); | 262 processor.setParameter("foo", "foo", "Success"); |
| 263 processor.setParameter("bar", "foo", "Failure"); | 263 processor.setParameter("bar", "foo", "Failure"); |
| 264 var testname = "pass removeParameter same localname, different namespaces"; | 264 var testname = "pass removeParameter same localname, different namespaces"; |
| 265 addResultExpectValue(testname, processor.getParameter("foo", "foo"), "Success"); | 265 addResultExpectValue(testname, processor.getParameter("foo", "foo"), "Success"); |
| 266 | 266 |
| 267 // 6.2 pass undefined namespace | 267 // 6.2 pass undefined namespace |
| 268 | 268 |
| 269 processor.setParameter(undefined, "test", "testValue"); | 269 processor.setParameter(undefined, "test", "testValue"); |
| 270 processor.removeParameter(undefined, "test"); | 270 processor.removeParameter(undefined, "test"); |
| 271 var testname = "verify removeParameter actually removes using undefined namespac
e";» | 271 var testname = "verify removeParameter actually removes using undefined namespac
e"; |
| 272 addResultExpectValue(testname, processor.getParameter(null, "test"), undefined); | 272 addResultExpectValue(testname, processor.getParameter(null, "test"), undefined); |
| 273 | 273 |
| 274 // 6.3 pass removeParameter undefined name | 274 // 6.3 pass removeParameter undefined name |
| 275 | 275 |
| 276 processor.setParameter(undefined, "undefined", "Success"); | 276 processor.setParameter(undefined, "undefined", "Success"); |
| 277 processor.removeParameter(undefined, undefined); | 277 processor.removeParameter(undefined, undefined); |
| 278 var testname = "pass removeParameter undefined name"; | 278 var testname = "pass removeParameter undefined name"; |
| 279 addResultExpectValue(testname, processor.getParameter(undefined, "undefined"), u
ndefined); | 279 addResultExpectValue(testname, processor.getParameter(undefined, "undefined"), u
ndefined); |
| 280 | 280 |
| 281 // 6.4 pass removeParameter a name which has not been set | 281 // 6.4 pass removeParameter a name which has not been set |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 addResultExpectValue(testname, processor.getParameter(null, "test"), undefined); | 313 addResultExpectValue(testname, processor.getParameter(null, "test"), undefined); |
| 314 | 314 |
| 315 // 8.2 call, verify that stylesheet has been cleared after reset() | 315 // 8.2 call, verify that stylesheet has been cleared after reset() |
| 316 var testname = "verify that stylesheet has been cleared"; | 316 var testname = "verify that stylesheet has been cleared"; |
| 317 var resultDocument = processor.transformToDocument(xml); | 317 var resultDocument = processor.transformToDocument(xml); |
| 318 addResultExpectValueWhenSerialized(testname, resultDocument, undefined); | 318 addResultExpectValueWhenSerialized(testname, resultDocument, undefined); |
| 319 | 319 |
| 320 </script> | 320 </script> |
| 321 | 321 |
| 322 </body> | 322 </body> |
| 323 </html> | 323 </html> |
| OLD | NEW |