| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Variables for console Javascript access to the currently visible/selected rec
ords. | 5 // Variables for console Javascript access to the currently visible/selected rec
ords. |
| 6 var records = []; | 6 var records = []; |
| 7 var selectedRecords = []; | 7 var selectedRecords = []; |
| 8 | 8 |
| 9 var recentModule = (function(){ | 9 var recentModule = (function(){ |
| 10 'use strict'; | 10 'use strict'; |
| 11 | 11 |
| 12 var indexSelected = {}; | 12 var indexSelected = {}; |
| 13 var logServer = '//chromium-cq-status.appspot.com'; | 13 var logServer = '//' + window.location.host; |
| 14 var tags = []; | 14 var tags = []; |
| 15 var cursor; | 15 var cursor; |
| 16 var table; | 16 var table; |
| 17 var loadMore; | 17 var loadMore; |
| 18 var loading; | 18 var loading; |
| 19 // Provide access to imported DOM in tests. | 19 // Provide access to imported DOM in tests. |
| 20 // In production, currentDocument == document. | 20 // In production, currentDocument == document. |
| 21 var currentScript = document._currentScript || document.currentScript; | 21 var currentScript = document._currentScript || document.currentScript; |
| 22 var currentDocument = currentScript.ownerDocument; | 22 var currentDocument = currentScript.ownerDocument; |
| 23 | 23 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 return { | 251 return { |
| 252 'main': main, | 252 'main': main, |
| 253 // Export methods for tests. | 253 // Export methods for tests. |
| 254 'init': init, | 254 'init': init, |
| 255 'processJSON': processJSON, | 255 'processJSON': processJSON, |
| 256 'document': currentDocument, | 256 'document': currentDocument, |
| 257 }; | 257 }; |
| 258 | 258 |
| 259 })(); | 259 })(); |
| 260 | 260 |
| OLD | NEW |