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

Side by Side Diff: LayoutTests/imported/web-platform-tests/webstorage/event_constructor.html

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 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>WebStorage Test: StorageEvent - init value</title>
5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <h1>event_session_Constructor</h1>
10 <div id="log"></div>
11 <script>
12 test(function() {
13 var t = async_test("storageeventinit test");
14 function onStorageEvent(event) {
15 t.step(function() {
16 assert_equals(event.type, 'storage');
17 assert_equals(event.key, null);
18 assert_equals(event.oldValue, null);
19 assert_equals(event.newValue, null);
20 assert_equals(event.url, '');
21 assert_equals(event.storageArea, null);
22 });
23 t.done();
24 }
25
26 window.addEventListener('storage', onStorageEvent, false);
27 var event = new StorageEvent('storage');
28 window.dispatchEvent(event);
29 }, "The initial values of storage event properties.");
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698