Summary: | TestWebKitAPI.WebKit.DocumentEditingContext is failing on iPad | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||||
Component: | Tools / Tests | Assignee: | Daniel Bates <dbates> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | mmaxfield, thorton, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Local Build | ||||||||
Hardware: | iPhone / iPad | ||||||||
OS: | iOS 13 | ||||||||
Bug Depends on: | 203817 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Daniel Bates
2019-11-04 15:15:46 PST
Created attachment 382781 [details] Patch This patch will fail to apply because it depends on patch for bug #203817. EWS reports the test failed on iOS: [[ /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:209 Expected equality of these values: CGRectMake(0, 0, glyphWidth, glyphWidth) Which is: (origin = (x = 0, y = 0), size = (width = 25, height = 25)) rects[0].CGRectValue Which is: (origin = (x = 0, y = 0), size = (width = 30, height = 30)) /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:210 Expected equality of these values: CGRectMake(glyphWidth, 0, glyphWidth, glyphWidth) Which is: (origin = (x = 25, y = 0), size = (width = 25, height = 25)) rects[1].CGRectValue Which is: (origin = (x = 30, y = 0), size = (width = 30, height = 30)) /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:211 Expected equality of these values: CGRectMake(2 * glyphWidth, 0, glyphWidth, glyphWidth) Which is: (origin = (x = 50, y = 0), size = (width = 25, height = 25)) rects[2].CGRectValue Which is: (origin = (x = 60, y = 0), size = (width = 30, height = 30)) /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:212 Expected equality of these values: CGRectMake(3 * glyphWidth, 0, glyphWidth, glyphWidth) Which is: (origin = (x = 75, y = 0), size = (width = 25, height = 25)) rects[3].CGRectValue Which is: (origin = (x = 90, y = 0), size = (width = 30, height = 30)) /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:220 Expected equality of these values: CGRectMake(0, 0, glyphWidth, glyphWidth) Which is: (origin = (x = 0, y = 0), size = (width = 25, height = 25)) rects.firstObject.CGRectValue Which is: (origin = (x = 0, y = 0), size = (width = 30, height = 30)) /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:223 Expected equality of these values: CGRectMake(6 * glyphWidth, 0, glyphWidth, glyphWidth) Which is: (origin = (x = 150, y = 0), size = (width = 25, height = 25)) rects.firstObject.CGRectValue Which is: (origin = (x = 180, y = 0), size = (width = 30, height = 30)) ]] Why is the width 30!?!? I asked for 25px square glyphs. Something is blowing up the rects... It's the viewport. I was testing my patch with an iPad simulator. EWS uses the iPhone simulator. If I put: <meta name='viewport' content='initial-scale=2'> Then the test passes in both iPad 9.7 and iPhone 8 simulators. I don't understand... (In reply to Daniel Bates from comment #5) > If I put: > > <meta name='viewport' content='initial-scale=2'> > > Then the test passes in both iPad 9.7 and iPhone 8 simulators. I don't > understand... Is it text autosizing? (In reply to Tim Horton from comment #6) > (In reply to Daniel Bates from comment #5) > > If I put: > > > > <meta name='viewport' content='initial-scale=2'> > > > > Then the test passes in both iPad 9.7 and iPhone 8 simulators. I don't > > understand... > > Is it text autosizing? Yes (In reply to Daniel Bates from comment #7) > (In reply to Tim Horton from comment #6) > > (In reply to Daniel Bates from comment #5) > > > If I put: > > > > > > <meta name='viewport' content='initial-scale=2'> > > > > > > Then the test passes in both iPad 9.7 and iPhone 8 simulators. I don't > > > understand... > > > > Is it text autosizing? > > Yes Forgot... Created attachment 382833 [details]
To Land
Comment on attachment 382833 [details] To Land Clearing flags on attachment: 382833 Committed r252061: <https://trac.webkit.org/changeset/252061> All reviewed patches have been landed. Closing bug. |