| OLD | NEW |
| (Empty) |
| 1 This tests that itemType attribute must update correctly when token have been ad
ded or removed. | |
| 2 | |
| 3 Created element of type: div | |
| 4 itemType.add must reflect correctly. | |
| 5 PASS element.itemType.length == 2 is true | |
| 6 PASS element.itemType.toString() == 'http://example.com/foo http://example.com/F
OO' is true | |
| 7 PASS element.itemType[0] is 'http://example.com/foo' | |
| 8 PASS element.itemType[1] is 'http://example.com/FOO' | |
| 9 PASS element.itemType.item(0) is 'http://example.com/foo' | |
| 10 PASS element.itemType.item(1) is 'http://example.com/FOO' | |
| 11 | |
| 12 itemType.add must not make any changes if an existing token is added. | |
| 13 PASS element.itemType.length == 2 is true | |
| 14 PASS element.itemType.toString() == 'http://example.com/foo http://example.com/F
OO' is true | |
| 15 | |
| 16 itemType.remove must reflect correctly. | |
| 17 PASS element.itemType.length == 1 is true | |
| 18 PASS element.itemType.contains('http://example.com/foo') is false | |
| 19 PASS element.itemType.toString() == 'http://example.com/FOO' is true | |
| 20 | |
| 21 itemType.remove must not make any changes if remove is called for a token that d
oesn't exist. | |
| 22 PASS element.itemType.length == 1 is true | |
| 23 PASS element.itemType.contains('http://example.com/foo') is false | |
| 24 PASS element.itemType.toString() == 'http://example.com/FOO' is true | |
| 25 | |
| 26 itemType.length must be 0 when all tokens are removed. | |
| 27 PASS element.itemType.length == 0 is true | |
| 28 PASS element.itemType.contains('http://example.com/foo') is false | |
| 29 PASS element.itemType.contains('http://example.com/FOO') is false | |
| 30 PASS successfullyParsed is true | |
| 31 | |
| 32 TEST COMPLETE | |
| 33 | |
| OLD | NEW |