OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This view displays the progress and results from the "connection tester". | 6 * This view displays the progress and results from the "connection tester". |
7 * | 7 * |
8 * - Has an input box to specify the URL. | 8 * - Has an input box to specify the URL. |
9 * - Has a button to start running the tests. | 9 * - Has a button to start running the tests. |
10 * - Shows the set of experiments that have been run so far, and their | 10 * - Shows the set of experiments that have been run so far, and their |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 */ | 63 */ |
64 onStartedConnectionTestSuite: function() { | 64 onStartedConnectionTestSuite: function() { |
65 this.summaryDiv_.innerHTML = ''; | 65 this.summaryDiv_.innerHTML = ''; |
66 | 66 |
67 var p = addNode(this.summaryDiv_, 'p'); | 67 var p = addNode(this.summaryDiv_, 'p'); |
68 addTextNode(p, 'Started connection test suite suite on '); | 68 addTextNode(p, 'Started connection test suite suite on '); |
69 timeutil.addNodeWithDate(p, new Date()); | 69 timeutil.addNodeWithDate(p, new Date()); |
70 | 70 |
71 // Add a table that will hold the individual test results. | 71 // Add a table that will hold the individual test results. |
72 var table = addNode(this.summaryDiv_, 'table'); | 72 var table = addNode(this.summaryDiv_, 'table'); |
73 table.className = 'styledTable'; | 73 table.className = 'styled-table'; |
74 var thead = addNode(table, 'thead'); | 74 var thead = addNode(table, 'thead'); |
75 thead.innerHTML = '<tr><th>Result</th><th>Experiment</th>' + | 75 thead.innerHTML = '<tr><th>Result</th><th>Experiment</th>' + |
76 '<th>Error</th><th>Time (ms)</th></tr>'; | 76 '<th>Error</th><th>Time (ms)</th></tr>'; |
77 | 77 |
78 this.tbody_ = addNode(table, 'tbody'); | 78 this.tbody_ = addNode(table, 'tbody'); |
79 }, | 79 }, |
80 | 80 |
81 /** | 81 /** |
82 * Callback for when an individual test in the suite has begun. | 82 * Callback for when an individual test in the suite has begun. |
83 */ | 83 */ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 * Callback for when the last test in the suite has finished. | 153 * Callback for when the last test in the suite has finished. |
154 */ | 154 */ |
155 onCompletedConnectionTestSuite: function() { | 155 onCompletedConnectionTestSuite: function() { |
156 var p = addNode(this.summaryDiv_, 'p'); | 156 var p = addNode(this.summaryDiv_, 'p'); |
157 addTextNode(p, 'Completed connection test suite suite'); | 157 addTextNode(p, 'Completed connection test suite suite'); |
158 } | 158 } |
159 }; | 159 }; |
160 | 160 |
161 return TestView; | 161 return TestView; |
162 })(); | 162 })(); |
OLD | NEW |