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

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

Issue 404463003: Move commit list and builder latest revisions up to ct-unexpected-failures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-builder-grid.html"> 7 <link rel="import" href="ct-builder-grid.html">
8 8
9 <script> 9 <script>
10 (function () { 10 (function () {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 "is_unexpected": true, 49 "is_unexpected": true,
50 "actual": "CRASH", 50 "actual": "CRASH",
51 "has_stderr": true, 51 "has_stderr": true,
52 "time": 3.2 52 "time": 3.2
53 }, 53 },
54 }, 54 },
55 "oldestFailingRevision": 177164, 55 "oldestFailingRevision": 177164,
56 "newestPassingRevision": 177165 56 "newestPassingRevision": 177165
57 }]; 57 }];
58 58
59 var kExampleBuilderLatestRevisions = {
60 'WebKit Mac10.7': {
61 blink: 177164,
62 },
63 'WebKit Mac10.6 (dbg)': {
64 blink: 177166,
65 },
66 'WebKit Win7 (dbg)': {
67 blink: 177166,
68 },
69 };
70
59 module("ct-builder-grid"); 71 module("ct-builder-grid");
60 72
61 asyncTest("basic", 11, function() { 73 asyncTest("basic", 11, function() {
62 var oldBuildersInFlightForRevision = model.buildersInFlightForRevision; 74 var grid = document.createElement('ct-builder-grid');
63 var reset = function() { 75 grid.failures = kExampleFailures;
64 model.buildersInFlightForRevision = oldBuildersInFlightForRevision; 76 grid.builderLatestRevisions = kExampleBuilderLatestRevisions;
65 }
66 77
67 try { 78 requestAnimationFrame(function() {
68 model.buildersInFlightForRevision = function(revision) { 79 var rows = grid.shadowRoot.querySelectorAll('tbody tr');
69 return {'WebKit Mac10.7': {}}; 80 equal(rows.length, 3);
70 };
71 81
72 var grid = document.createElement('ct-builder-grid'); 82 var row1 = grid.shadowRoot.querySelector('tbody td.CRASH').parentNode;
73 grid.failures = kExampleFailures; 83 equal(row1.children.length, 3);
74 requestAnimationFrame(function() { 84 equal(row1.children[1].querySelectorAll('ct-builder').length, 1);
75 reset(); 85 equal(row1.children[1].querySelectorAll('ct-builder')[0].builderName, 'WebKi t Mac10.7');
76 var rows = grid.shadowRoot.querySelectorAll('tbody tr');
77 equal(rows.length, 3);
78 86
79 var row1 = grid.shadowRoot.querySelector('tbody td.CRASH').parentNode; 87 equal(row1.children[2].querySelectorAll('ct-builder').length, 2);
80 equal(row1.children.length, 3); 88 equal(row1.children[2].querySelectorAll('ct-builder')[0].builderName, 'WebKi t Mac10.6 (dbg)');
81 equal(row1.children[1].querySelectorAll('ct-builder').length, 1); 89 equal(row1.children[2].querySelectorAll('ct-builder')[1].builderName, 'WebKi t Win7 (dbg)');
82 equal(row1.children[1].querySelectorAll('ct-builder')[0].builderName, 'Web Kit Mac10.7');
83 90
84 equal(row1.children[2].querySelectorAll('ct-builder').length, 2); 91 var row2 = grid.shadowRoot.querySelector('tbody td.TEXT').parentNode;
85 equal(row1.children[2].querySelectorAll('ct-builder')[0].builderName, 'Web Kit Mac10.6 (dbg)'); 92 equal(row2.children.length, 3);
86 equal(row1.children[2].querySelectorAll('ct-builder')[1].builderName, 'WebK it Win7 (dbg)'); 93 equal(row2.children[1].querySelectorAll('ct-builder').length, 1);
94 equal(row2.children[2].querySelectorAll('ct-builder').length, 1);
87 95
88 var row2 = grid.shadowRoot.querySelector('tbody td.TEXT').parentNode; 96 notEqual(rows[2].children[0].className.indexOf('BUILDING'), -1);
89 equal(row2.children.length, 3); 97 start();
90 equal(row2.children[1].querySelectorAll('ct-builder').length, 1); 98 });
91 equal(row2.children[2].querySelectorAll('ct-builder').length, 1);
92
93 notEqual(rows[2].children[0].className.indexOf('BUILDING'), -1);
94 start();
95 });
96 } catch(e) {
97 reset();
98 }
99 }); 99 });
100 100
101 })() 101 })()
102 </script> 102 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698