| OLD | NEW |
| 1 <style> | 1 <style> |
| 2 #options { | 2 #options { |
| 3 position: absolute; | 3 position: absolute; |
| 4 background-color: #FFFFCC; | 4 background-color: #FFFFCC; |
| 5 display: none; | 5 display: none; |
| 6 font-family: "Courier New"; | 6 font-family: "Courier New"; |
| 7 font-size: 9pt; | 7 font-size: 9pt; |
| 8 padding: 5px; | 8 padding: 5px; |
| 9 border: 1px solid #CCCC88; | 9 border: 1px solid #CCCC88; |
| 10 z-index: 3; | 10 z-index: 3; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 initialReadBytes_ = chrome.benchmarking.counter(kTCPReadBytes); | 233 initialReadBytes_ = chrome.benchmarking.counter(kTCPReadBytes); |
| 234 initialWriteBytes_ = chrome.benchmarking.counter(kTCPWriteBytes); | 234 initialWriteBytes_ = chrome.benchmarking.counter(kTCPWriteBytes); |
| 235 initialRequestCount_ = chrome.benchmarking.counter(kRequestCount); | 235 initialRequestCount_ = chrome.benchmarking.counter(kRequestCount); |
| 236 initialConnectCount_ = chrome.benchmarking.counter(kConnectCount); | 236 initialConnectCount_ = chrome.benchmarking.counter(kConnectCount); |
| 237 initialSpdySessionCount_ = chrome.benchmarking.counter(kSpdySessionCount); | 237 initialSpdySessionCount_ = chrome.benchmarking.counter(kSpdySessionCount); |
| 238 } | 238 } |
| 239 | 239 |
| 240 this.openNextPage = function() { | 240 this.openNextPage = function() { |
| 241 var benchmark = nextBenchmark(); | 241 var benchmark = nextBenchmark(); |
| 242 benchmark.pageStart(); | 242 benchmark.pageStart(); |
| 243 chrome.tabs.create({"url": benchmark.url(),"selected": false}, | 243 chrome.tabs.create({"url": benchmark.url(),"selected": true}, |
| 244 function(tab) { | 244 function(tab) { |
| 245 benchmarkWindow = tab; | 245 benchmarkWindow = tab; |
| 246 // script.js only executes on tested pages | 246 // script.js only executes on tested pages |
| 247 // not the ones opened by the user. | 247 // not the ones opened by the user. |
| 248 chrome.tabs.executeScript(tab.id, {file: "script.js"}); | 248 chrome.tabs.executeScript(tab.id, {file: "script.js"}); |
| 249 }); | 249 }); |
| 250 } | 250 } |
| 251 | 251 |
| 252 this.prepareToOpenPage = function() { | 252 this.prepareToOpenPage = function() { |
| 253 // After the previous page is closed, this function will apply | 253 // After the previous page is closed, this function will apply |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 return true; | 495 return true; |
| 496 } | 496 } |
| 497 return false; | 497 return false; |
| 498 } | 498 } |
| 499 | 499 |
| 500 // Run at startup | 500 // Run at startup |
| 501 chrome.windows.getCurrent(function(currentWindow) { | 501 chrome.windows.getCurrent(function(currentWindow) { |
| 502 window.windowId = currentWindow.id; | 502 window.windowId = currentWindow.id; |
| 503 }); | 503 }); |
| 504 </script> | 504 </script> |
| OLD | NEW |