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