Bug 50207 - Rebaseline server: baseline display tweaks
Summary: Rebaseline server: baseline display tweaks
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Mihai Parparita
URL:
Keywords:
Depends on:
Blocks: 47761
  Show dependency treegraph
 
Reported: 2010-11-29 21:02 PST by Mihai Parparita
Modified: 2010-11-30 11:23 PST (History)
1 user (show)

See Also:


Attachments
Patch (11.69 KB, patch)
2010-11-29 21:04 PST, Mihai Parparita
tony: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Parparita 2010-11-29 21:02:28 PST
Rebaseline server: baseline display tweaks
Comment 1 Mihai Parparita 2010-11-29 21:04:27 PST
Created attachment 75102 [details]
Patch
Comment 2 Tony Chang 2010-11-30 09:56:09 PST
Comment on attachment 75102 [details]
Patch

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

> WebKitTools/Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js:272
> +        for (var extension in baselines[platform]) {
> +            if (!isFirstExtension) {

Should we sort the extensions too?

> WebKitTools/Scripts/webkitpy/tool/commands/rebaselineserver.py:218
> +            if platform not in all_test_baselines:
> +                all_test_baselines[platform] = {}

Nit: You can use the oddly named setdefault here to save a lookup:
  platform_baselines = all_test_baselines.setdefault(platform, {})
  was_used_for_test = ...
  platform_baselines[baseline_extension] = was_used_for_test
Comment 3 Mihai Parparita 2010-11-30 11:21:20 PST
(In reply to comment #2)
> (From update of attachment 75102 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=75102&action=review
> 
> > WebKitTools/Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js:272
> > +        for (var extension in baselines[platform]) {
> > +            if (!isFirstExtension) {
> 
> Should we sort the extensions too?

Done. Added getSortedKeys(obj) to util.js and used it for both platforms and extensions.
 
> > WebKitTools/Scripts/webkitpy/tool/commands/rebaselineserver.py:218
> > +            if platform not in all_test_baselines:
> > +                all_test_baselines[platform] = {}
> 
> Nit: You can use the oddly named setdefault here to save a lookup:
>   platform_baselines = all_test_baselines.setdefault(platform, {})
>   was_used_for_test = ...
>   platform_baselines[baseline_extension] = was_used_for_test

Switched to setdefault.
Comment 4 Mihai Parparita 2010-11-30 11:23:49 PST
Committed r72939: <http://trac.webkit.org/changeset/72939>