From 5d5bae9d742562b930e8c35eb2010a5738e195a6 Mon Sep 17 00:00:00 2001 From: Stephen McGruer Date: Wed, 24 Jun 2020 10:07:00 -0400 Subject: [PATCH] Add interfaces/savedata.idl and test (#24221) Closes https://github.com/web-platform-tests/wpt/pull/24216 --- interfaces/savedata.idl | 10 ++++++++++ savedata/idlharness.any.js | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 interfaces/savedata.idl create mode 100644 savedata/idlharness.any.js diff --git a/interfaces/savedata.idl b/interfaces/savedata.idl new file mode 100644 index 00000000000000..4d9e3b98d3c993 --- /dev/null +++ b/interfaces/savedata.idl @@ -0,0 +1,10 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Save Data API (https://wicg.github.io/savedata/) + +interface mixin NetworkInformationSaveData { + [SameObject] readonly attribute boolean saveData; +}; + +NetworkInformation includes NetworkInformationSaveData; diff --git a/savedata/idlharness.any.js b/savedata/idlharness.any.js new file mode 100644 index 00000000000000..aad362346ca5fa --- /dev/null +++ b/savedata/idlharness.any.js @@ -0,0 +1,16 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +// https://wicg.github.io/savedata/ + +idl_test( + ['savedata'], + ['netinfo', 'html', 'dom'], + idl_array => { + idl_array.add_objects({ + NetworkInformation: ['navigator.connection'] + }); + } +);