https://github.com/nwutils/nw-test-suite
WIP: Testing suite for NW.js API
https://github.com/nwutils/nw-test-suite
Last synced: over 1 year ago
JSON representation
WIP: Testing suite for NW.js API
- Host: GitHub
- URL: https://github.com/nwutils/nw-test-suite
- Owner: nwutils
- License: mit
- Created: 2021-12-14T14:52:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T18:24:04.000Z (over 1 year ago)
- Last Synced: 2025-01-13T11:24:28.064Z (over 1 year ago)
- Language: HTML
- Homepage: https://nwutils.io
- Size: 240 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# nw-api-sanity-check
_WIP_ - NW.js cross platform test suite using prebuilt binary to quickly test its API.
## Running Locally
1. fork/clone/download
1. `npm install`
1. `npm start` to run automated tests
1. `npm manual` to run manual tests in the window (instructions provided)
### Known Issues
- **API:** `nw.Window.*`
- **Platform:** N/A
- **Issue:** Not an issue but potential improvement.
- **Todo:** Test each `nw.Window.*` component separately.
- **API:** `nw.Window.height`
- **Platform:** MacOS
- **Issue:** Actual height is 28px more than user input height.
- **Todo:** Fix this behavior in upstream
- **API:** `nw.Window.on` `devtools-closed`
- **Platform:** All
- **Issue:** This event is currently not supported.
- **Todo:** Use `nw-build-tools` to run debug build and test if it works.
- **API:** `Chromedriver`
- **Platform:** Windows
- **Issue:** Fails for Windows. Need to investigate.
- **Todo:** Maybe find Chromedriver path via `nw` Node module's `findpath` function?
### Questions
- `nw.App.clearAppCache('');` - Don't know what to pass into this function. Docs just say "manifest_url"?
- `` - Points to [Manifest docs](https://nwjs.readthedocs.io/en/latest/References/Manifest%20Format/#user-agent) for user agent, which has placeholders, but they don't work in this context. Should they? Is this a bug?
- To test: `` should show real values, not just the placeholders.
- Should console logs from a Node context appear in the background page inspector or the window? Logically to me it should be the background page (which is how it works), but the docs aren't clear.
- `process.mainModule` is an object while [the docs](https://nwjs.readthedocs.io/en/latest/References/Changes%20to%20Node/#process) indicate it would be a string