From ccbdeaed2773bb0ee87b73f36c76ad08af130c9f Mon Sep 17 00:00:00 2001 From: Stephen McGruer Date: Thu, 16 Apr 2020 21:47:38 +0000 Subject: [PATCH] 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 --- .../tests/appmanifest/idlharness.window.js | 17 ---------------- .../tests/interfaces/appmanifest.idl | 20 ------------------- 2 files changed, 37 deletions(-) delete mode 100644 testing/web-platform/tests/appmanifest/idlharness.window.js diff --git a/testing/web-platform/tests/appmanifest/idlharness.window.js b/testing/web-platform/tests/appmanifest/idlharness.window.js deleted file mode 100644 index 55e8b9871e79..000000000000 --- a/testing/web-platform/tests/appmanifest/idlharness.window.js +++ /dev/null @@ -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")'], - }); - } -); diff --git a/testing/web-platform/tests/interfaces/appmanifest.idl b/testing/web-platform/tests/interfaces/appmanifest.idl index 35c491a5f7bf..2adc37001242 100644 --- a/testing/web-platform/tests/interfaces/appmanifest.idl +++ b/testing/web-platform/tests/interfaces/appmanifest.idl @@ -3,26 +3,6 @@ // (https://github.com/tidoust/reffy-reports) // Source: Web App Manifest (https://w3c.github.io/manifest/) -[Exposed=Window] -interface BeforeInstallPromptEvent : Event { - constructor(DOMString type, optional EventInit eventInitDict = {}); - Promise prompt(); -}; - -dictionary PromptResponseObject { - AppBannerPromptOutcome userChoice; -}; - -enum AppBannerPromptOutcome { - "accepted", - "dismissed" -}; - -partial interface Window { - attribute EventHandler onappinstalled; - attribute EventHandler onbeforeinstallprompt; -}; - dictionary WebAppManifest { TextDirectionType dir = "auto"; DOMString lang;