https://github.com/web-platform-tests/wpt
Revision bc7c640b39c4a9ba70e916f44271ea8edab6014e authored by Luke Bjerring on 28 March 2018, 22:30:58 UTC, committed by GitHub on 28 March 2018, 22:30:58 UTC
* Support partial dictionaries
1 parent d5fea75
Raw File
Tip revision: bc7c640b39c4a9ba70e916f44271ea8edab6014e authored by Luke Bjerring on 28 March 2018, 22:30:58 UTC
Support partial dictionaries (#10159)
Tip revision: bc7c640
share-extra-field-manual.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>WebShare Test: Surplus fields ignored</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="resources/manual-helper.js"></script>
  </head>
  <body>
    <script>
        setup({explicit_timeout: true});

        setupManualShareTest(
            {title: 'the title', text: 'the message', url: 'data:the url'});
        callWhenButtonClicked(() => navigator.share(
              {title: 'the title', text: 'the message', url: 'data:the url',
               unused: 'unexpected field'}));
    </script>
  </body>
</html>
back to top