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 module("ct-commit"); |
| 13 |
| 14 test("basic", 5, function() { |
| 15 var message = |
| 16 "This matches Gecko's behavior for these types of properties.\n" + |
| 17 "\n" + |
| 18 "BUG=17325\n" + |
| 19 "R=jochen@chromium.org\n" + |
| 20 "CC=abarth@chromium.org\n" + |
| 21 "\n" + |
| 22 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" + |
| 23 "\n" + |
| 24 "git-svn-id: svn://svn.chromium.org/chrome/trunk@158545 bbb929c8-8fbe-4397
-9dbb-9b2b20218538"; |
| 25 var urlBase = "http://mockbase.com"; |
| 26 var author = "mkwst@chromium.org"; |
| 27 |
| 28 var commit = new CTCommit(author, message, urlBase); |
| 29 |
| 30 equal(commit.author, author); |
| 31 equal(commit.message, message); |
| 32 equal(commit.revision, 158545); |
| 33 equal(commit.summary, "This matches Gecko's behavior for these types of proper
ties."); |
| 34 equal(commit.url, urlBase + "?view=rev&revision=158545"); |
| 35 }); |
| 36 |
| 37 test("blink", 2, function() { |
| 38 var message = |
| 39 "This matches Gecko's behavior for these types of properties.\n" + |
| 40 "\n" + |
| 41 "BUG=17325\n" + |
| 42 "R=jochen@chromium.org\n" + |
| 43 "CC=abarth@chromium.org\n" + |
| 44 "\n" + |
| 45 "Review URL: https://chromiumcodereview.appspot.com/25022002\n" + |
| 46 "\n" + |
| 47 "git-svn-id: svn://svn.chromium.org/blink/trunk@158545 bbb929c8-8fbe-4397-
9dbb-9b2b20218538"; |
| 48 var urlBase = "http://mockbase.com"; |
| 49 var author = "mkwst@chromium.org"; |
| 50 |
| 51 var commit = new CTCommit(author, message, urlBase); |
| 52 |
| 53 equal(commit.revision, 158545); |
| 54 equal(commit.url, urlBase + "?view=rev&revision=158545"); |
| 55 }); |
| 56 |
| 57 })(); |
| 58 </script> |
OLD | NEW |