puppeteer
Advanced tools
Comparing version 1.0.0-next.1518044651367 to 1.0.0-next.1518069662486
@@ -48,2 +48,11 @@ # How to Contribute | ||
## API guidelines | ||
When authoring new API methods, consider the following: | ||
- expose as little information as needed. When in doubt, don’t expose new information | ||
- methods are used in favor of getters/setters | ||
- the only exception is namespaces, e.g. `page.keyboard` and `page.coverage` | ||
- all string literals must be small case. This includes event names and option values | ||
- avoid adding "sugar" API (API that is trivially implementable in user-space) unless they're **very** demanded | ||
## Commit Messages | ||
@@ -122,5 +131,5 @@ | ||
``` | ||
- To filter tests by name: | ||
- To run tests in parallel, use `-j` flag: | ||
``` | ||
npm run unit -- --filter=waitFor | ||
npm run unit -- -j 4 | ||
``` | ||
@@ -159,3 +168,3 @@ - To run a specific test, substitute the `it` with `fit` (mnemonic rule: '*focus it*'): | ||
``` | ||
npm run debug-unit | ||
node --inspect-brk test/test.js | ||
``` | ||
@@ -162,0 +171,0 @@ |
@@ -654,2 +654,10 @@ /** | ||
/** | ||
* @param {Boolean} enabled | ||
* @returns {!Promise} | ||
*/ | ||
async setCacheEnabled(enabled = true) { | ||
await this._client.send('Network.setCacheDisabled', {cacheDisabled: !enabled}); | ||
} | ||
/** | ||
* @param {!Object=} options | ||
@@ -656,0 +664,0 @@ * @return {!Promise<!Buffer>} |
{ | ||
"name": "puppeteer", | ||
"version": "1.0.0-next.1518044651367", | ||
"version": "1.0.0-next.1518069662486", | ||
"description": "A high-level API to control headless Chrome over the DevTools Protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
260160
6532