Bug 61066 - Double-click on test queued by RebaselineServer to open test in main UI
Summary: Double-click on test queued by RebaselineServer to open test in main UI
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P4 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 09:13 PDT by Tom Hudson
Modified: 2022-03-01 03:13 PST (History)
5 users (show)

See Also:


Attachments
Patch (3.47 KB, patch)
2011-05-18 09:15 PDT, Tom Hudson
mihaip: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hudson 2011-05-18 09:13:05 PDT
Double-click on test queued by RebaselineServer to open test in main UI
Comment 1 Tom Hudson 2011-05-18 09:15:29 PDT
Created attachment 93925 [details]
Patch
Comment 2 Eric Seidel (no email) 2011-07-05 20:40:54 PDT
You should be sure to CC reviewers.
Comment 3 Ojan Vafai 2011-07-06 00:26:58 PDT
Comment on attachment 93925 [details]
Patch

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

A few nits. Otherwise, code seems fine to me. I'm not familiar enough with the surrounding code code to be confident setSelectedTest is doing the right thing. Mihai, mind taking a look?

> Tools/Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js:271
> +    var failureType = test.actual + ' (expected ' + test.expected + ')';

Duplicating this code from line 122 seems fragile to me. Could you create a helper function that takes a test and returns it's failureType?

> Tools/Scripts/webkitpy/tool/commands/data/rebaselineserver/queue.js:47
> +          setSelectedTest(
> +              this.options[this.selectedIndex].value)

Indentation here is off. Also, WebKit has no line-length limit. This would be easier to read as a single line.

> Tools/Scripts/webkitpy/tool/commands/data/rebaselineserver/util.js:60
> +

Perhaps this should throw an error (or at least log a warning to the console) if you pass it a value that's not in the select element?
Comment 4 Mihai Parparita 2011-07-06 16:20:03 PDT
Comment on attachment 93925 [details]
Patch

I agree with Ojan's comments. An alternative guessing/duplicating the menu selections when setting the selected test would be to save them when adding the test to the queue so that they can be restored.