Andrey Lushnikov
939038bb08
Convert event names to small caps
...
This patch takes inspiration from DOM events and makes all the
events small-caps.
2017-05-13 12:04:30 -07:00
Andrey Lushnikov
15b36b1cf0
Drop unneeded Page Event's prefixes.
...
This patch drops 'Page.Event.' prefix in every puppeteer's page
event. This makes it convenient to subscribe to events by their
string value.
2017-05-13 11:12:06 -07:00
Andrey Lushnikov
8a8076c15b
Rename Page.Events.ConsoleMessageAdded -> Page.Events.ConsoleMessage
...
This patch:
- renames ConsoleMessageAdded into ConsoleMessage for the sake of
clarity
- adds a test to cover basic functionality
2017-05-13 11:05:54 -07:00
Andrey Lushnikov
ab6a96a991
Fix License header of certain examples
...
Certain examples rely extensively on the originating PhantomJS
examples.
This patch fixes license headers of these examples to mention
PhantomJS authors.
2017-05-12 16:48:02 -07:00
Andrey Lushnikov
62e68159f4
Re-implement phantom's examples/features.js in puppeteer api.
2017-05-12 14:57:55 -07:00