Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
test(introspection): Make introspection work with Polymer polyfills
Browse files Browse the repository at this point in the history
For #801
  • Loading branch information
jbdeboer committed Apr 2, 2014
1 parent 2476545 commit 5303d3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/introspection_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ void main() {
expect(js.context['ngInjector']).toBeDefined();
expect(js.context['ngQuery']).toBeDefined();

expect(js.context['ngProbe'].apply([js.context['ngtop']])).toBeDefined();

// Polymer does not support accessing named elements directly (e.g. window.ngtop)
// so we need to use getElementById to support Polymer's shadow DOM polyfill.
expect(js.context['ngProbe'].apply([document.getElementById('ngtop')])).toBeDefined();
});
});
}

0 comments on commit 5303d3c

Please sign in to comment.