Bug 152562 - Simplify the test harness
Summary: Simplify the test harness
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jon Lee
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-12-26 10:38 PST by Jon Lee
Modified: 2016-01-03 15:06 PST (History)
7 users (show)

See Also:


Attachments
Patch (273.40 KB, patch)
2015-12-28 10:01 PST, Jon Lee
simon.fraser: review+
Details | Formatted Diff | Diff
1. Minor cleanup (8.70 KB, patch)
2015-12-28 10:05 PST, Jon Lee
no flags Details | Formatted Diff | Diff
2. Refactor the subclass pattern. (146.67 KB, patch)
2015-12-28 10:05 PST, Jon Lee
no flags Details | Formatted Diff | Diff
3. Make the class relationships more easily understandable (90.40 KB, patch)
2015-12-28 10:07 PST, Jon Lee
no flags Details | Formatted Diff | Diff
4. Get rid of stage.js, StageAnimator, and StageBenchmark (25.30 KB, patch)
2015-12-28 10:08 PST, Jon Lee
no flags Details | Formatted Diff | Diff
5. Refactor the simple suite. (15.85 KB, patch)
2015-12-28 10:08 PST, Jon Lee
no flags Details | Formatted Diff | Diff
6. Refactor miscellaneous suite. (18.75 KB, patch)
2015-12-28 10:08 PST, Jon Lee
no flags Details | Formatted Diff | Diff
7. Move example/ files into misc/. (23.87 KB, patch)
2015-12-28 10:09 PST, Jon Lee
no flags Details | Formatted Diff | Diff
8. Refactor the bouncing canvas tests. (25.04 KB, patch)
2015-12-28 10:10 PST, Jon Lee
no flags Details | Formatted Diff | Diff
9. Refactor the HTML suite. (19.37 KB, patch)
2015-12-28 10:10 PST, Jon Lee
no flags Details | Formatted Diff | Diff
10. Refactor the SVG suite. (17.27 KB, patch)
2015-12-28 10:11 PST, Jon Lee
no flags Details | Formatted Diff | Diff
11. Refactor the template. (11.48 KB, patch)
2015-12-28 10:11 PST, Jon Lee
no flags Details | Formatted Diff | Diff
12. Don't require new tests to pass a new instance of Animator (15.80 KB, patch)
2015-12-28 10:12 PST, Jon Lee
no flags Details | Formatted Diff | Diff
13. Will be checked in separately: update the simple canvas tests (8.21 KB, patch)
2015-12-28 10:12 PST, Jon Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 2015-12-26 10:38:09 PST
A few things:
- Clean up some of the calls and return values, which are never used
- Clarify the relationship between the benchmark, the stage, and the animator
- Reduce the number of prototype jumps
Comment 1 Radar WebKit Bug Importer 2015-12-26 10:38:27 PST
<rdar://problem/24011212>
Comment 2 Radar WebKit Bug Importer 2015-12-26 10:39:16 PST
<rdar://problem/24011215>
Comment 3 Jon Lee 2015-12-28 10:01:57 PST
Created attachment 267953 [details]
Patch
Comment 4 Jon Lee 2015-12-28 10:05:23 PST
Created attachment 267954 [details]
1. Minor cleanup
Comment 5 Jon Lee 2015-12-28 10:05:44 PST
Created attachment 267955 [details]
2. Refactor the subclass pattern.
Comment 6 Jon Lee 2015-12-28 10:07:08 PST
Created attachment 267956 [details]
3. Make the class relationships more easily understandable
Comment 7 Jon Lee 2015-12-28 10:08:03 PST
Created attachment 267957 [details]
4. Get rid of stage.js, StageAnimator, and StageBenchmark
Comment 8 Jon Lee 2015-12-28 10:08:34 PST
Created attachment 267958 [details]
5. Refactor the simple suite.
Comment 9 Jon Lee 2015-12-28 10:08:54 PST
Created attachment 267959 [details]
6. Refactor miscellaneous suite.
Comment 10 Jon Lee 2015-12-28 10:09:59 PST
Created attachment 267960 [details]
7. Move example/ files into misc/.
Comment 11 Jon Lee 2015-12-28 10:10:39 PST
Created attachment 267961 [details]
8. Refactor the bouncing canvas tests.
Comment 12 Jon Lee 2015-12-28 10:10:56 PST
Created attachment 267962 [details]
9. Refactor the HTML suite.
Comment 13 Jon Lee 2015-12-28 10:11:34 PST
Created attachment 267963 [details]
10. Refactor the SVG suite.
Comment 14 Jon Lee 2015-12-28 10:11:50 PST
Created attachment 267964 [details]
11. Refactor the template.
Comment 15 Jon Lee 2015-12-28 10:12:14 PST
Created attachment 267965 [details]
12. Don't require new tests to pass a new instance of Animator
Comment 16 Jon Lee 2015-12-28 10:12:49 PST
Created attachment 267966 [details]
13. Will be checked in separately: update the simple canvas tests
Comment 17 Simon Fraser (smfr) 2015-12-31 20:36:05 PST
Comment on attachment 267953 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=267953&action=review

> PerformanceTests/Animometer/tests/misc/resources/canvas-electrons.js:29
> +            this._context.rotate(this._angle * Math.PI / 180);

Probably worth having a deg2rad() helper somewhere.

> PerformanceTests/ChangeLog:284
> -        
> +

I don't think you should touch all the old changelog entries.
Comment 18 Jon Lee 2016-01-01 00:52:22 PST
Comment on attachment 267953 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=267953&action=review

>> PerformanceTests/ChangeLog:284
>> +
> 
> I don't think you should touch all the old changelog entries.

Oof. My editor conveniently fixed all of the stray whitespace. I'll have to fix the diff.

Also, shame on y'all.
Comment 19 Jon Lee 2016-01-03 15:03:36 PST
Committed r194520: <http://trac.webkit.org/changeset/194520>
Comment 20 Jon Lee 2016-01-03 15:06:08 PST
Committed r194521: <http://trac.webkit.org/changeset/194521>