OLD | NEW |
| (Empty) |
1 <!-- | |
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 | |
4 found in the LICENSE file. | |
5 --> | |
6 | |
7 <link rel="import" href="../ct-commit.html"> | |
8 | |
9 <script> | |
10 (function () { | |
11 | |
12 var assert = chai.assert; | |
13 | |
14 describe('ct-commit model', function() { | |
15 var commit; | |
16 var url; | |
17 var repository; | |
18 var revision; | |
19 | |
20 afterEach(function() { | |
21 assert.equal(commit.revision, revision); | |
22 assert.equal(commit.url, url.assign({revision: String(revision)})); | |
23 assert.equal(commit.repository, repository); | |
24 }); | |
25 | |
26 it('incomplete', function() { | |
27 url = "https://mockbase.com?{revision}"; | |
28 repository = 'blink'; | |
29 revision = 158545; | |
30 commit = CTCommit.createIncomplete(url, revision, repository); | |
31 }); | |
32 | |
33 describe('complete', function() { | |
34 var author; | |
35 var message; | |
36 | |
37 afterEach(function() { | |
38 assert.equal(commit.author, author); | |
39 assert.equal(commit.message, message); | |
40 assert.equal(commit.summary, "This matches Gecko's behavior for these type
s of properties."); | |
41 }); | |
42 | |
43 it('chromium', function() { | |
44 message = | |
45 "This matches Gecko's behavior for these types of properties.\n" + | |
46 "\n" + | |
47 "BUG=17325\n" + | |
48 "R=jochen@chromium.org\n" + | |
49 "CC=abarth@chromium.org\n" + | |
50 "\n" + | |
51 "Revert of Cr-Commit-Position: refs/heads/master@{#158000}" + | |
52 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" + | |
53 "\n" + | |
54 "Cr-Commit-Position: refs/heads/master@{#158545}\n" | |
55 url = "https://mockbase.com?{revision}"; | |
56 author = "mkwst@chromium.org"; | |
57 repository = 'chromium'; | |
58 commit = CTCommit.create(author, message, url, repository); | |
59 }); | |
60 | |
61 it('blink', function() { | |
62 message = | |
63 "This matches Gecko's behavior for these types of properties.\n" + | |
64 "\n" + | |
65 "BUG=17325\n" + | |
66 "R=jochen@chromium.org\n" + | |
67 "CC=abarth@chromium.org\n" + | |
68 "\n" + | |
69 "Revert of git-svn-id: svn://svn.chromium.org/blink/trunk@158000 bbb92
9c8-8fbe-4397-9dbb-9b2b20218538" + | |
70 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" + | |
71 "\n" + | |
72 "git-svn-id: svn://svn.chromium.org/blink/trunk@158545 bbb929c8-8fbe-4
397-9dbb-9b2b20218538"; | |
73 url = "https://mockbase.com?{revision}"; | |
74 author = "mkwst@chromium.org"; | |
75 repository = 'blink'; | |
76 commit = CTCommit.create(author, message, url, repository); | |
77 }); | |
78 }); | |
79 }); | |
80 | |
81 })(); | |
82 </script> | |
OLD | NEW |