https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f7651d33ccb148f21ceab9f08f0a4d09bebf31cb authored by Ms2ger on 26 September 2018, 11:55:47 UTC
Simplify MultipartContent.
Tip revision: f7651d3
send_report.html
<!DOCTYPE html>
<html>
  <head>
    <title>Clear-Site-Data</title>
    <script src="test_utils.sub.js"></script>
  </head>
  <body>
    <script>
      /**
       * A map between a datatype name and whether it is empty.
       * @property Object.<string, boolean>
       */
      var report = {};

      Promise.all(TestUtils.DATATYPES.map(function(datatype) {
        return datatype.isEmpty().then(function(isEmpty) {
          report[datatype.name] = isEmpty;
        });
      })).then(function() {
        window.top.postMessage(report, "*");
      });
    </script>
  </body>
</html>
back to top