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

Unified Diff: third_party/pkg/angular/test/core_dom/directive_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
Index: third_party/pkg/angular/test/core_dom/directive_spec.dart
diff --git a/third_party/pkg/angular/test/core_dom/directive_spec.dart b/third_party/pkg/angular/test/core_dom/directive_spec.dart
deleted file mode 100644
index 26330eb000b92615789e87bb4c1ec6303b47fed0..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/test/core_dom/directive_spec.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-library directive_spec;
-
-import '../_specs.dart';
-
-main() {
- describe('NodeAttrs', () {
- var element;
- var nodeAttrs;
- TestBed _;
-
- beforeEach(inject((TestBed tb) {
- _ = tb;
- element = _.compile('<div foo="bar" foo-bar="baz" foo-bar-baz="foo"></div>');
- nodeAttrs = new NodeAttrs(element);
- }));
-
- it('should transform names to camel case', () {
- expect(nodeAttrs['foo']).toEqual('bar');
- expect(nodeAttrs['foo-bar']).toEqual('baz');
- expect(nodeAttrs['foo-bar-baz']).toEqual('foo');
- });
-
- it('should return null for unexistent attributes', () {
- expect(nodeAttrs['baz']).toBeNull();
- });
-
- it('should provide a forEach function to iterate over attributes', () {
- Map<String, String> attrMap = new Map();
- nodeAttrs.forEach((k, v) => attrMap[k] = v);
- expect(attrMap).toEqual({'foo': 'bar', 'foo-bar': 'baz', 'foo-bar-baz': 'foo'});
- });
-
- it('should provide a contains method', () {
- expect(nodeAttrs.containsKey('foo')).toEqual(true);
- expect(nodeAttrs.containsKey('foo-bar')).toEqual(true);
- expect(nodeAttrs.containsKey('foo-bar-baz')).toEqual(true);
- expect(nodeAttrs.containsKey('bar-foo')).toEqual(false);
- });
-
- it('should return the attribute names', () {
- expect(nodeAttrs.keys.toList()..sort()).toEqual(['foo', 'foo-bar', 'foo-bar-baz']);
- });
- });
-}
« no previous file with comments | « third_party/pkg/angular/test/core_dom/cookies_spec.dart ('k') | third_party/pkg/angular/test/core_dom/http_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698