OLD | NEW |
1 // Copyright (C) 2012 Google Inc. All rights reserved. | 1 // Copyright (C) 2012 Google Inc. All rights reserved. |
2 // | 2 // |
3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
5 // met: | 5 // met: |
6 // | 6 // |
7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 | 604 |
605 function createBugHTML(test) | 605 function createBugHTML(test) |
606 { | 606 { |
607 var symptom = test.isFlaky ? 'flaky' : 'failing'; | 607 var symptom = test.isFlaky ? 'flaky' : 'failing'; |
608 var title = encodeURIComponent('Layout Test ' + test.test + ' is ' + symptom
); | 608 var title = encodeURIComponent('Layout Test ' + test.test + ' is ' + symptom
); |
609 var description = encodeURIComponent('The following layout test is ' + sympt
om + ' on ' + | 609 var description = encodeURIComponent('The following layout test is ' + sympt
om + ' on ' + |
610 '[insert platform]\n\n' + test.test + '\n\nProbable cause:\n\n' + | 610 '[insert platform]\n\n' + test.test + '\n\nProbable cause:\n\n' + |
611 '[insert probable cause]'); | 611 '[insert probable cause]'); |
612 | 612 |
613 url = 'https://code.google.com/p/chromium/issues/entry?template=Layout%20Tes
t%20Failure&summary=' + title + '&comment=' + description; | 613 url = 'https://code.google.com/p/chromium/issues/entry?template=Layout%20Tes
t%20Failure&summary=' + title + '&comment=' + description; |
614 return '<a href="' + url + '">File new bug</a>'; | 614 return '<a class="file-new-bug" href="' + url + '">File new bug</a>'; |
615 } | 615 } |
616 | 616 |
617 function isCrossBuilderView() | 617 function isCrossBuilderView() |
618 { | 618 { |
619 return g_history.dashboardSpecificState.tests || g_history.dashboardSpecific
State.result; | 619 return g_history.dashboardSpecificState.tests || g_history.dashboardSpecific
State.result; |
620 } | 620 } |
621 | 621 |
622 function tableHeaders(opt_getAll) | 622 function tableHeaders(opt_getAll) |
623 { | 623 { |
624 var headers = []; | 624 var headers = []; |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 // escape key | 1380 // escape key |
1381 hideLegend(); | 1381 hideLegend(); |
1382 ui.popup.hide(); | 1382 ui.popup.hide(); |
1383 } | 1383 } |
1384 }, false); | 1384 }, false); |
1385 | 1385 |
1386 window.addEventListener('load', function() { | 1386 window.addEventListener('load', function() { |
1387 resourceLoader = new loader.Loader(); | 1387 resourceLoader = new loader.Loader(); |
1388 resourceLoader.load(); | 1388 resourceLoader.load(); |
1389 }, false); | 1389 }, false); |
OLD | NEW |