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

Side by Side Diff: pkg/analysis_server/test/integration/protocol_matchers.dart

Issue 446983002: Change the type of Error.code from int to String. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/spec/generate_files". 7 // "pkg/analysis_server/spec/generate_files".
8 8
9 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 "TYPE_PARAMETER", 1062 "TYPE_PARAMETER",
1063 "UNKNOWN", 1063 "UNKNOWN",
1064 "UNIT_TEST_GROUP", 1064 "UNIT_TEST_GROUP",
1065 "UNIT_TEST_TEST" 1065 "UNIT_TEST_TEST"
1066 ]); 1066 ]);
1067 1067
1068 /** 1068 /**
1069 * Error 1069 * Error
1070 * 1070 *
1071 * { 1071 * {
1072 * "code": int 1072 * "code": String
1073 * "message": String 1073 * "message": String
1074 * "data": optional object 1074 * "data": optional object
1075 * } 1075 * }
1076 */ 1076 */
1077 final Matcher isError = new MatchesJsonObject( 1077 final Matcher isError = new MatchesJsonObject(
1078 "Error", { 1078 "Error", {
1079 "code": isInt, 1079 "code": isString,
1080 "message": isString 1080 "message": isString
1081 }, optionalFields: { 1081 }, optionalFields: {
1082 "data": isObject 1082 "data": isObject
1083 }); 1083 });
1084 1084
1085 /** 1085 /**
1086 * ErrorFixes 1086 * ErrorFixes
1087 * 1087 *
1088 * { 1088 * {
1089 * "error": AnalysisError 1089 * "error": AnalysisError
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 * 1848 *
1849 * { 1849 * {
1850 * "newName": String 1850 * "newName": String
1851 * } 1851 * }
1852 */ 1852 */
1853 final Matcher isRenameOptions = new MatchesJsonObject( 1853 final Matcher isRenameOptions = new MatchesJsonObject(
1854 "rename options", { 1854 "rename options", {
1855 "newName": isString 1855 "newName": isString
1856 }); 1856 });
1857 1857
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis/get_errors_test.dart ('k') | pkg/analysis_server/test/protocol_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698