puppeteer/test
Andrey Lushnikov ddfdaf97c5
fix(page): fix race condition in WaitTask (#2739)
This patch eliminates a common race condition with WaitTask, that
happens when predicate function gets resolved right before the execution
context gets destroyed.
This situation results in a "Cannot find context with specified id undefined"
exception.

Credits go to @jakub300 for his wonderful [investigation](https://github.com/GoogleChrome/puppeteer/issues/1325#issuecomment-395472092).

Fixes #1325.
2018-06-14 11:39:51 -07:00
..
assets feat(targets): add target.opener() (#2641) 2018-05-31 17:06:29 -07:00
fixtures fix(test): add missing test for making sure chrome is closed (#2109) 2018-03-07 09:01:43 +03:00
golden chore(test): simplify element screenshot tests (#2093) 2018-02-23 15:54:26 -08:00
server test: make tests work on non-English locales (#2736) 2018-06-14 10:18:02 -07:00
browser.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
browsercontext.spec.js chore: bump dependencies (#2559) 2018-05-16 15:35:51 -07:00
CDPSession.spec.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00
cookies.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
coverage.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
elementhandle.spec.js fix(tests): normalize scrollbars in headful tests (#2622) 2018-05-29 15:30:08 -07:00
frame.spec.js fix(page): fix race condition in WaitTask (#2739) 2018-06-14 11:39:51 -07:00
golden-utils.js chore(deps): bump dependencies (#2397) 2018-04-17 14:51:03 -07:00
headful.spec.js fix: disable OOPIF by default (#2661) 2018-06-01 15:20:37 -07:00
input.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
jshandle.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
network.spec.js feat(network): introduce Request.isNavigationRequest() method (#2633) 2018-05-31 17:38:30 -07:00
page.spec.js fix(helpers): support thrown strings and numbers in getExceptionMessage (#2715) 2018-06-14 10:23:13 -07:00
puppeteer.spec.js fix(browser): ensure first page is created when browser is launched (#2658) 2018-06-01 13:57:50 -07:00
target.spec.js test: split out headful tests into headful.spec.js (#2657) 2018-06-01 13:48:34 -07:00
test.js feat: worker convenience methods (#2677) 2018-06-06 20:16:17 -05:00
tracing.spec.js feat(Tracing): return a buffer from tracing.stop (#2360) 2018-04-12 08:26:50 -07:00
utils.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00
worker.spec.js fix: emit all arguments from worker console logs (#2697) 2018-06-07 11:21:35 -07:00