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

Unified Diff: packages/dart_style/test/regression/other/chains.stmt

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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: packages/dart_style/test/regression/other/chains.stmt
diff --git a/packages/dart_style/test/regression/other/chains.stmt b/packages/dart_style/test/regression/other/chains.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..85dc56c17f3866d991c4822021deca227fabc5d2
--- /dev/null
+++ b/packages/dart_style/test/regression/other/chains.stmt
@@ -0,0 +1,35 @@
+>>> (indent 2)
+ document.onChange.listen(expectAsync((Delta delta) {
+ observedDeltas.add(delta);
+ if (++observedDeltaCount == 3) applyToNewDocument();
+ }, count: 3));
+<<<
+ document.onChange.listen(expectAsync((Delta delta) {
+ observedDeltas.add(delta);
+ if (++observedDeltaCount == 3) applyToNewDocument();
+ }, count: 3));
+>>> (indent 4)
+ return queryWith(fds, otype, whereClause, whereValues).toList()
+ .catchError((ex, st) {
+ _logger.warning(
+ "Failed loadAllWith($fields, $whereClause, $whereValues)", ex, st);
+ return new Future.error(ex, st);
+ }).then((List<Row> rows) {
+ ;
+ });
+<<<
+ return queryWith(fds, otype, whereClause, whereValues)
+ .toList()
+ .catchError((ex, st) {
+ _logger.warning(
+ "Failed loadAllWith($fields, $whereClause, $whereValues)", ex, st);
+ return new Future.error(ex, st);
+ }).then((List<Row> rows) {
+ ;
+ });
+>>> (indent 4)
+ return _coll.update({"_id": doc["_id"]}, doc, upsert: true)
+ .then((_) => doc);
+<<< TODO(rnystrom): Should split before .then() but map literal splits chain.
+ return _coll
+ .update({"_id": doc["_id"]}, doc, upsert: true).then((_) => doc);
« no previous file with comments | « packages/dart_style/test/regression/other/angular.unit ('k') | packages/dart_style/test/regression/other/misc.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698