https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0c93c0877c816f3b565eaaab7987e9c131475c1c authored by James Graham on 12 April 2018, 12:48:29 UTC
Use version-specific prefs files when running Firefox
Tip revision: 0c93c08
share-url-relative-manual.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>WebShare Test: Share with relative URL</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="resources/manual-helper.js"></script>
    <base href="https://www.example.com/some/path.html">
  </head>
  <body>
    <script>
        setup({explicit_timeout: true});

        const url = 'foo';
        setupManualShareTest({title: '', text: '', url: getAbsoluteUrl(url)});
        callWhenButtonClicked(() => navigator.share({url}));
    </script>
  </body>
</html>
back to top