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

Side by Side Diff: Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard-tests.html

Issue 418253002: Expose the chromium waterfall in sheriff-o-matic. (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-embedded-flakiness-dashboard.html"> 7 <link rel="import" href="ct-embedded-flakiness-dashboard.html">
8 8
9 <script> 9 <script>
10 (function() { 10 (function() {
11 11
12 module("ct-embedded-flakiness-dashboard"); 12 module("ct-embedded-flakiness-dashboard");
13 13
14 asyncTest("url", 1, function() { 14 asyncTest("url", 1, function() {
15 var oldUrlForEmbeddedFlakinessDashboard = ui.urlForEmbeddedFlakinessDashboard; 15 var oldUrlForEmbeddedFlakinessDashboard = ui.urlForEmbeddedFlakinessDashboard;
16 var reset = function() { 16 var reset = function() {
17 ui.urlForEmbeddedFlakinessDashboard = oldUrlForEmbeddedFlakinessDashboard; 17 ui.urlForEmbeddedFlakinessDashboard = oldUrlForEmbeddedFlakinessDashboard;
18 } 18 }
19 19
20 try { 20 try {
21 ui.urlForEmbeddedFlakinessDashboard = function(test, step) { return "about:b lank#" + test + step; } 21 ui.urlForEmbeddedFlakinessDashboard = function(test, step, tree) { return "a bout:blank#" + test + step + tree; }
22 var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakine ss-dashboard'); 22 var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakine ss-dashboard');
23 var testName = "foo/bar.html"; 23 var testName = "foo/bar.html";
24 var step = "foo_tests"; 24 var step = "foo_tests";
25 var tree = "blink";
eseidel 2014/07/25 16:40:17 auto-sheriff happily handles failures which don't
ojan 2014/07/26 17:31:50 The other masters will be on some tree somewhere.
25 embeddedFlakinessDashboard.test = { 26 embeddedFlakinessDashboard.test = {
26 testName: testName, 27 testName: testName,
27 step: step, 28 step: step,
28 }; 29 };
30 embeddedFlakinessDashboard.tree = tree;
29 31
30 requestAnimationFrame(function() { 32 requestAnimationFrame(function() {
31 var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe' ); 33 var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe' );
32 equal(iframe.src, ui.urlForEmbeddedFlakinessDashboard(testName, step)); 34 equal(iframe.src, ui.urlForEmbeddedFlakinessDashboard(testName, step, tree ));
33 reset(); 35 reset();
34 start(); 36 start();
35 }); 37 });
36 } catch (e) { 38 } catch (e) {
37 reset(); 39 reset();
38 } 40 }
39 }); 41 });
40 42
41 asyncTest("heightChanged", 1, function() { 43 asyncTest("heightChanged", 1, function() {
42 var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakiness -dashboard'); 44 var embeddedFlakinessDashboard = document.createElement('ct-embedded-flakiness -dashboard');
43 45
44 function finishTest() { 46 function finishTest() {
45 window.removeEventListener('message', finishTest); 47 window.removeEventListener('message', finishTest);
46 var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe'); 48 var iframe = embeddedFlakinessDashboard.shadowRoot.querySelector('#iframe');
47 equal(iframe.style.height, "100px"); 49 equal(iframe.style.height, "100px");
48 start(); 50 start();
49 } 51 }
50 window.addEventListener('message', finishTest); 52 window.addEventListener('message', finishTest);
51 53
52 requestAnimationFrame(function() { 54 requestAnimationFrame(function() {
53 window.postMessage({command: 'heightChanged', height: "100"}, '*'); 55 window.postMessage({command: 'heightChanged', height: "100"}, '*');
54 }); 56 });
55 }); 57 });
56 58
57 })() 59 })()
58 </script> 60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698