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

Unified Diff: third_party/pkg/angular/test/filter/number_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/number_spec.dart
diff --git a/third_party/pkg/angular/test/filter/number_spec.dart b/third_party/pkg/angular/test/filter/number_spec.dart
deleted file mode 100644
index 8e3d4db92c50ac416eb9aabdb0d8d51b837ae9e2..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/test/filter/number_spec.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-library number_spec;
-
-import '../_specs.dart';
-
-main() => describe('number', () {
- var number;
-
- beforeEach(inject((FilterMap map, Injector injector) {
- number = injector.get(map[new NgFilter(name: 'number')]);
- }));
-
-
- it('should do basic filter', () {
- expect(number(0, 0)).toEqual('0');
- expect(number(-999)).toEqual('-999');
- expect(number(123)).toEqual('123');
- expect(number(1234567)).toEqual('1,234,567');
- expect(number(1234)).toEqual('1,234');
- expect(number(1234.5678)).toEqual('1,234.568');
- expect(number(double.NAN)).toEqual('');
- expect(number("1234.5678")).toEqual('1,234.568');
- expect(number(1/0)).toEqual("∞");
- expect(number(1, 2)).toEqual("1.00");
- expect(number(.1, 2)).toEqual("0.10");
- expect(number(.01, 2)).toEqual("0.01");
- expect(number(.001, 3)).toEqual("0.001");
- expect(number(.0001, 3)).toEqual("0.000");
- expect(number(9, 2)).toEqual("9.00");
- expect(number(.9, 2)).toEqual("0.90");
- expect(number(.99, 2)).toEqual("0.99");
- expect(number(.999, 3)).toEqual("0.999");
- expect(number(.9999, 3)).toEqual("1.000");
- expect(number(1234.567, 0)).toEqual("1,235");
- expect(number(1234.567, 1)).toEqual("1,234.6");
- expect(number(1234.567, 2)).toEqual("1,234.57");
- });
-
- it('should filter exponentially small numbers', () {
- expect(number(1e-50, 0)).toEqual('0');
- expect(number(1e-6, 6)).toEqual('0.000001');
- expect(number(1e-7, 6)).toEqual('0.000000');
-
- expect(number(-1e-50, 0)).toEqual('-0');
- expect(number(-1e-6, 6)).toEqual('-0.000001');
- expect(number(-1e-7, 6)).toEqual('-0.000000');
- });
-});
« no previous file with comments | « third_party/pkg/angular/test/filter/lowercase_spec.dart ('k') | third_party/pkg/angular/test/filter/order_by_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698