puppeteer/test/golden
Andrey Lushnikov a5db6d412c
test: migrate test.js to support concurrent test execution (#1531)
This patch migrates tests so that they can be run concurrently.

- By default, tests still run in one thread.
- To run tests in 4 parallel threads, run node test/test.js -j 4 or npm run unit -- -j 4
- Environment variable PPTR_PARALLEL_TESTS could be set to override default parallelization

Every test gets passed in a state. State is set up in the beforeAll and beforeEach callbacks,
and should be teared down in the afterAll and afterEach callbacks.

By default, state has a parallelIndex variable initialized that defines the thread index that runs the execution.
2017-12-12 13:34:21 -08:00
..
grid-cell-0.png Move screenshot task chain in Browser 2017-07-19 14:15:16 -07:00
grid-cell-1.png Move screenshot task chain in Browser 2017-07-19 14:15:16 -07:00
grid-cell-2.png Move screenshot task chain in Browser 2017-07-19 14:15:16 -07:00
grid-cell-3.png Move screenshot task chain in Browser 2017-07-19 14:15:16 -07:00
mock-binary-response.png feat(interception): Implement request.mockResponse method (#1064) 2017-10-20 16:55:15 -07:00
nested-frames.txt test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
reconnect-nested-frames.txt test: migrate test.js to support concurrent test execution (#1531) 2017-12-12 13:34:21 -08:00
screenshot-clip-odd-size.png test: add test to make sure clipping is correct on retina displays (#1111) 2017-10-20 10:45:22 -07:00
screenshot-clip-rect.png Use digit images in test/assets/grid.html 2017-06-16 16:00:36 -07:00
screenshot-element-bounding-box.png feat(ElementHandle): add EH.boundingBox and EH.screenshot 2017-10-09 23:14:09 -07:00
screenshot-element-padding-border.png feat(chromium): roll chromium to r508693 (#1031) 2017-10-13 13:52:28 -07:00
screenshot-element-rotate.png fix(ElementHandle.boundingBox): account for margin, padding, and border in element.boxModel (#1017) 2017-10-12 17:53:59 -07:00
screenshot-element-scrolled-into-view.png fix(ElementHandle.screenshot): account for scroll (#1323) 2017-11-10 16:02:52 -08:00
screenshot-grid-fullpage.png Implement fullPage screenshots 2017-06-16 22:34:29 -07:00
screenshot-offscreen-clip.png Add screenshot test to verify clipping of offscreen areas. 2017-06-16 22:02:03 -07:00
screenshot-sanity.png Use digit images in test/assets/grid.html 2017-06-16 16:00:36 -07:00
transparent.png Allow capturing transparent screenshots (#354) 2017-08-17 21:11:39 -07:00