Bug 1483515 [wpt PR 12496] - Add Reporting API IDL file + test, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Thu, 16 Aug 2018 21:57:03 +0000
changeset 487257 578bfc018d3d055f4803e76924cc0595afc21bce
parent 487256 7c7f7bcb1ffd5617b3f86ce58f38804da8bf0a80
child 487258 163a3c25631321a7a96b23071594e9355c2c6c5b
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1483515, 12496
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483515 [wpt PR 12496] - Add Reporting API IDL file + test, a=testonly Automatic update from web-platform-testsAdd Reporting API IDL file + test (#12496) -- wpt-commits: c92440a9aaf49d4dc7d4043e08bbcda7d67ad1d2 wpt-pr: 12496
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/reporting.idl
testing/web-platform/tests/reporting/META.yml
testing/web-platform/tests/reporting/idlharness.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -289662,16 +289662,21 @@
      {}
     ]
    ],
    "interfaces/remote-playback.idl": [
     [
      {}
     ]
    ],
+   "interfaces/reporting.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/requestidlecallback.idl": [
     [
      {}
     ]
    ],
    "interfaces/resource-timing.idl": [
     [
      {}
@@ -294767,16 +294772,21 @@
      {}
     ]
    ],
    "remote-playback/README.md": [
     [
      {}
     ]
    ],
+   "reporting/META.yml": [
+    [
+     {}
+    ]
+   ],
    "requestidlecallback/META.yml": [
     [
      {}
     ]
    ],
    "requestidlecallback/resources/post_name_on_load.html": [
     [
      {}
@@ -387719,16 +387729,22 @@
     ]
    ],
    "remote-playback/watch-availability-initial-callback.html": [
     [
      "/remote-playback/watch-availability-initial-callback.html",
      {}
     ]
    ],
+   "reporting/idlharness.window.js": [
+    [
+     "/reporting/idlharness.window.html",
+     {}
+    ]
+   ],
    "requestidlecallback/basic.html": [
     [
      "/requestidlecallback/basic.html",
      {}
     ]
    ],
    "requestidlecallback/callback-exception.html": [
     [
@@ -606164,16 +606180,20 @@
   "interfaces/referrer-policy.idl": [
    "962f7143a9e04402a717299e1a657d04b2c16f15",
    "support"
   ],
   "interfaces/remote-playback.idl": [
    "8321e59fb632bb078c7df7d2831cbddba9e1a50c",
    "support"
   ],
+  "interfaces/reporting.idl": [
+   "e9800365c4c03e9d98990de54bdf0fede7690448",
+   "support"
+  ],
   "interfaces/requestidlecallback.idl": [
    "812cc0ef81533136f537b2591cf6c1774bf525ba",
    "support"
   ],
   "interfaces/resource-timing.idl": [
    "fc14253f5e9aebec47ce83da1afa938819015f51",
    "support"
   ],
@@ -626000,16 +626020,24 @@
   "remote-playback/idlharness.window.js": [
    "73bc998f7433be4ea77fc18a62c7445d9688d907",
    "testharness"
   ],
   "remote-playback/watch-availability-initial-callback.html": [
    "851558b06f211ac2cda5d38b1d447a2e0475586d",
    "testharness"
   ],
+  "reporting/META.yml": [
+   "980823f59f7e3ac4f35a31ab6df37ce16e538f54",
+   "support"
+  ],
+  "reporting/idlharness.window.js": [
+   "17cef8183596ae1d0b307fb8ddccc7455b955966",
+   "testharness"
+  ],
   "requestidlecallback/META.yml": [
    "9c829d3c8885bb9b594e7096a878166e07f3e278",
    "support"
   ],
   "requestidlecallback/basic.html": [
    "e481a6bd3bd1f936d06b93a6d31d839442776981",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/reporting.idl
@@ -0,0 +1,56 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into reffy-reports
+// (https://github.com/tidoust/reffy-reports)
+// Source: Reporting API 1 (https://w3c.github.io/reporting/)
+
+interface ReportBody {
+};
+
+interface Report {
+  readonly attribute DOMString type;
+  readonly attribute DOMString url;
+  readonly attribute ReportBody? body;
+};
+
+[Constructor(ReportingObserverCallback callback, optional ReportingObserverOptions options)]
+interface ReportingObserver {
+  void observe();
+  void disconnect();
+  ReportList takeRecords();
+};
+
+callback ReportingObserverCallback = void (sequence<Report> reports, ReportingObserver observer);
+
+dictionary ReportingObserverOptions {
+  sequence<DOMString> types;
+  boolean buffered = false;
+};
+
+typedef sequence<Report> ReportList;
+
+interface DeprecationReportBody : ReportBody {
+  readonly attribute DOMString id;
+  readonly attribute Date? anticipatedRemoval;
+  readonly attribute DOMString message;
+  readonly attribute DOMString? sourceFile;
+  readonly attribute unsigned long? lineNumber;
+  readonly attribute unsigned long? columnNumber;
+};
+
+interface InterventionReportBody : ReportBody {
+  readonly attribute DOMString id;
+  readonly attribute DOMString message;
+  readonly attribute DOMString? sourceFile;
+  readonly attribute unsigned long? lineNumber;
+  readonly attribute unsigned long? columnNumber;
+};
+
+interface CrashReportBody : ReportBody {
+  readonly attribute DOMString crashId;
+  readonly attribute DOMString? reason;
+};
+
+dictionary GenerateTestReportParameters {
+  required DOMString message;
+  DOMString group;
+};
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/reporting/META.yml
@@ -0,0 +1,5 @@
+spec: https://w3c.github.io/reporting/
+suggested_reviewers:
+  - dcreager
+  - igrigorik
+  - paulmeyer90
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/reporting/idlharness.window.js
@@ -0,0 +1,14 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+idl_test(
+  ['reporting'],
+  [],
+  idl_array => {
+    idl_array.add_objects({
+      // TODO: objects
+    });
+  }
+);