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

Unified Diff: test/regression/211.unit

Issue 1000513002: Tweak formatting rules. Fix #211. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. Created 5 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
« no previous file with comments | « test/regression/121.stmt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/211.unit
diff --git a/test/regression/211.unit b/test/regression/211.unit
new file mode 100644
index 0000000000000000000000000000000000000000..721bc1e6e8f31bead690a74bb5ad691e8c54ccce
--- /dev/null
+++ b/test/regression/211.unit
@@ -0,0 +1,69 @@
+>>> (indent 2)
+ LiteralMap mapLiteral(List<LiteralMapEntry> entries, {bool isConst: false}) {
+ return new LiteralMap(null, // Type arguments.
+ new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO),
+ linkedList(entries), symbolToken(CLOSE_CURLY_BRACKET_INFO), ','),
+ isConst ? keywordToken('const') : null);
+ }
+<<<
+ LiteralMap mapLiteral(List<LiteralMapEntry> entries, {bool isConst: false}) {
+ return new LiteralMap(null, // Type arguments.
+ new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO), linkedList(entries),
+ symbolToken(CLOSE_CURLY_BRACKET_INFO), ','),
+ isConst ? keywordToken('const') : null);
+ }
+>>>
+void defineProperty(var obj, String property, var value) {
+ JS('void', 'Object.defineProperty(#, #, '
+ '{value: #, enumerable: false, writable: true, configurable: true})',
+ obj, property, value);
+}
+<<<
+void defineProperty(var obj, String property, var value) {
+ JS('void', 'Object.defineProperty(#, #, '
+ '{value: #, enumerable: false, writable: true, configurable: true})', obj,
+ property, value);
+}
+>>> (indent 4)
+ main() {
+ return searchEngine.searchTopLevelDeclarations('').then(
+ (List<SearchMatch> matches) {
+ _addNonImportedElementSuggestions(matches, excludedLibs);
+ return true;
+ });
+ }
+<<<
+ main() {
+ return searchEngine
+ .searchTopLevelDeclarations('')
+ .then((List<SearchMatch> matches) {
+ _addNonImportedElementSuggestions(matches, excludedLibs);
+ return true;
+ });
+ }
+>>> (indent 2)
+ test_getRelationships_empty() {
+ return store.getRelationships(elementA, relationship).then(
+ (List<Location> locations) {
+ expect(locations, isEmpty);
+ });
+ }
+<<<
+ test_getRelationships_empty() {
+ return store
+ .getRelationships(elementA, relationship)
+ .then((List<Location> locations) {
+ expect(locations, isEmpty);
+ });
+ }
+>>> (indent 2)
+ _asRuntimeType() {
+ return [
+ _class._jsConstructor
+ ].addAll(typeArguments.map((t) => t._asRuntimeType()));
+ }
+<<<
+ _asRuntimeType() {
+ return [_class._jsConstructor]
+ .addAll(typeArguments.map((t) => t._asRuntimeType()));
+ }
« no previous file with comments | « test/regression/121.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698