| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_constructor_eventinit.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_constructor_eventinit.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_constructor_eventinit.html
|
| index 441a5627b9086a56458d944ef331649a7f9663bb..738e6035b9d6f0a218292467f4aed5bde7242ed0 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_constructor_eventinit.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/event_constructor_eventinit.html
|
| @@ -9,21 +9,18 @@
|
| <h1>event_Constructor</h1>
|
| <div id="log"></div>
|
| <script>
|
| - test(function() {
|
| - var t = async_test("StorageEvent constructor and nulls");
|
| + async_test(function(t) {
|
| function onStorageEvent(event) {
|
| - t.step(function() {
|
| - assert_equals(event.type, 'storage', 'type');
|
| - assert_equals(event.key, null, 'key');
|
| - assert_equals(event.oldValue, null, 'oldValue');
|
| - assert_equals(event.newValue, null, 'newValue');
|
| - assert_equals(event.url, 'null', 'url');
|
| - assert_equals(event.storageArea, null, 'storageArea');
|
| - });
|
| + assert_equals(event.type, 'storage', 'type');
|
| + assert_equals(event.key, null, 'key');
|
| + assert_equals(event.oldValue, null, 'oldValue');
|
| + assert_equals(event.newValue, null, 'newValue');
|
| + assert_equals(event.url, 'null', 'url');
|
| + assert_equals(event.storageArea, null, 'storageArea');
|
| t.done();
|
| }
|
|
|
| - window.addEventListener('storage', onStorageEvent, false);
|
| + window.addEventListener('storage', t.step_func(onStorageEvent), false);
|
| var event = new StorageEvent('storage', {
|
| key: null,
|
| oldValue: null,
|
| @@ -31,7 +28,7 @@
|
| url: null
|
| });
|
| window.dispatchEvent(event);
|
| - }, "Construct StorageEvent with StorageEventInit.");
|
| + }, "StorageEvent constructor and nulls - Construct StorageEvent with StorageEventInit.");
|
| </script>
|
| </body>
|
| </html>
|
|
|