@@ -152,10 +152,10 @@ class DebugSectionsManager extends SectionsManager {
152152 document . querySelector ( "#" + sectionIdentifier + " h1" ) . textContent = title ;
153153 }
154154
155- populateTable ( tableIdentifier , headers , dashboard )
155+ populateTable ( tableIdentifier , headers , scoreCalculator )
156156 {
157157 var table = new DeveloperResultsTable ( document . getElementById ( tableIdentifier ) , headers ) ;
158- table . showIterations ( dashboard ) ;
158+ table . showIterations ( scoreCalculator ) ;
159159 }
160160}
161161
@@ -599,7 +599,7 @@ class DebugBenchmarkController extends BenchmarkController {
599599
600600 this . migrateImportedData ( run ) ;
601601 this . ensureRunnerClient ( [ ] , { } ) ;
602- this . runnerClient . results = new ResultsDashboard ( run . version , run . options , run . data ) ;
602+ this . runnerClient . scoreCalculator = new ScoreCalculator ( run . version , run . options , run . data ) ;
603603 this . showResults ( ) ;
604604 } ;
605605
@@ -704,38 +704,38 @@ class DebugBenchmarkController extends BenchmarkController {
704704 this . addedKeyEvent = true ;
705705 }
706706
707- var dashboard = this . runnerClient . results ;
708- if ( dashboard . options [ "controller" ] == "ramp" )
707+ var scoreCalculator = this . runnerClient . scoreCalculator ;
708+ if ( scoreCalculator . options [ "controller" ] == "ramp" )
709709 Headers . details [ 3 ] . disabled = true ;
710710 else {
711711 Headers . details [ 1 ] . disabled = true ;
712712 Headers . details [ 4 ] . disabled = true ;
713713 }
714714
715- if ( dashboard . options [ Strings . json . configuration ] ) {
715+ if ( scoreCalculator . options [ Strings . json . configuration ] ) {
716716 document . body . classList . remove ( "small" , "medium" , "large" ) ;
717- document . body . classList . add ( dashboard . options [ Strings . json . configuration ] ) ;
717+ document . body . classList . add ( scoreCalculator . options [ Strings . json . configuration ] ) ;
718718 }
719719
720- var score = dashboard . score ;
721- var confidence = ( ( dashboard . scoreLowerBound / score - 1 ) * 100 ) . toFixed ( 2 ) +
722- "% / +" + ( ( dashboard . scoreUpperBound / score - 1 ) * 100 ) . toFixed ( 2 ) + "%" ;
723- var fps = dashboard . _systemFrameRate ;
724- sectionsManager . setSectionVersion ( "results" , dashboard . version ) ;
720+ var score = scoreCalculator . score ;
721+ var confidence = ( ( scoreCalculator . scoreLowerBound / score - 1 ) * 100 ) . toFixed ( 2 ) +
722+ "% / +" + ( ( scoreCalculator . scoreUpperBound / score - 1 ) * 100 ) . toFixed ( 2 ) + "%" ;
723+ var fps = scoreCalculator . _systemFrameRate ;
724+ sectionsManager . setSectionVersion ( "results" , scoreCalculator . version ) ;
725725 sectionsManager . setSectionScore ( "results" , score . toFixed ( 2 ) , confidence , fps ) ;
726- sectionsManager . populateTable ( "results-header" , Headers . testName , dashboard ) ;
727- sectionsManager . populateTable ( "results-score" , Headers . score , dashboard ) ;
728- sectionsManager . populateTable ( "results-data" , Headers . details , dashboard ) ;
726+ sectionsManager . populateTable ( "results-header" , Headers . testName , scoreCalculator ) ;
727+ sectionsManager . populateTable ( "results-score" , Headers . score , scoreCalculator ) ;
728+ sectionsManager . populateTable ( "results-data" , Headers . details , scoreCalculator ) ;
729729 sectionsManager . showSection ( "results" , true ) ;
730730
731- suitesManager . updateLocalStorageFromJSON ( dashboard . results [ 0 ] ) ;
731+ suitesManager . updateLocalStorageFromJSON ( scoreCalculator . results [ 0 ] ) ;
732732 }
733733
734734 showTestGraph ( testName , testResult , testData )
735735 {
736736 sectionsManager . setSectionHeader ( "test-graph" , testName ) ;
737737 sectionsManager . showSection ( "test-graph" , true ) ;
738- this . graphController . updateGraphData ( testResult , testData , this . runnerClient . results . options ) ;
738+ this . graphController . updateGraphData ( testResult , testData , this . runnerClient . scoreCalculator . options ) ;
739739 }
740740}
741741
0 commit comments