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 node
value = null |
4 Exception thrown = [TypeError: Invalid node value.] | 4 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] |
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 node
value = undefined |
8 Exception thrown = [TypeError: Invalid node value.] | 8 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] |
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 node
value = <html><title>Hello World</title></html> |
12 Exception thrown = [TypeError: Invalid node value.] | 12 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] |
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 node
value = [object HTMLCollection] |
16 Exception thrown = [TypeError: Invalid node value.] | 16 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri
alizer': Invalid node value.] |
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 NOT-THROW exception with n
ode value = [object HTMLDocument] |
20 PASS | 20 PASS |
21 | 21 |
22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] | 22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] |
23 PASS | 23 PASS |
24 | 24 |
25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] | 25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n
ode value = [object HTMLHtmlElement] |
26 PASS | 26 PASS |
(...skipping 11 matching lines...) Expand all Loading... |
38 PASS | 38 PASS |
39 | 39 |
40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLHtmlElement] | 40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object HTMLHtmlElement] |
41 PASS | 41 PASS |
42 | 42 |
43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Document] | 43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Document] |
44 PASS | 44 PASS |
45 | 45 |
46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Element] | 46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with
node value = [object Element] |
47 PASS | 47 PASS |
OLD | NEW |