Update benchmark test suite
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jan 2016 04:28:12 +0000 (04:28 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jan 2016 04:28:12 +0000 (04:28 +0000)
commitb7cf13e62a97f3c86aff2a65edcf38f4412452ee
treec077b32da2f2f80766b72562f7a9434313738ec6
parentbeb1fffe8a33ea9c1b66074245c61f617046480e
Update benchmark test suite
https://bugs.webkit.org/show_bug.cgi?id=152679

Reviewed by Simon Fraser.

Add a new test. The test has a rotating background
gradient, and does a better job physically simulating
particles.

* Animometer/resources/extensions.js: Teach Point to take constants as well as other Points.
(Point.prototype.length): Added.
(Point.prototype.normalize): Added.
* Animometer/resources/runner/tests.js: Add the test to the master suite.
* Animometer/tests/master/particles.html: Added.
* Animometer/tests/master/resources/particles.js: Added. Parent class for different kinds of particles.
(Particle):
(Particle.prototype.reset): If the particle starts slowing down in terms of its animation,
reset it.
(Particle.prototype.animate): Bounce off the walls elastically, and include gravity.
(Particle.prototype.move): Subclasses should override.
(ParticlesStage): Stage includes a rotating gradient background.
* Animometer/tests/master/resources/dom-particles.js: Added. Creates a <div> and adds it to
the stage.
* Animometer/tests/resources/star.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/Animometer/resources/extensions.js
PerformanceTests/Animometer/resources/runner/tests.js
PerformanceTests/Animometer/tests/master/particles.html [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/resources/dom-particles.js [new file with mode: 0644]
PerformanceTests/Animometer/tests/master/resources/particles.js [new file with mode: 0644]
PerformanceTests/Animometer/tests/resources/star.svg [new file with mode: 0644]
PerformanceTests/ChangeLog