https://github.com/web-platform-tests/wpt
Raw File
Tip revision: efebd77ee5ec77d90333b10605c37aa1e6698ee5 authored by moz-wptsync-bot on 14 March 2018, 18:16:47 UTC
Use WorkerRef in FileReader,
Tip revision: efebd77
event_constructor.html
<!DOCTYPE HTML>
<html>
 <head>
  <title>WebStorage Test: StorageEvent - init value</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
 </head>
 <body>
    <h1>event_session_Constructor</h1>
    <div id="log"></div>
    <script>
        test(function() {
            var t = async_test("storageeventinit test");
            function onStorageEvent(event) {
                t.step(function() {
                    assert_equals(event.type, 'storage');
                    assert_equals(event.key, null);
                    assert_equals(event.oldValue, null);
                    assert_equals(event.newValue, null);
                    assert_equals(event.url, '');
                    assert_equals(event.storageArea, null);
                });
                t.done();
            }

            window.addEventListener('storage', onStorageEvent, false);
            var event = new StorageEvent('storage');
            window.dispatchEvent(event);
        }, "The initial values of storage event properties.");
    </script>
 </body>
</html>
back to top