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

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

Issue 459463003: Convert moar Sheriff-o-Matic tests to Polymer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
(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-party-time.html">
8
9 <script>
10 (function() {
11
12 module("ct-party-time");
13
14 asyncTest("partyTime", 1, function() {
15 var partyTime = document.createElement('ct-party-time');
16
17 var tree = 'blink';
18
19 partyTime.failures = { blink: [ ] };
20 partyTime.tree = tree;
21
22 requestAnimationFrame(function() {
23 equal(partyTime._partytime, true);
24 start();
25 });
26 });
27
28 asyncTest("noPartyTime", 1, function() {
29 var noPartyTime = document.createElement('ct-party-time');
30
31 var resultsByBuilder = {};
32 var failure1 = new CTFailure("step1", "reason1", resultsByBuilder, 123, 123);
33
34 var tree = 'blink';
35
36 noPartyTime.failures = { blink: [ failure1 ] };
37 noPartyTime.tree = tree;
38
39 requestAnimationFrame(function() {
40 equal(noPartyTime._partytime, false);
41 start();
42 });
43 });
44
45 })()
46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698