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

Unified Diff: packages/dart_style/test/regression/0200/0211.unit

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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: packages/dart_style/test/regression/0200/0211.unit
diff --git a/packages/dart_style/test/regression/0200/0211.unit b/packages/dart_style/test/regression/0200/0211.unit
new file mode 100644
index 0000000000000000000000000000000000000000..01766d8840411adde51e44362529e5cabc1ead21
--- /dev/null
+++ b/packages/dart_style/test/regression/0200/0211.unit
@@ -0,0 +1,74 @@
+>>> (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 | « packages/dart_style/test/regression/0200/0206.stmt ('k') | packages/dart_style/test/regression/0200/0212.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698