Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/webstorage/event_basic.js

Issue 1984133002: Move web-platform-tests to wpt (part 2 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 testStorages(function(storageString) { 1 testStorages(function(storageString) {
2 async_test(function(t) { 2 async_test(function(t) {
3 assert_true(storageString in window, storageString + " exist"); 3 assert_true(storageString in window, storageString + " exist");
4 var storage = window[storageString]; 4 var storage = window[storageString];
5 t.add_cleanup(function() { storage.clear() }); 5 t.add_cleanup(function() { storage.clear() });
6 6
7 clearStorage(storageString, t.step_func(step1)); 7 clearStorage(storageString, t.step_func(step1));
8 assert_equals(storage.length, 0, "storage.length"); 8 assert_equals(storage.length, 0, "storage.length");
9 9
10 function step1(msg) 10 function step1(msg)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 assert_equals(storageEventList.length, 8); 97 assert_equals(storageEventList.length, 8);
98 assert_equals(storageEventList[7].key, null); 98 assert_equals(storageEventList[7].key, null);
99 assert_equals(storageEventList[7].oldValue, null); 99 assert_equals(storageEventList[7].oldValue, null);
100 assert_equals(storageEventList[7].newValue, null); 100 assert_equals(storageEventList[7].newValue, null);
101 101
102 t.done(); 102 t.done();
103 } 103 }
104 104
105 }, storageString + " mutations fire StorageEvents that are caught by the eve nt listener set via window.onstorage."); 105 }, storageString + " mutations fire StorageEvents that are caught by the eve nt listener set via window.onstorage.");
106 }); 106 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698