| OLD | NEW |
| 1 This tests XMLSerializer.serializeToString() throwing exception when node value
is invalid and passing otherwise. | 1 This tests XMLSerializer.serializeToString() throwing exception when node value
is invalid and passing otherwise. |
| 2 | 2 |
| 3 1. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = null | 3 1. Verifying XMLSerializer.serializeToString() should THROW exception with no ar
gument |
| 4 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] | 4 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': 1 argument required, but only 0 present.] |
| 5 PASS | 5 PASS |
| 6 | 6 |
| 7 2. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = undefined | 7 2. Verifying XMLSerializer.serializeToString() should THROW exception with argum
ent null |
| 8 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] | 8 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': parameter 1 is not of type 'Node'.] |
| 9 PASS | 9 PASS |
| 10 | 10 |
| 11 3. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = <html><title>Hello World</title></html> | 11 3. Verifying XMLSerializer.serializeToString() should THROW exception with argum
ent undefined |
| 12 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] | 12 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': parameter 1 is not of type 'Node'.] |
| 13 PASS | 13 PASS |
| 14 | 14 |
| 15 4. Verifying XMLSerializer.serializeToString() should THROW exception with node
value = [object HTMLCollection] | 15 4. Verifying XMLSerializer.serializeToString() should THROW exception with argum
ent <html><title>Hello World</title></html> |
| 16 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] | 16 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': parameter 1 is not of type 'Node'.] |
| 17 PASS | 17 PASS |
| 18 | 18 |
| 19 5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLDocument] | 19 5. Verifying XMLSerializer.serializeToString() should THROW exception with argum
ent [object HTMLCollection] |
| 20 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': parameter 1 is not of type 'Node'.] |
| 20 PASS | 21 PASS |
| 21 | 22 |
| 22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] | 23 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with a
rgument [object HTMLDocument] |
| 23 PASS | 24 PASS |
| 24 | 25 |
| 25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] | 26 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with a
rgument [object HTMLHtmlElement] |
| 26 PASS | 27 PASS |
| 27 | 28 |
| 28 8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLDivElement] | 29 8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with a
rgument [object HTMLHtmlElement] |
| 29 PASS | 30 PASS |
| 30 | 31 |
| 31 9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHeadingElement] | 32 9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with a
rgument [object HTMLDivElement] |
| 32 PASS | 33 PASS |
| 33 | 34 |
| 34 10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLUnknownElement] | 35 10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
argument [object HTMLHeadingElement] |
| 35 PASS | 36 PASS |
| 36 | 37 |
| 37 11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLDocument] | 38 11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
argument [object HTMLUnknownElement] |
| 38 PASS | 39 PASS |
| 39 | 40 |
| 40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLHtmlElement] | 41 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
argument [object HTMLDocument] |
| 41 PASS | 42 PASS |
| 42 | 43 |
| 43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object XMLDocument] | 44 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
argument [object HTMLHtmlElement] |
| 44 PASS | 45 PASS |
| 45 | 46 |
| 46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Element] | 47 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
argument [object XMLDocument] |
| 47 PASS | 48 PASS |
| 49 |
| 50 15. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
argument [object Element] |
| 51 PASS |
| OLD | NEW |