feat(test): find testabilities across dart js applications#3611
feat(test): find testabilities across dart js applications#3611TedSander wants to merge 1 commit into
Conversation
|
@hankduan can you review this for me? |
|
Instead of creating all these wrapper registries (i.e. _createRegistry), isn't it cleaner to do this (pseudo-code): This way you don't have an unnecessary wrapping of the original registries. @tbosch Can you also review this to see if this solution looks good to you? (essentially with multiple ng2 apps, the globals could override each other, and getAngularTestability/getAllAngularTestabilities would only read from the last registered registry). |
|
Registry is a dart object which needs to live in the js address space since it needs to be available to all apps. To my knowledge the objects need to be converted to jsFunctions, or jsMaps, or jsObjects. I don't think the registry itself can be converted easily. So I convert the wrappers instead. |
Find angular testability objects across different dart js contexts by registering each application in a global array and interrogating each for testabilities.
|
Does _jsify not work? |
|
Anyway if Registry can't be jsified, then LGTM. It would be good if you wait till Tobias takes a look though as he's much more familiar with Testability and Dart than I am. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Find angular testability objects across different dart js contexts by
registering each application in a global array and interrogating each
for testabilities.