puppeteer/test
Andrey Lushnikov b73737302a
fix: convert all getters to methods (#1621)
The patch converts all the getters in the codebase into the methods.
For example, the `request.url` getter becomes the `request.url()`
method.

This is done in order to unify the API and make it more predictable.
The general rule for all further changes would be:
- there are no getters/fields exposed in the api
- the only exceptions are "namespaces", e.g. `page.keyboard`

Fixes #280.

BREAKING CHANGE:
This patch ditches getters and replaces them with methods throughout
the API. The following methods were added instead of the fields:
- dialog.type()
- consoleMessage.args()
- consoleMessage.text()
- consoleMessage.type()
- request.headers()
- request.method()
- request.postData()
- request.resourceType()
- request.url()
- response.headers()
- response.ok()
- response.status()
- response.url()
2017-12-18 17:05:57 -08:00
..
assets Test: add tests to cover clicking checkbox (#1125) 2017-11-07 20:38:22 -08:00
golden test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
server [api] Implement page.authenticate method (#729) 2017-09-11 16:32:13 -07:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
frame-utils.js test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
golden-utils.js tests: drop jasmine test runner (#1519) 2017-12-07 16:37:22 -08:00
test.js fix: convert all getters to methods (#1621) 2017-12-18 17:05:57 -08:00