| 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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 function hideLoadingUI() | 1152 function hideLoadingUI() |
| 1153 { | 1153 { |
| 1154 var loadingDiv = $('loading-ui'); | 1154 var loadingDiv = $('loading-ui'); |
| 1155 if (loadingDiv) | 1155 if (loadingDiv) |
| 1156 loadingDiv.style.display = 'none'; | 1156 loadingDiv.style.display = 'none'; |
| 1157 postHeightChangedMessage(); | 1157 postHeightChangedMessage(); |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 function generatePageForIndividualTests(tests) | 1160 function generatePageForIndividualTests(tests) |
| 1161 { | 1161 { |
| 1162 console.log('Number of tests: ' + tests.length); | |
| 1163 if (g_history.dashboardSpecificState.showChrome) | 1162 if (g_history.dashboardSpecificState.showChrome) |
| 1164 appendHTML(htmlForNavBar()); | 1163 appendHTML(htmlForNavBar()); |
| 1165 performChunkedAction(function(test) { | 1164 performChunkedAction(function(test) { |
| 1166 appendHTML(htmlForIndividualTest(test)); | 1165 appendHTML(htmlForIndividualTest(test)); |
| 1167 }, | 1166 }, |
| 1168 appendExpectations, | 1167 appendExpectations, |
| 1169 tests); | 1168 tests); |
| 1170 if (g_history.dashboardSpecificState.showChrome) { | 1169 if (g_history.dashboardSpecificState.showChrome) { |
| 1171 $('tests-input').value = g_history.dashboardSpecificState.tests; | 1170 $('tests-input').value = g_history.dashboardSpecificState.tests; |
| 1172 $('result-input').value = g_history.dashboardSpecificState.result; | 1171 $('result-input').value = g_history.dashboardSpecificState.result; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 // escape key | 1379 // escape key |
| 1381 hideLegend(); | 1380 hideLegend(); |
| 1382 ui.popup.hide(); | 1381 ui.popup.hide(); |
| 1383 } | 1382 } |
| 1384 }, false); | 1383 }, false); |
| 1385 | 1384 |
| 1386 window.addEventListener('load', function() { | 1385 window.addEventListener('load', function() { |
| 1387 resourceLoader = new loader.Loader(); | 1386 resourceLoader = new loader.Loader(); |
| 1388 resourceLoader.load(); | 1387 resourceLoader.load(); |
| 1389 }, false); | 1388 }, false); |
| OLD | NEW |