| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_local_storageeventinit.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_local_storageeventinit.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_local_storageeventinit.html
|
| index 4f964dfb49122fecf9eeb864ea3869bf0a1b06bd..fd692fa41f85eca95fa05c0d3c7c332c83da65dd 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_local_storageeventinit.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_local_storageeventinit.html
|
| @@ -9,20 +9,18 @@
|
| <h1>event_local_StorageEventInit</h1>
|
| <div id="log"></div>
|
| <script>
|
| - test(function() {
|
| - var t = async_test("storageeventinit test");
|
| + async_test(function(t) {
|
| +
|
| function onStorageEvent(event) {
|
| - t.step(function() {
|
| - assert_equals(event.key, 'key');
|
| - assert_equals(event.oldValue, 'oldValue');
|
| - assert_equals(event.newValue, 'newValue');
|
| - assert_equals(event.url, window.location.href);
|
| - assert_equals(event.storageArea, window.localStorage);
|
| - });
|
| + assert_equals(event.key, 'key');
|
| + assert_equals(event.oldValue, 'oldValue');
|
| + assert_equals(event.newValue, 'newValue');
|
| + assert_equals(event.url, window.location.href);
|
| + assert_equals(event.storageArea, window.localStorage);
|
| t.done();
|
| }
|
|
|
| - window.addEventListener('storage', onStorageEvent, false);
|
| + window.addEventListener('storage', t.step_func(onStorageEvent), false);
|
|
|
| var event = new StorageEvent('storage', {
|
| key: 'key',
|
| @@ -33,7 +31,7 @@
|
| });
|
|
|
| window.dispatchEvent(event);
|
| - }, "Storage event is fired due to set values for StorageEventInit.");
|
| + }, "storageeventinit test - Storage event is fired due to set values for StorageEventInit.");
|
| </script>
|
| </body>
|
| </html>
|
|
|