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

Unified Diff: tests/lib/async/zone_value_test.dart

Issue 2763823002: Move spaces from before comments to within comments (Closed)
Patch Set: Fix comments Created 3 years, 9 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: tests/lib/async/zone_value_test.dart
diff --git a/tests/lib/async/zone_value_test.dart b/tests/lib/async/zone_value_test.dart
index 438227ce0469a10e5f04cc5c69db964cb1ac9ee7..9ff02f573cbd37f91644387217e7730c05b3aec8 100644
--- a/tests/lib/async/zone_value_test.dart
+++ b/tests/lib/async/zone_value_test.dart
@@ -93,9 +93,9 @@ main() {
// Creating a further nested zone with new values allows keeping, overriding,
// and shadowing existing values from the outer zone.
zoneValues = new Map();
- zoneValues[#foo] = -499; // Values can be overridden.
- zoneValues["bar"] = null; // Values can be changed to null.
- zoneValues["qux"] = 99; // Values can be added
+ zoneValues[#foo] = -499; // Values can be overridden.
+ zoneValues["bar"] = null; // Values can be changed to null.
+ zoneValues["qux"] = 99; // Values can be added
// Overriding with equal, but not identical, key is possible.
zoneValues[mimic] = "floo";
zoneValues[0.0] = "zero!ZERO!";
@@ -103,26 +103,26 @@ main() {
Zone forkedChild = forked.fork(zoneValues: zoneValues);
// New values available on zone.
- Expect.equals(-499, forkedChild[#foo]); // Overridden.
- Expect.isNull(forkedChild["bar"]); // Overridden to null.
- Expect.equals("floo", forkedChild[baz]); // Overridden by mimic.
- Expect.equals("floo", forkedChild[mimic]); // Now recognizes mimic.
- Expect.equals("zero!ZERO!", forkedChild[0]); // Overridden by 0.0.
+ Expect.equals(-499, forkedChild[#foo]); // Overridden.
+ Expect.isNull(forkedChild["bar"]); // Overridden to null.
+ Expect.equals("floo", forkedChild[baz]); // Overridden by mimic.
+ Expect.equals("floo", forkedChild[mimic]); // Now recognizes mimic.
+ Expect.equals("zero!ZERO!", forkedChild[0]); // Overridden by 0.0.
Expect.equals("zero!ZERO!", forkedChild[0.0]); // Overriding 0.
- Expect.equals(baz, forkedChild[null]); // Inherited.
- Expect.equals(99, forkedChild["qux"]); // Added.
+ Expect.equals(baz, forkedChild[null]); // Inherited.
+ Expect.equals(99, forkedChild["qux"]); // Added.
forkedChild.run(() {
Expect.identical(forkedChild, Zone.current); // Sanity check.
// New values available on current zone when the zone is current.
- Expect.equals(-499, Zone.current[#foo]); // Overridden.
- Expect.isNull(Zone.current["bar"]); // Overridden to null.
- Expect.equals("floo", Zone.current[baz]); // Overridden by mimic.
- Expect.equals("floo", Zone.current[mimic]); // Now recognizes mimic.
- Expect.equals("zero!ZERO!", Zone.current[0]); // Overridden by 0.0.
+ Expect.equals(-499, Zone.current[#foo]); // Overridden.
+ Expect.isNull(Zone.current["bar"]); // Overridden to null.
+ Expect.equals("floo", Zone.current[baz]); // Overridden by mimic.
+ Expect.equals("floo", Zone.current[mimic]); // Now recognizes mimic.
+ Expect.equals("zero!ZERO!", Zone.current[0]); // Overridden by 0.0.
Expect.equals("zero!ZERO!", Zone.current[0.0]); // Overriding 0.
- Expect.equals(baz, Zone.current[null]); // Inherited.
- Expect.equals(99, Zone.current["qux"]); // Added.
+ Expect.equals(baz, Zone.current[null]); // Inherited.
+ Expect.equals(99, Zone.current["qux"]); // Added.
});
// Parent zone values are unchanged.

Powered by Google App Engine
This is Rietveld 408576698