Skip to content

Conversation

@aslushnikov
Copy link
Contributor

This patch:

  • re-makes test for EH.boxModel to make it more readable
  • slightly changes wording in the docs/api.md.

References #1357.

This patch:
- re-makes test for EH.boxModel to make it more readable
- slightly changes wording in the `docs/api.md`.

References puppeteer#1357.
@aslushnikov
Copy link
Contributor Author

cc @yanivefraim

expect(box.width).toBe(6);
expect(box.height).toBe(7);
expect(box.margin[0]).toEqual({
x: 1 + 4, // frame.left + div.left
Copy link
Contributor

@yanivefraim yanivefraim Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, really liked it!
Maybe 1 + 4 can be replaced with variables (frameLeft + divLeft), so no need for comments here, wdyt? (:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanivefraim started there, and had to pull them from pptr context into the browser context. This felt like too much of a hassle!

@aslushnikov aslushnikov merged commit c4da19b into puppeteer:master Mar 30, 2018
@aslushnikov aslushnikov deleted the new-test branch May 9, 2018 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants