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

Unified Diff: third_party/pkg/angular/test/directive/ng_pluralize_spec.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/directive/ng_pluralize_spec.dart
diff --git a/third_party/pkg/angular/test/directive/ng_pluralize_spec.dart b/third_party/pkg/angular/test/directive/ng_pluralize_spec.dart
index 951e1c80a3117e09521d8ddc558f9e2ef38d842f..b70f4cfdf6289d2f060a24d2edc8e9fa54796e14 100644
--- a/third_party/pkg/angular/test/directive/ng_pluralize_spec.dart
+++ b/third_party/pkg/angular/test/directive/ng_pluralize_spec.dart
@@ -11,7 +11,7 @@ main() {
var elt;
TestBed _;
- beforeEach(inject((TestBed tb) {
+ beforeEach((TestBed tb) {
_ = tb;
element = _.compile(
@@ -31,7 +31,7 @@ main() {
"when-other='You have {} new emails'>" +
'</p>'
);
- }));
+ });
it('should show single/plural strings', () {
_.rootScope.context['email'] = '0';
@@ -129,7 +129,7 @@ main() {
});
describe('edge cases', () {
- it('should be able to handle empty strings as possible values', (inject((TestBed _) {
+ it('should be able to handle empty strings as possible values', ((TestBed _) {
var element = _.compile(
'<ng-pluralize count="email"' +
"when=\"{'0': ''," +
@@ -139,11 +139,11 @@ main() {
_.rootScope.context['email'] = '0';
_.rootScope.apply();
expect(element.text).toEqual('');
- })));
+ }));
});
describe('deal with pluralized strings with offset', () {
- it('should show single/plural strings with offset', (inject((TestBed _) {
+ it('should show single/plural strings with offset', ((TestBed _) {
var element = _.compile(
"<ng-pluralize count='viewCount' offset='2' " +
"when=\"{'0': 'Nobody is viewing.'," +
@@ -187,7 +187,7 @@ main() {
_.rootScope.apply();
expect(element.text).toEqual('Igor, Misko and 2 other people are viewing.');
expect(elementAlt.text).toEqual('Igor, Misko and 2 other people are viewing.');
- })));
+ }));
});
});
}

Powered by Google App Engine
This is Rietveld 408576698