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

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

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « third_party/pkg/angular/test/filter/uppercase_spec.dart ('k') | third_party/pkg/angular/test/io/all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index df8892b14599b060ae93c22e4f980e45e178966b..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/test/introspection_spec.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-library introspection_spec;
-
-import '_specs.dart';
-
-main() => describe('introspection', () {
- it('should retrieve ElementProbe', inject((TestBed _) {
- _.compile('<div ng-bind="true"></div>');
- ElementProbe probe = ngProbe(_.rootElement);
- expect(probe.injector.parent).toBe(_.injector);
- expect(ngInjector(_.rootElement).parent).toBe(_.injector);
- expect(probe.directives[0] is NgBindDirective).toBe(true);
- expect(ngDirectives(_.rootElement)[0] is NgBindDirective).toBe(true);
- expect(probe.scope).toBe(_.rootScope);
- expect(ngScope(_.rootElement)).toBe(_.rootScope);
- }));
-
- toHtml(List list) => list.map((e) => e.outerHtml).join('');
-
- it('should select elements using CSS selector', () {
- var div = new Element.html('<div><p><span></span></p></div>');
- var span = div.querySelector('span');
- var shadowRoot = span.createShadowRoot();
- shadowRoot.innerHtml = '<ul><li>stash</li><li>secret</li><ul>';
-
- expect(toHtml(ngQuery(div, 'li'))).toEqual('<li>stash</li><li>secret</li>');
- expect(toHtml(ngQuery(div, 'li', 'stash'))).toEqual('<li>stash</li>');
- 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/filter/uppercase_spec.dart ('k') | third_party/pkg/angular/test/io/all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698