Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: Tools/GardeningServer/ui/ct-commit-tests.html

Issue 349783003: Polymer-based Garden-O-Matic should have a basic results panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moar flex Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698