Particulate.js | Tests

QUnit 1.23.1; Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/135.0.0.0 Safari/537.36 Prerender (+https://github.com/prerender/prerender)

Tests completed in 33 milliseconds.
108 assertions of 108 passed, 0 failed.

  1. System.Particle: Creation from particle count (4)Rerun1 ms
    1. Should initialize positions as vec3 array.@ 1 ms
    2. Should initialize positionsPrev as vec3 array.@ 1 ms
    3. Should initialize accumulatedForces as vec3 array.@ 1 ms
    4. Should initialize weights as float array.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:10159

  2. System.Particle: Creation from positions array (6)Rerun1 ms
    1. Should initialize positions as vec3 array.@ 0 ms
    2. Should initialize positionsPrev as vec3 array.@ 0 ms
    3. Should initialize accumulatedForces as vec3 array.@ 0 ms
    4. Should initialize weights as float array.@ 0 ms
    5. Should initialize positions with passed values.@ 1 ms
    6. Should initialize positionsPrev with passed values.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:10239

  3. System.Particle: Adding and removing local constraints (3)Rerun0 ms
    1. Should add local constraint.@ 0 ms
    2. Should allow adding duplicate constraints.@ 0 ms
    3. Should remove all instances of constraint.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:10354

  4. System.Particle: Adding and removing pin constraints (3)Rerun0 ms
    1. Should add pin constraint.@ 0 ms
    2. Should allow adding duplicate constraints.@ 0 ms
    3. Should remove all instances of constraint.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:10722

  5. System.Particle: Adding and removing forces (3)Rerun0 ms
    1. Should add force.@ 0 ms
    2. Should allow adding duplicate forces.@ 0 ms
    3. Should remove all instances of force.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:11093

  6. System.Particle: Setting weights (3)Rerun0 ms
    1. Should initialize weights with neutral value of 1.@ 0 ms
    2. Should set particle weight at index.@ 0 ms
    3. Should set all weights.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:11399

  7. Constraint: Creation (1)Rerun0 ms
    1. Should initialize indices as int array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:11762

  8. Constraint: Setting indices (2)Rerun0 ms
    1. Should set indices from integers.@ 0 ms
    2. Should set indices from array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:11879

  9. Constraint: Setting indices with index offset (2)Rerun0 ms
    1. Should set indices from integers.@ 0 ms
    2. Should set indices from array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:12126

  10. Constraint.Angle: Creation (2)Rerun0 ms
    1. Should create indices from int arguments.@ 0 ms
    2. Should create indices from int array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:12809

  11. Constraint.Angle: Application of angle (20)Rerun4 ms
    1. Should constrain particles to 0 radians.@ 1 ms
    2. Should constrain coincident particles to 0 radians.@ 1 ms
    3. Should constrain particles to 0.349 radians.@ 1 ms
    4. Should constrain coincident particles to 0.349 radians.@ 1 ms
    5. Should constrain particles to 0.698 radians.@ 1 ms
    6. Should constrain coincident particles to 0.698 radians.@ 2 ms
    7. Should constrain particles to 1.047 radians.@ 2 ms
    8. Should constrain coincident particles to 1.047 radians.@ 2 ms
    9. Should constrain particles to 1.396 radians.@ 2 ms
    10. Should constrain coincident particles to 1.396 radians.@ 3 ms
    11. Should constrain particles to 1.745 radians.@ 3 ms
    12. Should constrain coincident particles to 1.745 radians.@ 3 ms
    13. Should constrain particles to 2.094 radians.@ 3 ms
    14. Should constrain coincident particles to 2.094 radians.@ 3 ms
    15. Should constrain particles to 2.443 radians.@ 3 ms
    16. Should constrain coincident particles to 2.443 radians.@ 4 ms
    17. Should constrain particles to 2.792 radians.@ 4 ms
    18. Should constrain coincident particles to 2.792 radians.@ 4 ms
    19. Should constrain particles to 3.141 radians.@ 4 ms
    20. Should constrain coincident particles to 3.141 radians.@ 4 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:13084

  12. Constraint.Angle: Application of angle range (3)Rerun1 ms
    1. Should constrain particles if angle is greater than upper bound of range.@ 1 ms
    2. Should constrain particles if angle is less than lower bound of range.@ 1 ms
    3. Should not affect particles within range tolerance.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:13180

  13. Constraint.Axis: Creation (2)Rerun0 ms
    1. Should create indices from int arguments.@ 0 ms
    2. Should create indices from int array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:14081

  14. Constraint.Axis: Application (2)Rerun0 ms
    1. Should constrain single particle to axis.@ 0 ms
    2. Should constrain multiple particles to axis.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:14348

  15. Constraint.BoundingPlane: Creation (1)Rerun0 ms
    1. Should initialize origin and normal vec3s.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:14937

  16. Constraint.BoundingPlane: Application (2)Rerun1 ms
    1. Should constrain particles behind plane.@ 1 ms
    2. Should not affect particles in front of plane.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:15103

  17. Constraint.BoundingPlane: Application with distance influence (2)Rerun0 ms
    1. Should constrain particles behind plane.@ 0 ms
    2. Should constrain particles in front of plane within distance influence.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:15485

  18. Constraint.Box: Creation (1)Rerun0 ms
    1. Should initialize bounds from min and max vec3s.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:16008

  19. Constraint.Box: Application (3)Rerun0 ms
    1. Should bound x position.@ 0 ms
    2. Should bound y position.@ 0 ms
    3. Should bound z position.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:16189

  20. Constraint.Distance: Creation (4)Rerun0 ms
    1. Should initialize precalculated min^2.@ 0 ms
    2. Should initialize precalculated max^2.@ 0 ms
    3. Should create indices from int arguments.@ 0 ms
    4. Should create indices from int array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:16661

  21. Constraint.Distance: Application of distance (2)Rerun1 ms
    1. Should constrain single set of particles to distance.@ 1 ms
    2. Should constrain multiple sets of particles to distance.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:17044

  22. Constraint.Distance: Application of distance range (4)Rerun0 ms
    1. Should not affect coincident particles if lower bound is 0.@ 0 ms
    2. Should not affect particles within range tolerance.@ 0 ms
    3. Should constrain particles if distance is less than lower bound of range.@ 0 ms
    4. Should constrain particles if distance is greater than upper bound of range.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:17475

  23. Constraint.Plane: Creation (2)Rerun0 ms
    1. Should create indices from int arguments.@ 0 ms
    2. Should create indices from int array.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:18911

  24. Constraint.Plane: Application (6)Rerun1 ms
    1. Should cache plane normal vector.@ 0 ms
    2. Should constrain single set of particles to plane.@ 0 ms
    3. Should constrain multiple sets of particles to plane.@ 1 ms
    4. Should cache plane normal vector.@ 1 ms
    5. Should constrain single set of particles to plane.@ 1 ms
    6. Should constrain multiple sets of particles to plane.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:19190

  25. Constraint.Point: Creation (1)Rerun0 ms
    1. Should initialize position as passed vec3.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:19420

  26. Constraint.Point: Application (2)Rerun0 ms
    1. Should set particle's position.@ 0 ms
    2. Should set particle's previous position.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:19567

  27. Force: Creation (3)Rerun0 ms
    1. Should initialize vector as vec3 array.@ 0 ms
    2. Should initialize type as attractor by default.@ 0 ms
    3. Should set type per constructor options.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:19936

  28. Force.Directional: Application (1)Rerun0 ms
    1. Should be directly applied to all particles.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:20356

  29. Force.Point: Creation (1)Rerun1 ms
    1. Should initialize precalculated radius^2.@ 1 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:20672

  30. Force.Point: Application of attractor (2)Rerun0 ms
    1. Attractor should move particles outside its radius toward defined point.@ 0 ms
    2. Attractor should not affect particles within its radius.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:20806

  31. Force.Point: Application of repulsor (2)Rerun0 ms
    1. Repulsor should move particles within its radius away from defined point.@ 0 ms
    2. Repulsor should not affect particles outside its radius.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:21247

  32. Force.Point: Application of attractor/repulsor (2)Rerun0 ms
    1. Attractor/Repulsor should move particles within its radius away from defined point.@ 0 ms
    2. Attractor/Repulsor should move particles outside its radius toward defined point.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:21720

  33. Vec3: Setting a vector of a float buffer (3)Rerun0 ms
    1. Should set first vec3 from vec3.@ 0 ms
    2. Should set second vec3 from vec3.@ 0 ms
    3. Should set third vec3 from floats.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:22325

  34. Vec3: Getting a vector from a float buffer (2)Rerun0 ms
    1. Should get first vec3.@ 0 ms
    2. Should get second vec3.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:22716

  35. Vec3: Calculating vector length (2)Rerun0 ms
    1. Should calculate length.@ 0 ms
    2. Should calculate squared length.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:22989

  36. Vec3: Calculating vector distance (2)Rerun0 ms
    1. Should calculate distance.@ 0 ms
    2. Should calculate squared distance.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:23211

  37. Vec3: Normalizing a vector (1)Rerun0 ms
    1. Should normalize vector in place.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:23451

  38. Vec3: Calculating vector angle (1)Rerun0 ms
    1. Should calculate angle between vectors.@ 0 ms

    Source: at https://particulatejs.org/test/test-bundle.js:2:23609