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 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"); |
| 24 |
| 25 asyncTest("basic", 3, function() { |
| 26 var grouper = document.createElement('ct-commit'); |
| 27 |
| 28 grouper.data = kExampleCommitData; |
| 29 |
| 30 Platform.endOfMicrotask(function() { |
| 31 var html = grouper.shadowRoot.innerHTML; |
| 32 |
| 33 equal(html.indexOf('eseidel') != -1, true) |
| 34 equal(html.indexOf('abarth') != -1, true) |
| 35 equal(html.indexOf('may not depend on') != -1, true) |
| 36 |
| 37 start(); |
| 38 }); |
| 39 }); |
| 40 |
| 41 })() |
| 42 </script> |
OLD | NEW |