Jack Franklin
8a099a0c2c
docs: replace @return with @returns ( #6006 )
...
The former is not understood by TSDoc.
2020-06-12 12:38:24 +02:00
Jack Franklin
4fdb1e3cab
chore: add Prettier ( #5825 )
2020-05-07 12:54:55 +02:00
Jack Franklin
1ccfbcb684
chore: enforce naming of errors in catch blocks ( #5763 )
2020-04-28 15:16:28 +02:00
Jack Franklin
e3922ea1f3
chore: enforce consistent spacing around object curlys ( #5700 )
...
The codebase was incredibly inconsistent with the use of spacing around
curly braces, e.g.:
```
// this?
const a = {b: 1}
// or?
const a = { b: 1 }
```
This extended into import statements also. Google's styleguide is no
spacing, so we're going with that.
2020-04-21 10:40:04 +01:00
Jack Franklin
17cd8703f9
chore: migrate unit tests to Mocha ( #5600 )
...
Rather than maintain our own test runner we should instead lean on the community and use Mocha which is very popular and also our test runner of choice in DevTools too.
Note that this commit doesn't remove the TestRunner source as it's still used for other unit tests, but they will be updated in a future PR and then we can remove the TestRunner.
The main bulk of this PR is updating the tests as the old TestRunner passed in contextual data via the `it` function callback whereas Mocha does not, so we introduce some helpers for the tests to make it easier.
2020-04-09 07:56:25 +02:00
Maja Frydrychowicz
0b1a9ceee2
chore: Replace Juggler with Firefox Nightly in CI ( #5395 )
...
Fixes #5150 .
2020-02-20 13:57:15 +01:00
Mathias Bynens
eddb23b521
chore: update URLs ( #5185 )
2019-11-26 13:12:25 +01:00
Mathias Bynens
81d2600236
feat(chromium): roll Chromium to r705776 ( #5058 )
...
This corresponds to Chromium 79.0.3942.0.
This roll includes:
- Support CSS media feature emulation in CDP
https://chromium-review.googlesource.com/c/chromium/src/+/1821608
- Implement timezone ID verification
https://chromium-review.googlesource.com/c/chromium/src/+/1822557
- Allow aria-hidden objects into the browser-side ax tree
https://chromium-review.googlesource.com/c/chromium/src/+/1760862
- Remove pre-BlinkGenPropertyTrees codepaths (affects screenshot clipping)
https://chromium-review.googlesource.com/c/chromium/src/+/1752244
- Terminate some asynchronous waiting commands on cross-process navigation
https://chromium-review.googlesource.com/c/chromium/src/+/1766001/21#message-a6a61261b97ffca6ecb180c0a2303b538f7a6476
Per upstream Chromium changes, `page.screenshot` now clips elements to the viewport. This matches the clipping behavior of elements in inner scrollers (i.e., document and overflow scroll clipping now work the same).
2019-10-23 11:41:44 +02:00
Darío Kondratiuk
b9b6ca1825
fix(network): be able to remove headers using request.continue ( #4797 )
...
I think this was a regression caused here https://github.com/GoogleChrome/puppeteer/pull/4265/files#diff-d2ac7cb061b0c51644d0a5d6140e3a32R446
Fix #4743
2019-08-05 15:26:17 -07:00
Joel Einbinder
f2056a8e25
fix(test): enable redirect inside sync XHR test ( #4805 )
...
The underlying bug appears to have been fixed. Test works.
2019-08-05 15:19:34 -07:00
Andrey Lushnikov
8df0b3ec3b
fix(network): allow fulfilling requests with status code 422 ( #4566 )
...
Migration onto fetch domain (2265974ce5
)
changed the way we generate status texts: instead of relying on build-in
list of statuses, we tried to rely upon the [Chromium implementation](https://cs.chromium.org/chromium/src/net/http/http_status_code_list.h?sq=package:chromium&g=0 ).
Puppeteer's list is much more exhaustive - let's keep it.
Fix #4454
2019-06-10 17:39:58 -07:00
Andrey Lushnikov
15804d111a
test: remove debug console.log ( #4522 )
2019-06-04 16:27:36 -07:00
Andrey Lushnikov
d221c02c13
test: add test to verify fetching of dataURL requests ( #4233 )
2019-05-31 17:11:55 -07:00
Jake Causon
90a1032300
fix(network): stringify response headers for intercepted requests ( #4436 )
...
Stringifying the headers was the behaviour before v1.15
References #4379
2019-05-20 11:05:32 +03:00
Andrey Lushnikov
f3db28c94b
test: add failing test for request interception with sync XHRs ( #4350 )
...
`Network.requestWillBeSent` is not issued for the redirect inside
sync XHRs.
References #4337 .
2019-04-26 16:28:15 -07:00
Andrey Lushnikov
770411be9d
test: verify overriding postdata and method on navigation ( #4317 )
...
References #4309
2019-04-19 18:22:30 -07:00
Andrey Lushnikov
8f8e77492d
test: split out request interception tests ( #4278 )
2019-04-11 21:33:01 -04:00