web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
4.91k stars 3.06k forks source link

Infrastructure needs for testing GetInstalledRelatedApps #20222

Open rayankans opened 4 years ago

rayankans commented 4 years ago

GetInstalledRelatedApps (spec) is an API for checking whether a related native app is installed on the device.

It's hard to create a useful shared test-suite right now without the ability to install apps in the testing environment. I'm not sure how feasible that would be though.

foolip commented 4 years ago

Is this something that could be tested on Linux/macOS/Windows in principle, or does it only make sense for Android and iOS?

If we did have a way to install other apps on an Android emulator or a way to pretend that we do using WebDriver, would WPT be the best way to test this? My hunch is that only a rather thin slice of the implementation would be exercises by shared tests, since presumably the OS-agnostic bits that can be assumed are only plumbing through a list from the lower layers.

That's not to say testing this wouldn't be useful, but it seems like a case where the web layer bits are unusually thin.