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

Unified Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 1154303005: Add lineLength parameter to edit.format request (issue 23519) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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: pkg/analysis_server/test/integration/integration_test_methods.dart
diff --git a/pkg/analysis_server/test/integration/integration_test_methods.dart b/pkg/analysis_server/test/integration/integration_test_methods.dart
index eba2bda6f09db8083963a1f5d9c2ae2e8c2426fe..3b609f2d8d94adc68d6026f5d7228bbd0bc0f830 100644
--- a/pkg/analysis_server/test/integration/integration_test_methods.dart
+++ b/pkg/analysis_server/test/integration/integration_test_methods.dart
@@ -1090,6 +1090,10 @@ abstract class IntegrationTestMixin {
*
* The length of the current selection in the file.
*
+ * lineLength ( optional int )
+ *
+ * The line length to be used by the formatter.
+ *
* Returns
*
* edits ( List<SourceEdit> )
@@ -1105,8 +1109,8 @@ abstract class IntegrationTestMixin {
*
* The length of the selection after formatting the code.
*/
- Future<EditFormatResult> sendEditFormat(String file, int selectionOffset, int selectionLength) {
- var params = new EditFormatParams(file, selectionOffset, selectionLength).toJson();
+ Future<EditFormatResult> sendEditFormat(String file, int selectionOffset, int selectionLength, {int lineLength}) {
+ var params = new EditFormatParams(file, selectionOffset, selectionLength, lineLength: lineLength).toJson();
return server.send("edit.format", params)
.then((result) {
ResponseDecoder decoder = new ResponseDecoder(null);

Powered by Google App Engine
This is Rietveld 408576698