Bug 64807 - Change behavior of expectation overrides to strictly override.
Summary: Change behavior of expectation overrides to strictly override.
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dimitri Glazkov (Google)
URL:
Keywords:
Depends on:
Blocks: 64385
  Show dependency treegraph
 
Reported: 2011-07-19 09:22 PDT by Dimitri Glazkov (Google)
Modified: 2011-08-03 11:09 PDT (History)
2 users (show)

See Also:


Attachments
Patch (5.90 KB, patch)
2011-07-19 09:28 PDT, Dimitri Glazkov (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitri Glazkov (Google) 2011-07-19 09:22:58 PDT
Change behavior of expectation overrides to strictly override.
Comment 1 Dimitri Glazkov (Google) 2011-07-19 09:28:39 PDT
Created attachment 101331 [details]
Patch
Comment 2 Dimitri Glazkov (Google) 2011-07-19 09:31:30 PDT
Dirk, wanted you to see this. Even though it relaxes the grip of tidiness on the downstream test_expectations.txt, this division between "insert" and "update" will make for much more straightforward TestExpectationModel code.
Comment 3 Dirk Pranke 2011-07-19 13:11:14 PDT
Comment on attachment 101331 [details]
Patch

Hm. I'm not convinced this is a win, since it will allow us to generate what would be (IMO) buggy overrides files that do contain duplicates that we wouldn't notice. Perhaps there is another way to do this, that would distinguish when you were parsing a block of updates that needed to be self-consistent from when you were updating entries one at a time, and you did want the last-one-wins behavior?
Comment 4 Adam Barth 2011-07-19 15:21:10 PDT
Sounds like we need more discussion here.
Comment 5 Dirk Pranke 2011-07-19 15:54:54 PDT
Per further discussion w/ dimitri, I can see how if we create an object that manages the "view" (in the database sense, not the MVC sense) that can deal with lines as a set, we can pull this logic out of here. 

This change will potentially break things in the short term (since you can put overrides in with duplicates that won't be caught) but the risk of this seems low.
Comment 6 Dimitri Glazkov (Google) 2011-08-03 11:08:53 PDT
Comment on attachment 101331 [details]
Patch

Turns out I don't need this.