https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 28c8debd4209bd796cc84032359b566eac9a6838 authored by Darren Shen on 11 April 2018, 06:04:13 UTC
[css-typed-om] Support remaining text properties.
Tip revision: 28c8deb
page_with_resource.sub.html
<!DOCTYPE html>
<html>
  <head>
    <title>Clear-Site-Data</title>
    <script src="test_utils.sub.js"></script>
  </head>
  <body>
    <script>
      var scheme = location.search.match("scheme=([^&$]+)")[1];

      // TODO(@msramek): Move this logic to TestUtils.
      var base_url = location.origin
          .replace(/https?/, scheme)
          .replace(/:[0-9]+/, ":" + (scheme == "https" ? {{ports[https][0]}}
                                                       : {{ports[http][0]}})) +
          "/clear-site-data/support/";

      var image = new Image();
      image.onload = image.onerror = function() {
        location.href = base_url + "send_report.html";
      }

      // TODO(@msramek): Move this logic to TestUtils.
      image.src = base_url + "echo-clear-site-data.py?storage";
    </script>
  </body>
</html>
back to top