puppeteer/test
Andrey Lushnikov 0b94fa70eb
chore: stop using console.assert everywhere (#2646)
Since Node 10, `console.assert` no longer throws an AssertionError.
(This is generally good since it aligns Node.js with Browsers.)

This patch migrates all usages of `console.assert` in our codebase.
- All the `lib/` and testing code is migrated onto a handmade `assert`
function. This is to make Puppeteer transpilation / bundling easier.
- All the tooling is switched to use Node's `assert` module.

Fixes #2547.
2018-05-31 16:53:51 -07:00
..
assets fix(tests): normalize scrollbars in headful tests (#2622) 2018-05-29 15:30:08 -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(server): Fix mismatch between args and annotations (#2426) 2018-04-23 10:01:16 -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): respect timeout 0 in page.waitForFunction (#2563) 2018-05-25 16:45:04 -07:00
golden-utils.js chore(deps): bump dependencies (#2397) 2018-04-17 14:51:03 -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 test: verify file url interception works as expected (#2451) 2018-04-26 13:32:23 -07:00
page.spec.js fix(workers): workaround worker execution context flakiness (#2596) 2018-05-30 18:08:27 -07:00
puppeteer.spec.js test: fix flaky test (#2650) 2018-05-31 16:39:49 -07:00
target.spec.js feat(Target): Pass through "background_page" types (#2439) (#2493) 2018-05-16 14:36:34 -07:00
test.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07: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