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

Unified Diff: test/dart_codegen/expect/math/point.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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: test/dart_codegen/expect/math/point.dart
diff --git a/test/dart_codegen/expect/math/point.dart b/test/dart_codegen/expect/math/point.dart
index 97371a8557f969288b3377f99ca66af948e95e8c..4ee66bd5ad46f0ad8f7e3548464aac94a6d74dc5 100644
--- a/test/dart_codegen/expect/math/point.dart
+++ b/test/dart_codegen/expect/math/point.dart
@@ -1,37 +1,31 @@
part of dart.math;
-
-class Point<T extends num> {
- final T x;
- final T y;
- const Point(T x, T y)
- : this.x = x,
- this.y = y;
- String toString() => 'Point($x, $y)';
- bool operator ==(other) {
- if (other is! Point) return false;
- return x == other.x && y == other.y;
+ class Point<T extends num> {final T x;
+ final T y;
+ const Point(T x, T y) : this.x = x, this.y = y;
+ String toString() => 'Point($x, $y)';
+ bool operator ==(other) {
+ if (other is! Point) return false;
+ return x == other.x && y == other.y;
}
- int get hashCode => _JenkinsSmiHash.hash2(x.hashCode, y.hashCode);
- Point<T> operator +(Point<T> other) {
- return new Point<T>(x + other.x, y + other.y);
+ int get hashCode => _JenkinsSmiHash.hash2(x.hashCode, y.hashCode);
+ Point<T> operator +(Point<T> other) {
+ return new Point<T>(x + other.x, y + other.y);
}
- Point<T> operator -(Point<T> other) {
- return new Point<T>(x - other.x, y - other.y);
+ Point<T> operator -(Point<T> other) {
+ return new Point<T>(x - other.x, y - other.y);
}
- Point<T> operator *(num factor) {
- return new Point<T>(x * factor, y * factor);
+ Point<T> operator *(num factor) {
+ return new Point<T>(x * factor, y * factor);
}
- double get magnitude => sqrt(x * x + y * y);
- double distanceTo(Point<T> other) {
- var dx = x - other.x;
- var dy = y - other.y;
- return sqrt(dx * dx + dy * dy);
+ double get magnitude => sqrt(x * x + y * y);
+ double distanceTo(Point<T> other) {
+ var dx = x - other.x;
+ var dy = y - other.y;
+ return sqrt(dx * dx + dy * dy);
}
- T squaredDistanceTo(Point<T> other) {
- var dx = x - other.x;
- var dy = y - other.y;
- return ((__x0) => DDC$RT.cast(__x0, num, T, "CastGeneral",
- """line 86, column 12 of dart:math/point.dart: """, __x0 is T,
- false))(dx * dx + dy * dy);
+ T squaredDistanceTo(Point<T> other) {
+ var dx = x - other.x;
+ var dy = y - other.y;
+ return ((__x0) => DDC$RT.cast(__x0, num, T, "CastGeneral", """line 86, column 12 of dart:math/point.dart: """, __x0 is T, false))(dx * dx + dy * dy);
}
}

Powered by Google App Engine
This is Rietveld 408576698