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

Side by Side Diff: Tools/GardeningServer/scripts/svn-log_unittests.js

Issue 177123013: Garden-o-matic: Display bugs from the commit BUG=... line in commit summary (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 "\n" + 128 "\n" +
129 "R=abarth@chromium.org,abarth\n" + 129 "R=abarth@chromium.org,abarth\n" +
130 "BUG=301947\n" + 130 "BUG=301947\n" +
131 "\n" + 131 "\n" +
132 "Review URL: https://codereview.chromium.org/25275005\n" + 132 "Review URL: https://codereview.chromium.org/25275005\n" +
133 "\n" + 133 "\n" +
134 "git-svn-id: svn://svn.chromium.org/blink/trunk@158543 bbb929c8-8fbe-4397-9db b-9b2b20218538\n" + 134 "git-svn-id: svn://svn.chromium.org/blink/trunk@158543 bbb929c8-8fbe-4397-9db b-9b2b20218538\n" +
135 "</pre>\n" + 135 "</pre>\n" +
136 "</div>\n" + 136 "</div>\n" +
137 "</content>\n" + 137 "</content>\n" +
138 "<entry>\n" +
139 "<title>Mark Skia suppressions for rebasline.</title>\n" +
140 "<updated>2014-02-27T14:44:41Z</updated>\n" +
141 "<author>\n" +
142 "<name>fmalita@chromium.org</name>\n" +
143 "</author>\n" +
144 "<published>2014-02-27T14:44:41Z</published>\n" +
145 "<link rel='alternate' type='text/html' href='http://blink.lc/blink/commit/?i d=35030357db3c0967974273faf5e65fe3d7cc041b'/>\n" +
146 "<id>35030357db3c0967974273faf5e65fe3d7cc041b</id>\n" +
147 "<content type='text'>\n" +
148 "Unreviewed gardening.\n" +
149 "\n" +
150 "BUG=/341448,344497\n" +
151 "TBR=robertphillips@google.com\n" +
152 "\n" +
153 "Review URL: https://codereview.chromium.org/183123002\n" +
154 "\n" +
155 "git-svn-id: svn://svn.chromium.org/blink/trunk@168027 bbb929c8-8fbe-4397-9db b-9b2b20218538\n" +
156 "</content>\n" +
157 "<content type='xhtml'>\n" +
158 "<div xmlns='http://www.w3.org/1999/xhtml'>\n" +
159 "<pre>\n" +
160 "Unreviewed gardening.\n" +
161 "\n" +
162 "BUG=/341448 , 344497/ \n" +
163 "TBR=robertphillips@google.com\n" +
164 "\n" +
165 "Review URL: https://codereview.chromium.org/183123002\n" +
166 "\n" +
167 "git-svn-id: svn://svn.chromium.org/blink/trunk@168027 bbb929c8-8fbe-4397-9db b-9b2b20218538\n" +
168 "</pre>\n" +
169 "</div>\n" +
170 "</content>\n" +
138 "</entry>\n" + 171 "</entry>\n" +
139 "</feed>\n"; 172 "</feed>\n";
140 173
141 174
142 var kExampleCommitDataList = [{ 175 var kExampleCommitDataList = [{
143 "revision": 158545, 176 "revision": 158545,
144 "title": "Throw SecurityError when setting 'Replaceable' properties cross-or igin.", 177 "title": "Throw SecurityError when setting 'Replaceable' properties cross-or igin.",
145 "time": "2013-09-30T20:22:01Z", 178 "time": "2013-09-30T20:22:01Z",
146 "summary": "This matches Gecko's behavior for these types of properties.", 179 "summary": "This matches Gecko's behavior for these types of properties.",
147 "author": "mkwst@chromium.org", 180 "author": "mkwst@chromium.org",
148 "reviewer": "jochen@chromium.org", 181 "reviewer": "jochen@chromium.org",
149 "bugID": 17325, 182 "bugID": [17325],
150 "revertedRevision": undefined 183 "revertedRevision": undefined
151 }, 184 },
152 { 185 {
153 "revision": 158544, 186 "revision": 158544,
154 "title": "Fix one more layering violation caught by check-blink-deps", 187 "title": "Fix one more layering violation caught by check-blink-deps",
155 "time": "2013-09-30T19:36:21Z", 188 "time": "2013-09-30T19:36:21Z",
156 "summary": "core/platform may not depend on core/ even for testing.", 189 "summary": "core/platform may not depend on core/ even for testing.",
157 "author": "eseidel@chromium.org", 190 "author": "eseidel@chromium.org",
158 "reviewer": "abarth@chromium.org, abarth", 191 "reviewer": "abarth@chromium.org, abarth",
159 "bugID": 301947, 192 "bugID": [301947],
160 "revertedRevision": undefined 193 "revertedRevision": undefined
161 }, 194 },
162 { 195 {
163 "revision": 158543, 196 "revision": 158543,
164 "title": "Update DEPS include_rules after addition of root-level platform di rectory", 197 "title": "Update DEPS include_rules after addition of root-level platform di rectory",
165 "time": "2013-09-30T19:28:49Z", 198 "time": "2013-09-30T19:28:49Z",
166 "summary": "These were all failures noticed when running check-blink-deps", 199 "summary": "These were all failures noticed when running check-blink-deps",
167 "author": "eseidel@chromium.org", 200 "author": "eseidel@chromium.org",
168 "reviewer": "abarth@chromium.org, abarth", 201 "reviewer": "abarth@chromium.org, abarth",
169 "bugID": 301947, 202 "bugID": [301947],
203 "revertedRevision": undefined
204 },
205 {
206 "revision": 168027,
207 "title": "Mark Skia suppressions for rebasline.",
208 "time": "2014-02-27T14:44:41Z",
209 "summary": "Unreviewed gardening.",
210 "author": "fmalita@chromium.org",
211 "reviewer": "robertphillips@google.com",
212 "bugID": [341448, 344497],
170 "revertedRevision": undefined 213 "revertedRevision": undefined
171 } 214 }
172 ]; 215 ];
173 216
174 test("changesetURL", 1, function() { 217 test("changesetURL", 1, function() {
175 equals(trac.changesetURL(1234), "http://src.chromium.org/viewvc/blink?view=r ev&revision=1234"); 218 equals(trac.changesetURL(1234), "http://src.chromium.org/viewvc/blink?view=r ev&revision=1234");
176 }); 219 });
177 220
178 asyncTest("recentCommitData", 3, function() { 221 asyncTest("recentCommitData", 3, function() {
179 var simulator = new NetworkSimulator(); 222 var simulator = new NetworkSimulator();
(...skipping 10 matching lines...) Expand all
190 $.each(commitDataList, function(index, commitData) { 233 $.each(commitDataList, function(index, commitData) {
191 // Including the entire message makes the deepEqual below to unw ieldy. 234 // Including the entire message makes the deepEqual below to unw ieldy.
192 delete commitData.message; 235 delete commitData.message;
193 }); 236 });
194 deepEqual(commitDataList, kExampleCommitDataList); 237 deepEqual(commitDataList, kExampleCommitDataList);
195 }); 238 });
196 }).then(start); 239 }).then(start);
197 }); 240 });
198 241
199 })(); 242 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698