Bug 68800 - Web Inspector: introduce protocol backwards compatibility validator.
Summary: Web Inspector: introduce protocol backwards compatibility validator.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Feldman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 06:34 PDT by Pavel Feldman
Modified: 2011-09-26 08:28 PDT (History)
10 users (show)

See Also:


Attachments
Patch (9.53 KB, patch)
2011-09-26 06:40 PDT, Pavel Feldman
no flags Details | Formatted Diff | Diff
[Patch] Same with the draft-01 to validate against. (120.41 KB, patch)
2011-09-26 06:59 PDT, Pavel Feldman
no flags Details | Formatted Diff | Diff
[Patch] Review comments addressed (120.80 KB, patch)
2011-09-26 07:54 PDT, Pavel Feldman
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Feldman 2011-09-26 06:34:15 PDT
Patch to follow.
Comment 1 Pavel Feldman 2011-09-26 06:40:25 PDT
Created attachment 108660 [details]
Patch
Comment 2 Pavel Feldman 2011-09-26 06:59:42 PDT
Created attachment 108663 [details]
[Patch] Same with the draft-01 to validate against.
Comment 3 Yury Semikhatsky 2011-09-26 07:26:00 PDT
Comment on attachment 108663 [details]
[Patch] Same with the draft-01 to validate against.

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

> Source/WebCore/inspector/validate-protocol-compatibility:31
> +

Please add a definition of what valid protocol change is, also would be nice to have several tests for invalid cases.

> Source/WebCore/inspector/validate-protocol-compatibility:162
> +    json_string = json_string.replace(": true", ": True")

what about :true and :false cases(without whitespace)?

> Source/WebCore/inspector/validate-protocol-compatibility:168
> +        print "Usage: validate-protocol-compatibility Inspector.draft-01.json Inspector.json"

validate-protocol-compatibility -> sys.argv[0]
Comment 4 Pavel Feldman 2011-09-26 07:54:22 PDT
Created attachment 108667 [details]
[Patch] Review comments addressed
Comment 5 Yury Semikhatsky 2011-09-26 08:03:23 PDT
Comment on attachment 108667 [details]
[Patch] Review comments addressed

Please add inline self-test as we agreed offline.
Comment 6 Pavel Feldman 2011-09-26 08:28:53 PDT
Committed r95953: <http://trac.webkit.org/changeset/95953>