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 <link rel="import" href="../model/ct-commit-mock.html"> | |
10 | |
11 <script> | |
12 (function () { | |
13 | |
14 module("ct-commit"); | |
15 | |
16 asyncTest("basic", 3, function() { | |
17 var commit = document.createElement('ct-commit'); | |
18 | |
19 commit.data = new CTCommitMock(); | |
20 | |
21 requestAnimationFrame(function() { | |
22 var html = commit.shadowRoot.innerHTML; | |
23 | |
24 equal(html.indexOf('mkwst') != -1, true); | |
25 equal(html.indexOf('behavior for these types') != -1, true); | |
26 equal(commit.shadowRoot.querySelector('a').href, commit.data.url); | |
27 | |
28 start(); | |
29 }); | |
30 }); | |
31 | |
32 })() | |
33 </script> | |
OLD | NEW |