WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
79018
perf-o-matic: Extract logic to generate JSON responses as classes to unit test
https://bugs.webkit.org/show_bug.cgi?id=79018
Summary
perf-o-matic: Extract logic to generate JSON responses as classes to unit test
Ryosuke Niwa
Reported
2012-02-20 01:21:25 PST
JSON responses for dashboard, manifest, and runs are generated by handler classes at the moment. This prevents us from unit-testing the code to generate JSON responses since handlers can't be unit-tested. We should extract classes out of these handlers in order to unit-test them.
Attachments
refactoring
(47.00 KB, patch)
2012-02-20 22:54 PST
,
Ryosuke Niwa
abarth
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2012-02-20 22:54:35 PST
Created
attachment 127923
[details]
refactoring
Ryosuke Niwa
Comment 2
2012-02-21 11:47:36 PST
Comment on
attachment 127923
[details]
refactoring View in context:
https://bugs.webkit.org/attachment.cgi?id=127923&action=review
> Websites/webkit-perf.appspot.com/controller.py:52 > + cache_dashboard(ManifestJSONGenerator().to_json())
Oh oops, this needs to be manifest :(
Adam Barth
Comment 3
2012-02-21 12:32:33 PST
Comment on
attachment 127923
[details]
refactoring rs=me
Ryosuke Niwa
Comment 4
2012-02-21 14:26:51 PST
Committed in
r108399
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug