Bug 1629044 [wpt PR 22853] - Update interfaces/appmanifest.idl and test, a=testonly

Automatic update from web-platform-tests
Update interfaces/appmanifest.idl and test (#22853)

The associated IDL test, appmanifest/idlharness.window.js, is removed
entirely as the IDL file is now only dictionaries and enums (which
cannot be validated by idlharness).

Closes https://github.com/web-platform-tests/wpt/pull/22617
--

wpt-commits: 194df1e4cab3851d3c5d08157e65d3ea4ea49416
wpt-pr: 22853
This commit is contained in:
Stephen McGruer 2020-04-16 21:47:38 +00:00 committed by moz-wptsync-bot
parent 714f9b6c07
commit ccbdeaed27
2 changed files with 0 additions and 37 deletions

View File

@ -1,17 +0,0 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// https://w3c.github.io/manifest/
'use strict';
idl_test(
['appmanifest'],
['html', 'dom'],
idl_array => {
idl_array.add_objects({
Window: ['window'],
BeforeInstallPromptEvent: ['new BeforeInstallPromptEvent("type")'],
});
}
);

View File

@ -3,26 +3,6 @@
// (https://github.com/tidoust/reffy-reports) // (https://github.com/tidoust/reffy-reports)
// Source: Web App Manifest (https://w3c.github.io/manifest/) // Source: Web App Manifest (https://w3c.github.io/manifest/)
[Exposed=Window]
interface BeforeInstallPromptEvent : Event {
constructor(DOMString type, optional EventInit eventInitDict = {});
Promise<PromptResponseObject> prompt();
};
dictionary PromptResponseObject {
AppBannerPromptOutcome userChoice;
};
enum AppBannerPromptOutcome {
"accepted",
"dismissed"
};
partial interface Window {
attribute EventHandler onappinstalled;
attribute EventHandler onbeforeinstallprompt;
};
dictionary WebAppManifest { dictionary WebAppManifest {
TextDirectionType dir = "auto"; TextDirectionType dir = "auto";
DOMString lang; DOMString lang;