desktoptest

command
v1.16.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command desktoptest is the program of the browser tests of the web desktop services (step 21.6, SPEC §17, §23.7). It is a small Material app. In the browser it replaces window.open and the Notification constructor of the page by stubs that record what they are asked and that it settles by hand (the browser's permission prompt cannot be answered in a headless test), calls desktop.OpenURI and desktop.ShowNotification from a goroutine as an app does, and posts what it saw to the test server as a result of kind "desktop": the arguments window.open got, the tags of the errors, whether a refused permission was asked for again, the options the Notification was made with, and the callbacks that came back on the UI thread. The code under test is the real one; only the browser's objects are stubs.

It only does something on the web; elsewhere it says so and exits. It is built by the tests with the web build tool (webtool.Build), not run by hand.

Flutter: no counterpart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL