2017-05-11 07:06:41 +00:00
|
|
|
### Status
|
|
|
|
|
|
|
|
Test results on Mac OS X in headless mode:
|
|
|
|
```
|
|
|
|
111 passed
|
|
|
|
20 failed as expected
|
|
|
|
1 skipped
|
|
|
|
49 unsupported
|
|
|
|
```
|
|
|
|
|
|
|
|
### Installing
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm i
|
|
|
|
npm link # this adds puppeteer to $PATH
|
|
|
|
```
|
|
|
|
|
|
|
|
### Run
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# run phantomjs script
|
|
|
|
puppeteer third_party/phantomjs/examples/colorwheel.js
|
|
|
|
|
|
|
|
# run 'headful'
|
|
|
|
puppeteer --no-headless third_party/phantomjs/examples/colorwheel.js
|
|
|
|
|
|
|
|
# run puppeteer example
|
|
|
|
node examples/screenshot.js
|
|
|
|
```
|
|
|
|
|
|
|
|
### Tests
|
|
|
|
|
2017-05-12 23:36:37 +00:00
|
|
|
Run all tests:
|
|
|
|
```
|
|
|
|
npm test
|
|
|
|
```
|
|
|
|
|
2017-05-11 07:06:41 +00:00
|
|
|
Run phantom.js tests using puppeteer:
|
|
|
|
```
|
2017-05-12 23:36:37 +00:00
|
|
|
npm run test-phantom
|
|
|
|
```
|
|
|
|
|
|
|
|
Run puppeteer tests:
|
|
|
|
```
|
|
|
|
npm run test-puppeteer
|
2017-05-11 07:06:41 +00:00
|
|
|
```
|