OLD | NEW |
(Empty) | |
| 1 This tests XMLSerializer.serializeToString() throwing exception when node value
is invalid and passing otherwise. |
| 2 |
| 3 1. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = null |
| 4 Exception thrown = [TypeError: Invalid node value.] |
| 5 PASS |
| 6 |
| 7 2. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = undefined |
| 8 Exception thrown = [TypeError: Invalid node value.] |
| 9 PASS |
| 10 |
| 11 3. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = <html><title>Hello World</title></html> |
| 12 Exception thrown = [TypeError: Invalid node value.] |
| 13 PASS |
| 14 |
| 15 4. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = [object HTMLCollection] |
| 16 Exception thrown = [TypeError: Invalid node value.] |
| 17 PASS |
| 18 |
| 19 5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLDocument] |
| 20 PASS |
| 21 |
| 22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] |
| 23 PASS |
| 24 |
| 25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] |
| 26 PASS |
| 27 |
| 28 8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLDivElement] |
| 29 PASS |
| 30 |
| 31 9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHeadingElement] |
| 32 PASS |
| 33 |
| 34 10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLUnknownElement] |
| 35 PASS |
| 36 |
| 37 11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLDocument] |
| 38 PASS |
| 39 |
| 40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLHtmlElement] |
| 41 PASS |
| 42 |
| 43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Document] |
| 44 PASS |
| 45 |
| 46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Element] |
| 47 PASS |
OLD | NEW |