puppeteer/test
JoelEinbinder bbde8fd1c2 page.evaluate takes a string in addition to function (#135)
This patch improves on page.evaluate to accept a string.
The string can have a trailing '//# sourceURL=' comment which would
name the evaluation to make stacks beautiful.

In order to make sourceURL comments possible, this patch:
- removes wrapping of the client function into `Promise.resolve()`
- stops passing `awaitPromise` parameter to `Runtime.evaluate`
- starts to await promise via the `Runtime.awaitPromise` if the return type of the evaluation
  is promise

closes #118
2017-07-27 12:23:41 -07:00
..
assets Inject file with sourceURL (#102) 2017-07-23 09:56:35 -07:00
golden Move screenshot task chain in Browser 2017-07-19 14:15:16 -07:00
server Resolve pending callbacks when connection closes 2017-07-19 01:00:02 -07:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
frame-utils.js Convert var's to let's 2017-06-22 14:58:39 -07:00
golden-utils.js Make test/golden-utils.js reusable 2017-07-13 10:07:24 -07:00
test.js page.evaluate takes a string in addition to function (#135) 2017-07-27 12:23:41 -07:00