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

Unified Diff: third_party/pkg/angular/test/filter/currency_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/filter/currency_spec.dart
diff --git a/third_party/pkg/angular/test/filter/currency_spec.dart b/third_party/pkg/angular/test/filter/currency_spec.dart
deleted file mode 100644
index 12219233b8e1a40e0647a28c367c9cda01de7a43..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/test/filter/currency_spec.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-library curerncy_spec;
-
-import '../_specs.dart';
-
-main() => describe('number', () {
- var currency;
-
- beforeEach(inject((FilterMap map, Injector injector) {
- currency = injector.get(map[new NgFilter(name: 'currency')]);
- }));
-
-
- it('should do basic currency filtering', () {
- expect(currency(0)).toEqual(r'$0.00');
- expect(currency(-999)).toEqual(r'($999.00)');
- expect(currency(1234.5678, r"USD$")).toEqual(r'USD$1,234.57');
- });
-
-
- it('should return empty string for non-numbers', () {
- expect(currency(null)).toEqual(null);
- });
-
- it('should handle zero and nearly-zero values properly', () {
- // This expression is known to yield 4.440892098500626e-16 instead of 0.0.
- expect(currency(1.07 + 1 - 2.07)).toEqual(r'$0.00');
- expect(currency(0.008)).toEqual(r'$0.01');
- expect(currency(0.003)).toEqual(r'$0.00');
- });
-});
« no previous file with comments | « third_party/pkg/angular/test/directive/ng_template_spec.dart ('k') | third_party/pkg/angular/test/filter/date_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698