| OLD | NEW |
| (Empty) | |
| 1 <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
| 2 <%@ page import="java.util.List" %> |
| 3 <%@ page import="javax.jdo.PersistenceManager" %> |
| 4 <%@ page import="com.google.appengine.api.users.User" %> |
| 5 <%@ page import="com.google.appengine.api.users.UserService" %> |
| 6 <%@ page import="com.google.appengine.api.users.UserServiceFactory" %> |
| 7 <%@ page import="mydemo.BuildInfo" %> |
| 8 <%@ page import="mydemo.MacTestStatus" %> |
| 9 <%@ page import="mydemo.RegisterFeature" %> |
| 10 <%@ page import="mydemo.PMF" %> |
| 11 |
| 12 <html> |
| 13 <Head> |
| 14 <style> |
| 15 body |
| 16 { |
| 17 background-color:#d0e4fe; |
| 18 font-family: tims, cursive, serif; |
| 19 } |
| 20 |
| 21 .mytable { |
| 22 border: 1px solid #CCC; |
| 23 font-size: 17px; |
| 24 |
| 25 } |
| 26 |
| 27 .fitrow { |
| 28 background-color:#F4F4F4; |
| 29 height:20px; |
| 30 } |
| 31 |
| 32 </style> |
| 33 <style> |
| 34 |
| 35 |
| 36 ul#list-nav li { |
| 37 display:inline; |
| 38 } |
| 39 |
| 40 ul#list-nav li a { |
| 41 text-decoration:none; |
| 42 padding:5px 5px 5px 5px; |
| 43 background:9966ff; |
| 44 color:#eee; |
| 45 float:left; |
| 46 text-align:center; |
| 47 border-left:1px solid #fff; |
| 48 } |
| 49 |
| 50 ul#list-nav li a:hover { |
| 51 background:9999ff; |
| 52 color:#000 |
| 53 } |
| 54 |
| 55 |
| 56 </style> |
| 57 <script> |
| 58 var selected_val1 = 0; |
| 59 var g_rowNo = 0; |
| 60 function addRow(selected_val) { |
| 61 |
| 62 |
| 63 var s = "/TestingStatus-query-Mac.jsp?buildn=" + selected_val ; |
| 64 window.location= s; |
| 65 |
| 66 } |
| 67 |
| 68 </script> |
| 69 |
| 70 |
| 71 |
| 72 |
| 73 <script> |
| 74 |
| 75 var DDSPEED = 10; |
| 76 var DDTIMER = 15; |
| 77 |
| 78 // main function to handle the mouse events // |
| 79 function ddMenu(id,d){ |
| 80 var h = document.getElementById(id + '-ddheader'); |
| 81 var c = document.getElementById(id + '-ddcontent'); |
| 82 clearInterval(c.timer); |
| 83 if(d == 1){ |
| 84 clearTimeout(h.timer); |
| 85 if(c.maxh && c.maxh <= c.offsetHeight){return} |
| 86 else if(!c.maxh){ |
| 87 c.style.display = 'block'; |
| 88 c.style.height = 'auto'; |
| 89 c.maxh = c.offsetHeight; |
| 90 c.style.height = '0px'; |
| 91 } |
| 92 c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); |
| 93 }else{ |
| 94 h.timer = setTimeout(function(){ddCollapse(c)},100); |
| 95 } |
| 96 } |
| 97 |
| 98 // collapse the menu // |
| 99 function ddCollapse(c){ |
| 100 c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER); |
| 101 } |
| 102 |
| 103 // cancel the collapse if a user rolls over the dropdown // |
| 104 function cancelHide(id){ |
| 105 var h = document.getElementById(id + '-ddheader'); |
| 106 var c = document.getElementById(id + '-ddcontent'); |
| 107 clearTimeout(h.timer); |
| 108 clearInterval(c.timer); |
| 109 if(c.offsetHeight < c.maxh){ |
| 110 c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); |
| 111 } |
| 112 } |
| 113 |
| 114 // incrementally expand/contract the dropdown and change the opacity // |
| 115 function ddSlide(c,d){ |
| 116 var currh = c.offsetHeight; |
| 117 var dist; |
| 118 if(d == 1){ |
| 119 dist = (Math.round((c.maxh - currh) / DDSPEED)); |
| 120 }else{ |
| 121 dist = (Math.round(currh / DDSPEED)); |
| 122 } |
| 123 if(dist <= 1 && d == 1){ |
| 124 dist = 1; |
| 125 } |
| 126 c.style.height = currh + (dist * d) + 'px'; |
| 127 c.style.opacity = currh / c.maxh; |
| 128 c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')'; |
| 129 if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ |
| 130 clearInterval(c.timer); |
| 131 } |
| 132 } |
| 133 |
| 134 </script> |
| 135 |
| 136 <style> |
| 137 .menu{ |
| 138 width:717px; |
| 139 height:65px; |
| 140 |
| 141 } |
| 142 .links div{ |
| 143 float:left;} |
| 144 .dropdown { |
| 145 |
| 146 background:9966ff; |
| 147 color:#eee; |
| 148 border-left:1px solid #fff; |
| 149 font-family:BOOK ANTIQUA; |
| 150 font-size:14px; |
| 151 margin: 0; |
| 152 padding:0px;} |
| 153 |
| 154 .dropdown dt:hover { |
| 155 background:9999ff; |
| 156 } |
| 157 |
| 158 .dropdown dt { |
| 159 |
| 160 cursor:pointer;} |
| 161 .dropdown dd { |
| 162 position:absolute; |
| 163 overflow:hidden; |
| 164 display:none; |
| 165 background:9966ff; |
| 166 z-index:1000; |
| 167 opacity:.5; |
| 168 margin:0 0 0 20px; |
| 169 border-left:2px solid #620000; |
| 170 border-right:2px solid #620000} |
| 171 |
| 172 .dropdown ul { |
| 173 width:100px; |
| 174 list-style:none; |
| 175 margin:0; |
| 176 padding: 0; |
| 177 z-index:900;} |
| 178 .dropdown li { |
| 179 display:block; |
| 180 width: 100px; |
| 181 margin: 0; |
| 182 padding: 5px; |
| 183 border-bottom:2px solid #620000;} |
| 184 .dropdown li a{ |
| 185 float:none; |
| 186 width:auto; |
| 187 padding: 0; |
| 188 width:100px} |
| 189 |
| 190 .dropdown a:hover { |
| 191 color:#FFFF00;} |
| 192 |
| 193 a{ |
| 194 color:blue; |
| 195 font-family:BOOK ANTIQUA; |
| 196 font-size:15px; |
| 197 text-decoration: none; |
| 198 padding-left:23px; |
| 199 padding-right:23px; |
| 200 } |
| 201 a:hover { |
| 202 background:9999ff; |
| 203 color:#000 |
| 204 } |
| 205 </style> |
| 206 |
| 207 <body> |
| 208 <div align=center class="headerMembers"> |
| 209 <!-- menu starts here --> |
| 210 <div class="menu"> |
| 211 <div class="links"> |
| 212 <body> |
| 213 <H2 align=center><font color="background:9900CC"> Chrome Release testing dashboa
rd </font></h2> |
| 214 |
| 215 <div> |
| 216 <dl class="dropdown"> |
| 217 <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu
('one',-1)"><a>Register new feature</a></dt> |
| 218 <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddM
enu('one',-1)"> |
| 219 <ul> |
| 220 <li><a href="registerfeature.jsp">Chrome</a></li> |
| 221 <li><a href="">Chrome Frame</a></li> |
| 222 </ul> |
| 223 </dd> |
| 224 </dl> |
| 225 </div> |
| 226 |
| 227 |
| 228 <div> |
| 229 <dl class="dropdown"> |
| 230 <dt id="two-ddheader" onmouseover="ddMenu('two',1)" onmouseout="ddMenu
('two',-1)"><a>Submit Status</a></dt> |
| 231 <dd id="two-ddcontent" onmouseover="cancelHide('two')" onmouseout="ddM
enu('two',-1)"> |
| 232 <ul> |
| 233 <li><a href="SubmitStatus-Windows.jsp">Windows</a></li> |
| 234 <li><a href="SubmitStatus-Mac.jsp">Mac</a></li> |
| 235 <li><a href="SubmitStatus-Linux.jsp">Linux</a></li> |
| 236 <li><a href="">Chrome Frame </a></li> |
| 237 </ul> |
| 238 </dd> |
| 239 </dl> |
| 240 </div> |
| 241 |
| 242 <div> |
| 243 <dl class="dropdown"> |
| 244 <dt id="three-ddheader" onmouseover="ddMenu('three',1)" onmouseout="dd
Menu('three',-1)"><a>View Status</a></dt> |
| 245 <dd id="three-ddcontent" onmouseover="cancelHide('three')" onmouseout=
"ddMenu('three',-1)"> |
| 246 <ul> |
| 247 <li><a href="TestingStatus-query.jsp">Windows</a></li> |
| 248 <li><a href="TestingStatus-query-Mac.jsp">Mac</a></li> |
| 249 <li><a href="TestingStatus-query-Linux.jsp">Linux</a></li> |
| 250 <li><a href="">Chrome Frame </a></li> |
| 251 </ul> |
| 252 </dd> |
| 253 </dl> |
| 254 </div> |
| 255 |
| 256 <div> |
| 257 <dl class="dropdown"> |
| 258 <dt id="four-ddheader" onmouseover="ddMenu('four',1)" onmouseout="ddMe
nu('four',-1)"><a>Release Blockers</a></dt> |
| 259 <dd id="four-ddcontent" onmouseover="cancelHide('four')" onmouseout="d
dMenu('four',-1)"> |
| 260 <ul> |
| 261 <li><a href="Release-blockers.jsp?channel=Dev">Dev</a></li> |
| 262 <li><a href="Release-blockers.jsp?channel=Beta">Beta</a></li> |
| 263 <li><a href="Release-blockers.jsp?channel=Stable">Stable</a></
li> |
| 264 <li><a href="">ChromeFrame-Dev</a></li> |
| 265 <li><a href="">ChromeFrame-Beta</a></li> |
| 266 </ul> |
| 267 </dd> |
| 268 </dl> |
| 269 </div> |
| 270 <div style="background:9966ff;border-left:1px solid #fff;"><a href="calendar.jsp
">Calendar</a></div> |
| 271 |
| 272 </body> |
| 273 </div> |
| 274 </div> |
| 275 </div> |
| 276 </html> |
| 277 <BODY style="background:CCCCFF;font-family:BOOK ANTIQUA"> |
| 278 |
| 279 <% |
| 280 PersistenceManager pm1 = PMF.get().getPersistenceManager(); |
| 281 String query1 = "select from " + BuildInfo.class.getName(); |
| 282 List<BuildInfo> build_val = (List<BuildInfo>) pm1.newQuery(query1).execute()
; |
| 283 %> |
| 284 |
| 285 <div style="position:relative; width:100%; height:20px"></div> |
| 286 <form id='mainForm1' action="" method="post"> |
| 287 |
| 288 <div align=center>Pick a build: <select name="buildn" id="buildn" onChange="a
ddRow(this.options[selectedIndex].text);"> |
| 289 <option value="Pick a build" selected>Pick a build |
| 290 <% for (BuildInfo g : build_val) { %> |
| 291 <option value=<%= g.getBuildNumber() %>><%= g.getBuildNumber() %> |
| 292 <% } %> |
| 293 </select> |
| 294 |
| 295 </form> |
| 296 |
| 297 <div id="status" > |
| 298 <% |
| 299 PersistenceManager pm3 = PMF.get().getPersistenceManager(); |
| 300 String query2 = "select from " + RegisterFeature.class.getName() + " where
feature_type=='Frontend'"; |
| 301 List<RegisterFeature> feature_list = (List<RegisterFeature>) pm3.newQuery(qu
ery2).execute(); |
| 302 |
| 303 |
| 304 PersistenceManager pm = PMF.get().getPersistenceManager(); |
| 305 String query = "select from " + MacTestStatus.class.getName() + " where buil
d_number=='" + request.getParameter("buildn") +"'" ; |
| 306 List<MacTestStatus> mac = (List<MacTestStatus>) pm.newQuery(query).execute()
; |
| 307 |
| 308 |
| 309 %> |
| 310 |
| 311 <% if (mac.isEmpty()) { %> |
| 312 <p>Pick a build from dropdown.</p> |
| 313 <% } else {%> |
| 314 <table align=center class="mytable" style="table-layout: fixed;"> |
| 315 <tr><td><b><H3>Frontend Features:</H3></b></td></tr> |
| 316 <tr> |
| 317 <th ><b>Featurename</b></th> |
| 318 <th><b>Leopard</b></th> |
| 319 <th><b>Tester</b></th> |
| 320 <th><b>Snow Leopard</b></th> |
| 321 <th><b>Tester</b></th> |
| 322 <th><b>Bugs Found</b></th> |
| 323 <% for (RegisterFeature f_list : feature_list) { |
| 324 int found = 0; |
| 325 for (MacTestStatus mac_status : mac) { |
| 326 if ((mac_status.getFeatureName()).equals(f_list.getF
eatureName())) {%> |
| 327 <tr class ="fitrow" style="border:1px solid #CCC; Color: b
lack; padding: 2px"> |
| 328 <td><%= mac_status.getFeatureName() %></td> |
| 329 |
| 330 |
| 331 <% if (mac_status.getStatusLP()
.equals("Buggy")) {%> |
| 332 <td style="background-color:#F
F0000"><%= mac_status.getStatusLP() %></td> |
| 333 <% } else if (mac_stat
us.getStatusLP().equals("InProgress")) { %> |
| 334 <td style="background-
color:#FFFF00"><%= mac_status.getStatusLP() %></td> |
| 335 <% } else if (mac_status.getStatusLP().equals("Finis
hed")) { %> |
| 336 <td style="background-color:#008000"><%= mac_statu
s.getStatusLP() %></td> |
| 337 <% } else{ %> |
| 338 <td style="backgroun
d-color:#FFA500"><%= mac_status.getStatusLP() %></td> |
| 339 <%} %> |
| 340 |
| 341 <td><%= mac_status.getLP
Tester()%></td> |
| 342 |
| 343 |
| 344 |
| 345 |
| 346 <% if (mac_status.getStatusSLP
().equals("Buggy")) {%> |
| 347 <td style="background-color:#F
F0000"><%= mac_status.getStatusSLP() %></td> |
| 348 <% } else if (mac_stat
us.getStatusSLP().equals("InProgress")) { %> |
| 349 <td style="background-
color:#FFFF00"><%= mac_status.getStatusSLP() %></td> |
| 350 <% } else if (mac_status.getStatusSLP().equals("Fini
shed")) { %> |
| 351 <td style="background-color:#008000"><%= mac_statu
s.getStatusSLP() %></td> |
| 352 <% } else{ %> |
| 353 <td style="backgroun
d-color:#FFA500"><%= mac_status.getStatusSLP() %></td> |
| 354 <%}%> |
| 355 <td><%= mac_status.getSLPTest
er()%></td> |
| 356
|
| 357 <td><%= mac_status.getNo
tes()%></td> |
| 358 |
| 359 </tr> |
| 360 <% found=1; |
| 361 break; |
| 362 } |
| 363 } |
| 364 if (found == 0) { |
| 365 if (!(f_list.getFeatureName().equals(""))) {%> |
| 366 <tr class ="fitrow" style="border:1px solid #CCC; Color
: black; padding:2px"> |
| 367 <td><%= f_list.getFeatureName() %></td> |
| 368 <td style="background-color:#FFA500">Not Started</td> |
| 369 <td> n/a </td> |
| 370 <td style="background-color:#FFA500">Not Started</td
> |
| 371 <td> n/a </td> |
| 372 <td style="background-color:#FFA500">Not Started</td
> |
| 373 <td> n/a </td> |
| 374 </tr> |
| 375 <%} } |
| 376 %> |
| 377 |
| 378 |
| 379 <% } |
| 380 |
| 381 pm.close(); |
| 382 |
| 383 %> |
| 384 |
| 385 |
| 386 </table> |
| 387 |
| 388 <% |
| 389 PersistenceManager pm_frontend = PMF.get().getPersistenceManager(); |
| 390 String query_frontend = "select from " + RegisterFeature.class.getName() +
" where feature_type=='Backend'"; |
| 391 List<RegisterFeature> frontend_feature_list = (List<RegisterFeature>) pm_fro
ntend.newQuery(query_frontend).execute(); |
| 392 %> |
| 393 <table align=center class="mytable" style="table-layout: fixed; "> |
| 394 <tr><td><b><H3>Backend Features:</H3></b></td></tr> |
| 395 <tr> |
| 396 <th ><b>Featurename</b></th> |
| 397 <th><b>Leopard</b></th> |
| 398 <th><b>Tester</b></th> |
| 399 <th><b>Snow Leopard</b></th> |
| 400 <th><b>Tester</b></th> |
| 401 <th><b>Bugs Found</b></th> |
| 402 <% for (RegisterFeature f_list : frontend_feature_list) { |
| 403 int found = 0; |
| 404 for (MacTestStatus mac_status : mac) { |
| 405 if ((mac_status.getFeatureName()).equals(f_list.getF
eatureName())) {%> |
| 406 <tr class ="fitrow" style="border:1px solid #CCC; Color: b
lack; padding: 2px"> |
| 407 <td><%= mac_status.getFeatureName() %></td> |
| 408 |
| 409 |
| 410 <% if (mac_status.getStatusLP()
.equals("Buggy")) {%> |
| 411 <td style="background-color:#F
F0000"><%= mac_status.getStatusLP() %></td> |
| 412 <% } else if (mac_stat
us.getStatusLP().equals("InProgress")) { %> |
| 413 <td style="background-
color:#FFFF00"><%= mac_status.getStatusLP() %></td> |
| 414 <% } else if (mac_status.getStatusLP().equals("Finis
hed")) { %> |
| 415 <td style="background-color:#008000"><%= mac_statu
s.getStatusLP() %></td> |
| 416 <% } else{ %> |
| 417 <td style="backgroun
d-color:#FFA500"><%= mac_status.getStatusLP() %></td> |
| 418 <%} %> |
| 419 |
| 420 <td><%= mac_status.getLP
Tester()%></td> |
| 421 |
| 422 |
| 423 |
| 424 |
| 425 <% if (mac_status.getStatusSLP
().equals("Buggy")) {%> |
| 426 <td style="background-color:#F
F0000"><%= mac_status.getStatusSLP() %></td> |
| 427 <% } else if (mac_stat
us.getStatusSLP().equals("InProgress")) { %> |
| 428 <td style="background-
color:#FFFF00"><%= mac_status.getStatusSLP() %></td> |
| 429 <% } else if (mac_status.getStatusSLP().equals("Fini
shed")) { %> |
| 430 <td style="background-color:#008000"><%= mac_statu
s.getStatusSLP() %></td> |
| 431 <% } else{ %> |
| 432 <td style="backgroun
d-color:#FFA500"><%= mac_status.getStatusSLP() %></td> |
| 433 <%}%> |
| 434 <td><%= mac_status.getSLPTest
er()%></td> |
| 435 |
| 436 |
| 437 <td><%= mac_status.getNotes()%><
/td> |
| 438 |
| 439 </tr> |
| 440 <% found=1; |
| 441 break; |
| 442 } |
| 443 } |
| 444 if (found == 0) { |
| 445 if (!(f_list.getFeatureName().equals(""))) {%> |
| 446 <tr class ="fitrow" style="border:1px solid #CCC; Color
: black; padding:2px"> |
| 447 <td><%= f_list.getFeatureName() %></td> |
| 448 <td style="background-color:#FFA500">Not Started</td> |
| 449 <td> n/a </td> |
| 450 <td style="background-color:#FFA500">Not Started</td
> |
| 451 <td> n/a </td> |
| 452 <td style="background-color:#FFA500">Not Started</td
> |
| 453 <td> n/a </td> |
| 454 </tr> |
| 455 <%} } |
| 456 %> |
| 457 |
| 458 |
| 459 <% } |
| 460 |
| 461 pm_frontend.close(); |
| 462 |
| 463 %> |
| 464 |
| 465 |
| 466 </table> |
| 467 <% |
| 468 PersistenceManager pm_compat = PMF.get().getPersistenceManager(); |
| 469 String query_compat = "select from " + RegisterFeature.class.getName() + "
where feature_type=='Compat'"; |
| 470 List<RegisterFeature> compat_feature_list = (List<RegisterFeature>) pm_compa
t.newQuery(query_compat).execute(); |
| 471 %> |
| 472 |
| 473 <table align=center class="mytable" style="table-layout: fixed;"> |
| 474 <tr><td><b><H3>Compat:</H3></b></td></tr> |
| 475 <tr> |
| 476 <th ><b>Featurename</b></th> |
| 477 <th><b>Leopard</b></th> |
| 478 <th><b>Tester</b></th> |
| 479 <th><b>Snow Leopard</b></th> |
| 480 <th><b>Tester</b></th> |
| 481 <th><b>Bugs Found</b></th> |
| 482 <% for (RegisterFeature f_list : compat_feature_list) { |
| 483 int found = 0; |
| 484 for (MacTestStatus mac_status : mac) { |
| 485 if ((mac_status.getFeatureName()).equals(f_list.getF
eatureName())) {%> |
| 486 <tr class ="fitrow" style="border:1px solid #CCC; Color: b
lack; padding: 2px"> |
| 487 <td><%= mac_status.getFeatureName() %></td> |
| 488 |
| 489 |
| 490 <% if (mac_status.getStatusLP()
.equals("Buggy")) {%> |
| 491 <td style="background-color:#F
F0000"><%= mac_status.getStatusLP() %></td> |
| 492 <% } else if (mac_stat
us.getStatusLP().equals("InProgress")) { %> |
| 493 <td style="background-
color:#FFFF00"><%= mac_status.getStatusLP() %></td> |
| 494 <% } else if (mac_status.getStatusLP().equals("Finis
hed")) { %> |
| 495 <td style="background-color:#008000"><%= mac_statu
s.getStatusLP() %></td> |
| 496 <% } else{ %> |
| 497 <td style="backgroun
d-color:#FFA500"><%= mac_status.getStatusLP() %></td> |
| 498 <%} %> |
| 499 |
| 500 <td><%= mac_status.getLP
Tester()%></td> |
| 501 |
| 502 |
| 503 |
| 504 |
| 505 <% if (mac_status.getStatusSLP
().equals("Buggy")) {%> |
| 506 <td style="background-color:#F
F0000"><%= mac_status.getStatusSLP() %></td> |
| 507 <% } else if (mac_stat
us.getStatusSLP().equals("InProgress")) { %> |
| 508 <td style="background-
color:#FFFF00"><%= mac_status.getStatusSLP() %></td> |
| 509 <% } else if (mac_status.getStatusSLP().equals("Fini
shed")) { %> |
| 510 <td style="background-color:#008000"><%= mac_statu
s.getStatusSLP() %></td> |
| 511 <% } else{ %> |
| 512 <td style="backgroun
d-color:#FFA500"><%= mac_status.getStatusSLP() %></td> |
| 513 <%}%> |
| 514 <td><%= mac_status.getSLPTest
er()%></td> |
| 515 |
| 516 <td><%= mac_status.getNotes()%><
/td> |
| 517 |
| 518 </tr> |
| 519 <% found=1; |
| 520 break; |
| 521 } |
| 522 } |
| 523 if (found == 0) { |
| 524 if (!(f_list.getFeatureName().equals(""))) {%> |
| 525 <tr class ="fitrow" style="border:1px solid #CCC; Color
: black; padding:2px"> |
| 526 <td><%= f_list.getFeatureName() %></td> |
| 527 <td style="background-color:#FFA500">Not Started</td> |
| 528 <td> n/a </td> |
| 529 <td style="background-color:#FFA500">Not Started</td
> |
| 530 <td> n/a </td> |
| 531 <td style="background-color:#FFA500">Not Started</td
> |
| 532 <td> n/a </td> |
| 533 </tr> |
| 534 <%} } |
| 535 %> |
| 536 |
| 537 |
| 538 <% } |
| 539 |
| 540 pm_compat.close(); |
| 541 } |
| 542 |
| 543 %> |
| 544 |
| 545 |
| 546 </table> |
| 547 |
| 548 </div> |
| 549 |
| 550 </body> |
| 551 </html> |
| OLD | NEW |