Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /** | 1 /** |
| 2 * @fileoverview Base JS file for pages that want to parse the results JSON | 2 * @fileoverview Base JS file for pages that want to parse the results JSON |
| 3 * from the testing bots. This deals with generic utility functions, visible | 3 * from the testing bots. This deals with generic utility functions, visible |
| 4 * history, popups and appending the script elements for the JSON files. | 4 * history, popups and appending the script elements for the JSON files. |
| 5 * | 5 * |
| 6 * The calling page is expected to implement three "abstract" functions/objects. | 6 * The calling page is expected to implement three "abstract" functions/objects. |
| 7 * generatePage, validateHashParameter and defaultStateValues. | 7 * generatePage, validateHashParameter and defaultStateValues. |
| 8 */ | 8 */ |
| 9 var pageLoadStartTime = Date.now(); | 9 var pageLoadStartTime = Date.now(); |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 ////////////////////////////////////////////////////////////////////////////// | 35 ////////////////////////////////////////////////////////////////////////////// |
| 36 // CONSTANTS | 36 // CONSTANTS |
| 37 ////////////////////////////////////////////////////////////////////////////// | 37 ////////////////////////////////////////////////////////////////////////////// |
| 38 var EXPECTATIONS_MAP = { | 38 var EXPECTATIONS_MAP = { |
| 39 'T': 'TIMEOUT', | 39 'T': 'TIMEOUT', |
| 40 'C': 'CRASH', | 40 'C': 'CRASH', |
| 41 'P': 'PASS', | 41 'P': 'PASS', |
| 42 'F': 'TEXT', | 42 'F': 'TEXT', |
| 43 'I': 'IMAGE', | 43 'I': 'IMAGE', |
| 44 'Z': 'IMAGE+TEXT', | 44 'Z': 'IMAGE+TEXT', |
| 45 'O': 'OTHER', | 45 'O': 'MISSING', |
|
Julie Parent
2009/12/04 00:53:12
Maybe add a comment here about why O stands for Mi
| |
| 46 'N': 'NO DATA', | 46 'N': 'NO DATA', |
| 47 'X': 'SKIP' | 47 'X': 'SKIP' |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // Keys in the JSON files. | 50 // Keys in the JSON files. |
| 51 var WONTFIX_COUNTS_KEY = 'wontfixCounts'; | 51 var WONTFIX_COUNTS_KEY = 'wontfixCounts'; |
| 52 var FIXABLE_COUNTS_KEY = 'fixableCounts'; | 52 var FIXABLE_COUNTS_KEY = 'fixableCounts'; |
| 53 var DEFERRED_COUNTS_KEY = 'deferredCounts'; | 53 var DEFERRED_COUNTS_KEY = 'deferredCounts'; |
| 54 var WONTFIX_DESCRIPTION = 'Tests never to be fixed (WONTFIX)'; | 54 var WONTFIX_DESCRIPTION = 'Tests never to be fixed (WONTFIX)'; |
| 55 var FIXABLE_DESCRIPTION = 'All tests for this release'; | 55 var FIXABLE_DESCRIPTION = 'All tests for this release'; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 379 !(popup.compareDocumentPosition(e.target) & 16)) { | 379 !(popup.compareDocumentPosition(e.target) & 16)) { |
| 380 hidePopup(); | 380 hidePopup(); |
| 381 } | 381 } |
| 382 }, false); | 382 }, false); |
| 383 | 383 |
| 384 window.addEventListener('load', function() { | 384 window.addEventListener('load', function() { |
| 385 // This doesn't seem totally accurate as there is a race between | 385 // This doesn't seem totally accurate as there is a race between |
| 386 // onload firing and the last script tag being executed. | 386 // onload firing and the last script tag being executed. |
| 387 logTime('Time to load JS', pageLoadStartTime); | 387 logTime('Time to load JS', pageLoadStartTime); |
| 388 }, false); | 388 }, false); |
| OLD | NEW |