1 Test basic dom storage .clear() functionality. 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 storage['FOO'] = 'MyFOO' 10 storage['BAR'] = 'MyBar' 11 PASS storage.length is 2 12 PASS storage['FOO'] is "MyFOO" 13 PASS storage['BAR'] is "MyBar" 14 storage.clear() 15 PASS storage.length is 0 16 PASS storage['FOO'] is undefined 17 PASS storage['BAR'] is undefined 18 19 20 Testing localStorage 21 storage.clear() 22 PASS storage.length is 0 23 storage['FOO'] = 'MyFOO' 24 storage['BAR'] = 'MyBar' 25 PASS storage.length is 2 26 PASS storage['FOO'] is "MyFOO" 27 PASS storage['BAR'] is "MyBar" 28 storage.clear() 29 PASS storage.length is 0 30 PASS storage['FOO'] is undefined 31 PASS storage['BAR'] is undefined 32 PASS successfullyParsed is true 33 34 TEST COMPLETE 35 36