@@ -152,10 +152,10 @@ class DebugSectionsManager extends SectionsManager {
152
152
document . querySelector ( "#" + sectionIdentifier + " h1" ) . textContent = title ;
153
153
}
154
154
155
- populateTable ( tableIdentifier , headers , dashboard )
155
+ populateTable ( tableIdentifier , headers , scoreCalculator )
156
156
{
157
157
var table = new DeveloperResultsTable ( document . getElementById ( tableIdentifier ) , headers ) ;
158
- table . showIterations ( dashboard ) ;
158
+ table . showIterations ( scoreCalculator ) ;
159
159
}
160
160
}
161
161
@@ -599,7 +599,7 @@ class DebugBenchmarkController extends BenchmarkController {
599
599
600
600
this . migrateImportedData ( run ) ;
601
601
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 ) ;
603
603
this . showResults ( ) ;
604
604
} ;
605
605
@@ -704,38 +704,38 @@ class DebugBenchmarkController extends BenchmarkController {
704
704
this . addedKeyEvent = true ;
705
705
}
706
706
707
- var dashboard = this . runnerClient . results ;
708
- if ( dashboard . options [ "controller" ] == "ramp" )
707
+ var scoreCalculator = this . runnerClient . scoreCalculator ;
708
+ if ( scoreCalculator . options [ "controller" ] == "ramp" )
709
709
Headers . details [ 3 ] . disabled = true ;
710
710
else {
711
711
Headers . details [ 1 ] . disabled = true ;
712
712
Headers . details [ 4 ] . disabled = true ;
713
713
}
714
714
715
- if ( dashboard . options [ Strings . json . configuration ] ) {
715
+ if ( scoreCalculator . options [ Strings . json . configuration ] ) {
716
716
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 ] ) ;
718
718
}
719
719
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 ) ;
725
725
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 ) ;
729
729
sectionsManager . showSection ( "results" , true ) ;
730
730
731
- suitesManager . updateLocalStorageFromJSON ( dashboard . results [ 0 ] ) ;
731
+ suitesManager . updateLocalStorageFromJSON ( scoreCalculator . results [ 0 ] ) ;
732
732
}
733
733
734
734
showTestGraph ( testName , testResult , testData )
735
735
{
736
736
sectionsManager . setSectionHeader ( "test-graph" , testName ) ;
737
737
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 ) ;
739
739
}
740
740
}
741
741
0 commit comments