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

Side by Side Diff: Tools/GardeningServer/model/ct-commit-tests.html

Issue 418253002: Expose the chromium waterfall in sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge to ToT 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 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="ct-commit.html"> 7 <link rel="import" href="ct-commit.html">
8 8
9 <script> 9 <script>
10 (function () { 10 (function () {
11 11
12 module("ct-commit"); 12 module("ct-commit");
13 13
14 test("basic", 5, function() { 14 test("basic", 6, function() {
15 var message = 15 var message =
16 "This matches Gecko's behavior for these types of properties.\n" + 16 "This matches Gecko's behavior for these types of properties.\n" +
17 "\n" + 17 "\n" +
18 "BUG=17325\n" + 18 "BUG=17325\n" +
19 "R=jochen@chromium.org\n" + 19 "R=jochen@chromium.org\n" +
20 "CC=abarth@chromium.org\n" + 20 "CC=abarth@chromium.org\n" +
21 "\n" + 21 "\n" +
22 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" + 22 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" +
23 "\n" + 23 "\n" +
24 "git-svn-id: svn://svn.chromium.org/chrome/trunk@158545 bbb929c8-8fbe-4397 -9dbb-9b2b20218538"; 24 "git-svn-id: svn://svn.chromium.org/chrome/trunk@158545 bbb929c8-8fbe-4397 -9dbb-9b2b20218538";
25 var urlBase = "http://mockbase.com"; 25 var url = "http://mockbase.com?{revision}";
26 var author = "mkwst@chromium.org"; 26 var author = "mkwst@chromium.org";
27 var repository = 'blink';
27 28
28 var commit = new CTCommit(author, message, urlBase); 29 var commit = CTCommit.create(author, message, url, repository);
29 30
30 equal(commit.author, author); 31 equal(commit.author, author);
31 equal(commit.message, message); 32 equal(commit.message, message);
32 equal(commit.revision, 158545); 33 equal(commit.revision, 158545);
33 equal(commit.summary, "This matches Gecko's behavior for these types of proper ties."); 34 equal(commit.summary, "This matches Gecko's behavior for these types of proper ties.");
34 equal(commit.url, urlBase + "?view=rev&revision=158545"); 35 equal(commit.url, url.assign({revision: "158545"}));
36 equal(commit.repository, repository);
35 }); 37 });
36 38
37 test("blink", 2, function() { 39 test("blink", 2, function() {
38 var message = 40 var message =
39 "This matches Gecko's behavior for these types of properties.\n" + 41 "This matches Gecko's behavior for these types of properties.\n" +
40 "\n" + 42 "\n" +
41 "BUG=17325\n" + 43 "BUG=17325\n" +
42 "R=jochen@chromium.org\n" + 44 "R=jochen@chromium.org\n" +
43 "CC=abarth@chromium.org\n" + 45 "CC=abarth@chromium.org\n" +
44 "\n" + 46 "\n" +
45 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" + 47 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" +
46 "\n" + 48 "\n" +
47 "git-svn-id: svn://svn.chromium.org/blink/trunk@158545 bbb929c8-8fbe-4397- 9dbb-9b2b20218538"; 49 "git-svn-id: svn://svn.chromium.org/blink/trunk@158545 bbb929c8-8fbe-4397- 9dbb-9b2b20218538";
48 var urlBase = "http://mockbase.com"; 50 var url = "http://mockbase.com?{revision}";
49 var author = "mkwst@chromium.org"; 51 var author = "mkwst@chromium.org";
50 52
51 var commit = new CTCommit(author, message, urlBase); 53 var commit = CTCommit.create(author, message, url);
52 54
53 equal(commit.revision, 158545); 55 equal(commit.revision, 158545);
54 equal(commit.url, urlBase + "?view=rev&revision=158545"); 56 equal(commit.url, url.assign({revision: "158545"}));
57 });
58
59 test("createIncomplete", 3, function() {
60 var url = "http://mockbase.com?{revision}";
61 var repository = 'blink';
62 var revison = 158545;
63 var commit = CTCommit.createIncomplete(url, revison, repository);
64
65 equal(commit.revision, 158545);
66 equal(commit.url, url.assign({revision: "158545"}));
67 equal(commit.repository, repository);
55 }); 68 });
56 69
57 })(); 70 })();
58 </script> 71 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/model/ct-commit-mock.html ('k') | Tools/GardeningServer/model/ct-failure.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698