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

Side by Side Diff: Tools/GardeningServer/ui/test/ct-builder-grid-tests.html

Issue 541123002: Move builderList creation to ct-failure-card (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 3 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
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-card.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-builder-grid.html"> 7 <link rel="import" href="../ct-builder-grid.html">
8 8
9 <link rel="import" href="../ct-builder.html"> 9 <link rel="import" href="../ct-builder.html">
10 <link rel="import" href="../../model/ct-builder-list.html">
10 <link rel="import" href="../../model/ct-failure.html"> 11 <link rel="import" href="../../model/ct-failure.html">
11 12
12 <script> 13 <script>
13 (function () { 14 (function () {
14 15
15 var assert = chai.assert; 16 var assert = chai.assert;
16 17
17 var kExampleFailures = [ 18 var kExampleFailures = [
18 new CTFailure('layout_tests', "plugins/gesture-events-scrolled.html", 19 new CTFailure('layout_tests', "plugins/gesture-events-scrolled.html",
19 { 20 {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 'WebKit Win7 (dbg)': { 65 'WebKit Win7 (dbg)': {
65 blink: 177166, 66 blink: 177166,
66 }, 67 },
67 }; 68 };
68 69
69 describe('ct-builder-grid', function() { 70 describe('ct-builder-grid', function() {
70 var grid; 71 var grid;
71 72
72 beforeEach(function(done) { 73 beforeEach(function(done) {
73 grid = document.createElement('ct-builder-grid'); 74 grid = document.createElement('ct-builder-grid');
74 grid.failures = kExampleFailures; 75 grid.builderList = new CTBuilderList(kExampleFailures);
75 76
76 setTimeout(done); 77 setTimeout(done);
77 }); 78 });
78 79
79 describe('builder grid UI', function() { 80 describe('builder grid UI', function() {
80 it('should show all failing builders', function() { 81 it('should show all failing builders', function() {
81 var builders = grid.shadowRoot.querySelectorAll('ct-builder'); 82 var builders = grid.shadowRoot.querySelectorAll('ct-builder');
82 assert.lengthOf(builders, 4); 83 assert.lengthOf(builders, 4);
83 assert.deepEqual(builders[0].builder, new CTBuilder( 84 assert.deepEqual(builders[0].builder, new CTBuilder(
84 'http://master-one', 'WebKit Mac10.6 (dbg)', 2, 1)); 85 'http://master-one', 'WebKit Mac10.6 (dbg)', 2, 1));
85 assert.deepEqual(builders[1].builder, new CTBuilder( 86 assert.deepEqual(builders[1].builder, new CTBuilder(
86 'http://master-one', 'WebKit Mac10.7', 3, 1)); 87 'http://master-one', 'WebKit Mac10.7', 3, 1));
87 assert.deepEqual(builders[2].builder, new CTBuilder( 88 assert.deepEqual(builders[2].builder, new CTBuilder(
88 'http://master-two', 'WebKit Mac10.7', 4, 1)); 89 'http://master-two', 'WebKit Mac10.7', 4, 1));
89 assert.deepEqual(builders[3].builder, new CTBuilder( 90 assert.deepEqual(builders[3].builder, new CTBuilder(
90 'http://master-one', 'WebKit Win7 (dbg)', 1, 2)); 91 'http://master-one', 'WebKit Win7 (dbg)', 1, 2));
91 }); 92 });
92 }); 93 });
93 }); 94 });
94 95
95 })() 96 })()
96 </script> 97 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-card.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698