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

Side by Side Diff: LayoutTests/imported/web-platform-tests/webstorage/event_constructor_eventinit.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 - StorageEventInit with null value</title >
5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <h1>event_Constructor</h1>
10 <div id="log"></div>
11 <script>
12 test(function() {
13 var t = async_test("StorageEvent constructor and nulls");
14 function onStorageEvent(event) {
15 t.step(function() {
16 assert_equals(event.type, 'storage', 'type');
17 assert_equals(event.key, null, 'key');
18 assert_equals(event.oldValue, null, 'oldValue');
19 assert_equals(event.newValue, null, 'newValue');
20 assert_equals(event.url, 'null', 'url');
21 assert_equals(event.storageArea, null, 'storageArea');
22 });
23 t.done();
24 }
25
26 window.addEventListener('storage', onStorageEvent, false);
27 var event = new StorageEvent('storage', {
28 key: null,
29 oldValue: null,
30 newValue: null,
31 url: null
32 });
33 window.dispatchEvent(event);
34 }, "Construct StorageEvent with StorageEventInit.");
35 </script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698