| 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 30 matching lines...) Expand all Loading... |
| 41 var SLOW_MULTIPLIER = 5; | 41 var SLOW_MULTIPLIER = 5; |
| 42 | 42 |
| 43 // FIXME: Figure out how to make this not be hard-coded. | 43 // FIXME: Figure out how to make this not be hard-coded. |
| 44 // Probably just include in the results.json files and get it from there. | 44 // Probably just include in the results.json files and get it from there. |
| 45 var VIRTUAL_SUITES = { | 45 var VIRTUAL_SUITES = { |
| 46 'virtual/gpu/fast/canvas': 'fast/canvas', | 46 'virtual/gpu/fast/canvas': 'fast/canvas', |
| 47 'virtual/gpu/canvas/philip': 'canvas/philip', | 47 'virtual/gpu/canvas/philip': 'canvas/philip', |
| 48 'virtual/threaded/compositing/visibility': 'compositing/visibility', | 48 'virtual/threaded/compositing/visibility': 'compositing/visibility', |
| 49 'virtual/threaded/compositing/webgl': 'compositing/webgl', | 49 'virtual/threaded/compositing/webgl': 'compositing/webgl', |
| 50 'virtual/gpu/fast/hidpi': 'fast/hidpi', | 50 'virtual/gpu/fast/hidpi': 'fast/hidpi', |
| 51 'virtual/softwarecompositing': 'compositing', | |
| 52 'virtual/deferred/fast/images': 'fast/images', | 51 'virtual/deferred/fast/images': 'fast/images', |
| 53 'virtual/gpu/compositedscrolling/overflow': 'compositing/overflow', | 52 'virtual/gpu/compositedscrolling/overflow': 'compositing/overflow', |
| 54 'virtual/gpu/compositedscrolling/scrollbars': 'scrollbars', | 53 'virtual/gpu/compositedscrolling/scrollbars': 'scrollbars', |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 var ACTUAL_RESULT_SUFFIXES = ['expected.txt', 'expected.png', 'actual.txt', 'act
ual.png', 'diff.txt', 'diff.png', 'wdiff.html', 'crash-log.txt']; | 56 var ACTUAL_RESULT_SUFFIXES = ['expected.txt', 'expected.png', 'actual.txt', 'act
ual.png', 'diff.txt', 'diff.png', 'wdiff.html', 'crash-log.txt']; |
| 58 | 57 |
| 59 var EXPECTATIONS_ORDER = ACTUAL_RESULT_SUFFIXES.filter(function(suffix) { | 58 var EXPECTATIONS_ORDER = ACTUAL_RESULT_SUFFIXES.filter(function(suffix) { |
| 60 return !string.endsWith(suffix, 'png'); | 59 return !string.endsWith(suffix, 'png'); |
| 61 }).map(function(suffix) { | 60 }).map(function(suffix) { |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 } | 322 } |
| 324 | 323 |
| 325 function individualTestsForSubstringList() | 324 function individualTestsForSubstringList() |
| 326 { | 325 { |
| 327 var testList = splitTestList(); | 326 var testList = splitTestList(); |
| 328 // If listing a lot of tests, assume you've passed in an explicit list of te
sts | 327 // If listing a lot of tests, assume you've passed in an explicit list of te
sts |
| 329 // instead of patterns to match against. The matching code below is super sl
ow. | 328 // instead of patterns to match against. The matching code below is super sl
ow. |
| 330 // | 329 // |
| 331 // Also, when showChrome is false, we're embedding the dashboard elsewhere a
nd | 330 // Also, when showChrome is false, we're embedding the dashboard elsewhere a
nd |
| 332 // an explicit test list is passed in. In that case, we don't want | 331 // an explicit test list is passed in. In that case, we don't want |
| 333 // a search for compositing/foo.html to also show virtual/softwarecompositin
g/foo.html. | 332 // a search for fast/canvas/foo.html to also show virtual/gpu/fast/canvas/fo
o.html. |
| 334 if (testList.length > 10 || !g_history.dashboardSpecificState.showChrome) | 333 if (testList.length > 10 || !g_history.dashboardSpecificState.showChrome) |
| 335 return testList; | 334 return testList; |
| 336 | 335 |
| 337 // Put the tests into an object first and then move them into an array | 336 // Put the tests into an object first and then move them into an array |
| 338 // as a way of deduping. | 337 // as a way of deduping. |
| 339 var testsMap = {}; | 338 var testsMap = {}; |
| 340 for (var i = 0; i < testList.length; i++) { | 339 for (var i = 0; i < testList.length; i++) { |
| 341 var path = testList[i]; | 340 var path = testList[i]; |
| 342 | 341 |
| 343 // Ignore whitespace entries as they'd match every test. | 342 // Ignore whitespace entries as they'd match every test. |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 // escape key | 1495 // escape key |
| 1497 hideLegend(); | 1496 hideLegend(); |
| 1498 ui.popup.hide(); | 1497 ui.popup.hide(); |
| 1499 } | 1498 } |
| 1500 }, false); | 1499 }, false); |
| 1501 | 1500 |
| 1502 window.addEventListener('load', function() { | 1501 window.addEventListener('load', function() { |
| 1503 resourceLoader = new loader.Loader(); | 1502 resourceLoader = new loader.Loader(); |
| 1504 resourceLoader.load(); | 1503 resourceLoader.load(); |
| 1505 }, false); | 1504 }, false); |
| OLD | NEW |