Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: third_party/pkg/angular/test/introspection_spec.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/test/introspection_spec.dart
diff --git a/third_party/pkg/angular/test/introspection_spec.dart b/third_party/pkg/angular/test/introspection_spec.dart
index 7740d2a0b21b80e05e50c8c5be66f5324aec7177..df8892b14599b060ae93c22e4f980e45e178966b 100644
--- a/third_party/pkg/angular/test/introspection_spec.dart
+++ b/third_party/pkg/angular/test/introspection_spec.dart
@@ -27,4 +27,11 @@ main() => describe('introspection', () {
expect(toHtml(ngQuery(div, 'li', 'secret'))).toEqual('<li>secret</li>');
expect(toHtml(ngQuery(div, 'li', 'xxx'))).toEqual('');
});
+
+ it('should select elements in the root shadow root', () {
+ var div = new Element.html('<div></div>');
+ var shadowRoot = div.createShadowRoot();
+ shadowRoot.innerHtml = '<ul><li>stash</li><li>secret</li><ul>';
+ expect(toHtml(ngQuery(div, 'li'))).toEqual('<li>stash</li><li>secret</li>');
+ });
});
« no previous file with comments | « third_party/pkg/angular/test/directive/ng_switch_spec.dart ('k') | third_party/pkg/angular/test/mock/http_backend_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698