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

Unified Diff: appengine/findit/templates/flake/result.html

Issue 2255293003: [Findit] On hover over, shows pass rate for a swarming rerun (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fixed test Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/handlers/flake/test/check_flake_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/templates/flake/result.html
diff --git a/appengine/findit/templates/flake/result.html b/appengine/findit/templates/flake/result.html
index 63fce82c74e6ee1f0cf72cd6ee3348dc9de1e244..e64c815aecd69c0dfeb4dc20c41a124f044d6496 100644
--- a/appengine/findit/templates/flake/result.html
+++ b/appengine/findit/templates/flake/result.html
@@ -8,7 +8,7 @@
font-size: 12px;
}
#placeholder {
- width: 450px;
+ width: 450px;
height: 200px;
}
table {
@@ -21,6 +21,14 @@
$(document).ready(function () {
$.plot($("#placeholder"), [{{success_rates}}],
{
+ series: {
+ lines: {
+ show: true
+ },
+ points: {
+ show: true
+ }
+ },
grid: {
hoverable: true,
borderWidth: 1
@@ -29,8 +37,29 @@
labelBoxBorderColor: "none",
position: "right"
}
- }
- )});
+ });
+ $("<div id='tooltip'></div>").css({
+ position: "absolute",
+ display: "none",
+ border: "1px solid #fdd",
+ padding: "2px",
+ "background-color": "#fee",
+ opacity: 0.80
+ }).appendTo("body");
+
+ $("#placeholder").bind("plothover", function (event, pos, item) {
+ if (item) {
+ var x = Math.round(item.datapoint[0].toFixed(2));
+ var y = item.datapoint[1].toFixed(2);
+
+ $("#tooltip").html("Build Number: " + x + "<br> Pass rate: " + y)
+ .css({top: item.pageY+5, left: item.pageX+5})
+ .fadeIn(200);
+ }
+ else {
+ $("#tooltip").hide();
+ }
+ })});
</script>
</head>
@@ -43,7 +72,7 @@
Status of Analysis: {{analysis_status}}
{% if suspected_flake_build_number %}
<br>
- Suspected Build Number of Culprit: {{suspected_flake_build_number}}
+ Regressed in Build: {{suspected_flake_build_number}}
{% endif %}
</td>
<td></td>
@@ -53,7 +82,13 @@
<td>
<div id="placeholder"></div>
</td>
- <td></td>
+ <td>
+ Master Name: {{master_name}} <br>
+ Builder Name: {{builder_name}} <br>
+ Starting Build Number: {{build_number}} <br>
+ Step Name: {{step_name}} <br>
+ Test Name: {{test_name}} <br>
+ </td>
</tr>
<tr>
<td></td>
« no previous file with comments | « appengine/findit/handlers/flake/test/check_flake_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698