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

Side by Side Diff: LayoutTests/imported/web-platform-tests/webstorage/event_case_sensitive.js

Issue 1220543007: Import web-platform-tests/webstorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 testStorages(function(storageString) {
2 async_test(function(t) {
3 assert_true(storageString in window, storageString + " exist");
4 var storage = window[storageString];
5 t.add_cleanup(function() { storage.clear() });
6
7 storage.clear();
8 assert_equals(storage.length, 0, "storage.length");
9 storage.foo = "test";
10
11 runAfterNStorageEvents(t.step_func(step1), 1);
12
13 function step1(msg)
14 {
15 storageEventList = new Array();
16 storage.foo = "test";
17
18 runAfterNStorageEvents(t.step_func(step2), 0);
19 }
20
21 function step2(msg)
22 {
23 if(msg != undefined) {
24 assert_unreached(msg);
25 }
26 assert_equals(storageEventList.length, 0);
27
28 storage.foo = "TEST";
29
30 runAfterNStorageEvents(t.step_func(step3), 1);
31 }
32
33 function step3(msg)
34 {
35 if(msg != undefined) {
36 assert_unreached(msg);
37 }
38 assert_equals(storageEventList.length, 1);
39
40 t.done();
41 }
42 }, storageString + " storage events fire even when only the case of the valu e changes.");
43 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698