Skip to content

Commit

Permalink
Add interfaces/savedata.idl and test (#24221)
Browse files Browse the repository at this point in the history
Closes #24216
  • Loading branch information
stephenmcgruer authored Jun 24, 2020
1 parent 7ef4aae commit 5d5bae9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions interfaces/savedata.idl
Original file line number Diff line number Diff line change
@@ -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;
16 changes: 16 additions & 0 deletions savedata/idlharness.any.js
Original file line number Diff line number Diff line change
@@ -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']
});
}
);

0 comments on commit 5d5bae9

Please sign in to comment.