-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test # of dom operations with MutationObserver #6
Comments
A: no 😢 Q2: does phantom support mutation observer? If so, I may switch over. A2: Phantom 2.0 does apparently, but...it isn't released? For my purposes, no, it does not. Polymer has a polyfill over here that I should look into. It'd be awesome if this polyfill works with JSDom. |
@megawac also has a MutationObserver shim. |
Neither polymers or my implementation will do what you want (we batch after a timeout). You can consider using slimer or firefox + xfvb |
:( |
@megawac messaged me some good libraries to check out to implement slimer. The big one is this karma adapter. And apparently there's a mocha adapter for karma, as well. I guess I'll go the slimer route, assuming it supports MutationObserver. Thanks for the suggestions @megawac. |
Karma is awesome. Feel free to reference Minionette for setup. |
Definitely will. Thanks @jridgewell :) |
Until I get Karma and Slimer set up I made a quick little repo for testing this sort of thing. Check it out here. |
Every action in Puppets should cause at most 2 DOM operations: one for removing what used to be there, and another for adding the new content.
I can test this with MutationObserver.
Q: does JSDom support mutation observer?
The text was updated successfully, but these errors were encountered: