1 Test .removeItem within DOM Storage. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 Testing sessionStorage 7 storage.clear() 8 PASS storage.length is 0 9 10 PASS storage.foo1 is undefined. 11 storage.foo1 = 'bar' 12 PASS storage.foo1 is "bar" 13 storage.removeItem('foo1') 14 PASS storage.foo1 is undefined. 15 storage.removeItem('foo1') 16 PASS storage.foo1 is undefined. 17 18 PASS storage['foo2'] is undefined. 19 storage['foo2'] = 'bar' 20 PASS storage['foo2'] is "bar" 21 storage.removeItem('foo2') 22 PASS storage['foo2'] is undefined. 23 storage.removeItem('foo2') 24 PASS storage['foo2'] is undefined. 25 26 PASS storage.getItem('foo3') is null 27 storage.setItem('foo3', 'bar') 28 PASS storage.getItem('foo3') is "bar" 29 storage.removeItem('foo3') 30 PASS storage.getItem('foo3') is null 31 storage.removeItem('foo3') 32 PASS storage.getItem('foo3') is null 33 34 35 Testing localStorage 36 storage.clear() 37 PASS storage.length is 0 38 39 PASS storage.foo1 is undefined. 40 storage.foo1 = 'bar' 41 PASS storage.foo1 is "bar" 42 storage.removeItem('foo1') 43 PASS storage.foo1 is undefined. 44 storage.removeItem('foo1') 45 PASS storage.foo1 is undefined. 46 47 PASS storage['foo2'] is undefined. 48 storage['foo2'] = 'bar' 49 PASS storage['foo2'] is "bar" 50 storage.removeItem('foo2') 51 PASS storage['foo2'] is undefined. 52 storage.removeItem('foo2') 53 PASS storage['foo2'] is undefined. 54 55 PASS storage.getItem('foo3') is null 56 storage.setItem('foo3', 'bar') 57 PASS storage.getItem('foo3') is "bar" 58 storage.removeItem('foo3') 59 PASS storage.getItem('foo3') is null 60 storage.removeItem('foo3') 61 PASS storage.getItem('foo3') is null 62 PASS successfullyParsed is true 63 64 TEST COMPLETE 65 66