| OLD | NEW |
| 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 <link rel="import" href="model/ct-commit-mock.html"> |
| 10 |
| 9 <script> | 11 <script> |
| 10 (function () { | 12 (function () { |
| 11 | 13 |
| 12 var kExampleCommitData = { | |
| 13 "revision": 2, | |
| 14 "title": "Fix one more layering violation caught by check-blink-deps", | |
| 15 "time": "2013-09-30T19:36:21Z", | |
| 16 "summary": "core/platform may not depend on core/ even for testing.", | |
| 17 "author": "eseidel@chromium.org", | |
| 18 "reviewer": "abarth@chromium.org, abarth", | |
| 19 "bugID": [12], | |
| 20 "revertedRevision": undefined | |
| 21 } | |
| 22 | |
| 23 module("ct-commit"); | 14 module("ct-commit"); |
| 24 | 15 |
| 25 asyncTest("basic", 2, function() { | 16 asyncTest("basic", 2, function() { |
| 26 var grouper = document.createElement('ct-commit'); | 17 var grouper = document.createElement('ct-commit'); |
| 27 | 18 |
| 28 grouper.data = kExampleCommitData; | 19 grouper.data = new CTCommitMock(); |
| 29 | 20 |
| 30 Platform.endOfMicrotask(function() { | 21 Platform.endOfMicrotask(function() { |
| 31 var html = grouper.shadowRoot.innerHTML; | 22 var html = grouper.shadowRoot.innerHTML; |
| 32 | 23 |
| 33 equal(html.indexOf('eseidel') != -1, true) | 24 equal(html.indexOf('mkwst') != -1, true) |
| 34 equal(html.indexOf('may not depend on') != -1, true) | 25 equal(html.indexOf('behavior for these types') != -1, true) |
| 35 | 26 |
| 36 start(); | 27 start(); |
| 37 }); | 28 }); |
| 38 }); | 29 }); |
| 39 | 30 |
| 40 })() | 31 })() |
| 41 </script> | 32 </script> |
| OLD | NEW |