Skip to content

Commit

Permalink
Make the 'Paths' test workload more consistent
Browse files Browse the repository at this point in the history
This test fixes a gradual change in the number of points having isSplit=true
from 5% to 50% of points by starting with 50% of points with isSplit=true.

Fixes #30
  • Loading branch information
vmiura authored and smfr committed Jan 4, 2024
1 parent 9edd41a commit 3090053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MotionMark/tests/core/resources/canvas-tests.js
Expand Up @@ -110,7 +110,7 @@ CanvasLinePoint = Utilities.createClass(
var colors = ["#101010", "#808080", "#c0c0c0", "#101010", "#808080", "#c0c0c0", "#e01040"];
this.color = Stage.randomElementInArray(colors);
this.width = Math.pow(Pseudo.random(), 5) * 20 + 1;
this.isSplit = Pseudo.random() > 0.95;
this.isSplit = Pseudo.random() > 0.5;

var nextPoint;
if (stage.objects.length)
Expand Down

0 comments on commit 3090053

Please sign in to comment.