Skip to content

Commit 9aff631

Browse files
committed
Make the JS formatting consistent. No behavior changes.
1 parent aa76e5e commit 9aff631

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

MotionMark/resources/debug-runner/debug-runner.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ Utilities.extendObject(window.sectionsManager, {
158158
}
159159
});
160160

161-
window.optionsManager =
162-
{
161+
window.optionsManager = {
163162
valueForOption: function(name)
164163
{
165164
var formElement = document.forms["benchmark-options"].elements[name];
@@ -251,8 +250,7 @@ window.optionsManager =
251250
}
252251
};
253252

254-
window.suitesManager =
255-
{
253+
window.suitesManager = {
256254
_treeElement: function()
257255
{
258256
return document.querySelector("#suites > .tree");
@@ -695,6 +693,7 @@ Utilities.extendObject(window.benchmarkController, {
695693
sectionsManager.showSection("test-graph", true);
696694
this.updateGraphData(testResult, testData, benchmarkRunnerClient.results.options);
697695
},
696+
698697
detectSystemFrameRate: function()
699698
{
700699
let last = 0;
@@ -736,5 +735,4 @@ Utilities.extendObject(window.benchmarkController, {
736735

737736
requestAnimationFrame(tick);
738737
}
739-
740738
});

MotionMark/resources/extensions.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
2323
* THE POSSIBILITY OF SUCH DAMAGE.
2424
*/
25-
Utilities =
26-
{
25+
Utilities = {
2726
_parse: function(str, sep)
2827
{
2928
var output = {};

MotionMark/resources/runner/motionmark.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ window.benchmarkRunnerClient = {
419419
}
420420
};
421421

422-
window.sectionsManager =
423-
{
422+
window.sectionsManager = {
424423
showSection: function(sectionIdentifier, pushState)
425424
{
426425
var sections = document.querySelectorAll("main > section");
@@ -485,7 +484,8 @@ window.benchmarkController = {
485484
benchmarkController.addOrientationListenerIfNecessary();
486485
},
487486

488-
determineCanvasSize: function() {
487+
determineCanvasSize: function()
488+
{
489489
var match = window.matchMedia("(max-device-width: 760px)");
490490
if (match.matches) {
491491
document.body.classList.add("small");
@@ -507,7 +507,8 @@ window.benchmarkController = {
507507
document.body.classList.add("large");
508508
},
509509

510-
addOrientationListenerIfNecessary: function() {
510+
addOrientationListenerIfNecessary: function()
511+
{
511512
if (!("orientation" in window))
512513
return;
513514

MotionMark/tests/resources/main.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ Controller = Utilities.createClass(
8181
this.initialComplexity = 1;
8282
}, {
8383

84-
set isFrameLengthEstimatorEnabled(enabled) {
84+
set isFrameLengthEstimatorEnabled(enabled)
85+
{
8586
this._isFrameLengthEstimatorEnabled = enabled;
8687
},
8788

@@ -100,14 +101,16 @@ Controller = Utilities.createClass(
100101
this.mark(Strings.json.samplingStartTimeOffset, startTimestamp);
101102
},
102103

103-
mark: function(comment, timestamp, data) {
104+
mark: function(comment, timestamp, data)
105+
{
104106
data = data || {};
105107
data.time = timestamp;
106108
data.index = this._sampler.sampleCount;
107109
this._marks[comment] = data;
108110
},
109111

110-
containsMark: function(comment) {
112+
containsMark: function(comment)
113+
{
111114
return comment in this._marks;
112115
},
113116

@@ -217,6 +220,7 @@ Controller = Utilities.createClass(
217220
this._marks[markName].time -= this._startTimestamp;
218221
return this._marks;
219222
},
223+
220224
_processControllerSamples: function()
221225
{
222226
var controllerSamples = new SampleData;
@@ -569,11 +573,13 @@ RampController = Utilities.createSubclass(Controller,
569573
this._possibleMaximumComplexity = this._maximumComplexity;
570574
},
571575

572-
_getComplexity: function(samples, i) {
576+
_getComplexity: function(samples, i)
577+
{
573578
return samples[1][i];
574579
},
575580

576-
_getFrameLength: function(samples, i) {
581+
_getFrameLength: function(samples, i)
582+
{
577583
return samples[0][i] - samples[0][i - 1];
578584
},
579585

0 commit comments

Comments
 (0)