Copyright © 2021-2022 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark and permissive document license rules apply.
Description of the MiniApp tests.
This document is merely a W3C-internal document. It has no official standing of any kind and does not represent consensus of the W3C Membership.
w3c/miniapp-tests is the repository for the the tests to validate the implementability of W3C's MiniApp specifications, specifically MiniApp Packaging (the specification for the MiniApp format itself), MiniApp Lifecycle (the specification for events related to MiniApp lifecycle), and MiniApp Manifest (the specification for describing and configuring MiniApps through a manifest document).
The development of the tests is a community effort (see the list of contributors). Everyone is welcome to contribute tests; please read the separate contribution guidelines if you are interested.
This document provides a short overview for each test, grouped into separate tables by test categories. The columns in the tables are as follows:
must
, should
, or may
).
Strictly speaking, the should
and may
tests are not necessary for the official CR testing of
the specifications. These tests are currently visible in the tables below; to change their visibility, click the
switch visibility button below.
Id | Req | Title | Description | Specs | Ref |
---|---|---|---|---|---|
pkg-css-global-support | must | Global CSS stylesheet affects all pages | Global CSS stylesheet must affect all pages. The test includes CSS properties in the app.css over that will affect the text on the entry page, showing a black text on yellow background. | (1) | ❐ |
pkg-pages-same-filenames | must | A page with resources with same filename | The entry page includes three resources (.html, .css, and .js) with the same filename. The app must be loaded. | (1) | ❐ |
pkg-root-app-css-empty | may | Empty global app.css | The app.css global stylesheet may be empty. The app must be loaded. | (1) | ❐ |
Id | Req | Title | Description | Specs | Ref |
---|---|---|---|---|---|
mnf-window-background-color | must | Window background color set | The window's background member is set to #00FF00, so the app page must have a green background. | (1) | ❐ |
mnf-window-background-color-default | must | Window background color set by default | If the window's background member is not set, the app page must have a white background by default. | (1) | ❐ |
mnf-window-fullscreen-default | must | No full-screen by default | No window's full-screen member declared in the manifest, so ehe app must not be in full-screen mode. | (1) | ❐ |
mnf-window-fullscreen-true | must | Fullscreen enabled in manifest | The window's fullscreen member is set to true in the manifest. The app must be shown in fullscreen. | (1) | ❐ |
mnf-window-orientation-default | must | Portrait orientation by default | No window's orientation member declared in the manifest, so the app display must be in portrait mode by default. | (1) | ❐ |
mnf-window-orientation-landscape | must | Landscape orientation defined in manifest | The window's orientation member is set to landscape in the manifest, so the app display must be in landscape mode. | (1) | ❐ |
mnf-window-orientation-portrait | must | Portrait orientation defined in manifest | The window's orientation member is set to portrait in the manifest. The app display must be in portrait mode. | (1) | ❐ |
Id | Req | Title | Description | Specs | Ref |
---|---|---|---|---|---|
lcy-global-launched-callback-page-path | must | Global shown callback on the first page | Once the app is launched and the first page is shown, the callback must return an object. The pagePath member must be the same as the first page. | (1) | ❐ |
The following experts contributed to the test suite:
This testing methodology is based on the EPUB tests, developed by Ivan Herman, Dan Lazin, and the rest of the group.