Bug 92318 - [Chromium] WebViewTest.AutoResizeXXX tests are failing
Summary: [Chromium] WebViewTest.AutoResizeXXX tests are failing
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: Dmitry Titov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-25 16:39 PDT by Andrew Wilson
Modified: 2013-04-09 17:06 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Wilson 2012-07-25 16:39:05 PDT
I'm seeing the following error output for this test in the chromium webkit_unit_tests:

WebViewTest.AutoResizeInBetweenSizes: 
/Volumes/data/b/build/slave/webkit-mac-latest-dbg/build/src/third_party/WebKit/Source/WebKit/chromium/tests/WebViewTest.cpp:213: Failure
Value of: client.testData().width()
  Actual: 90
Expected: expectedWidth
Which is: 100
/Volumes/data/b/build/slave/webkit-mac-latest-dbg/build/src/third_party/WebKit/Source/WebKit/chromium/tests/WebViewTest.cpp:214: Failure
Value of: client.testData().height()
  Actual: 95
Expected: expectedHeight
Which is: 200

It started happening somewhere between 123625 and 123634 (http://build.chromium.org/p/chromium.webkit/builders/Webkit%20Mac10.6%20%28dbg%29/builds/11645) and I'm suspicious of r123626.
Comment 1 Allan Sandfeld Jensen 2012-07-26 05:03:13 PDT
I can't see how r123626 could have that effect. Have you tried running it with r123626 reverted? 

Somehow it looks like the minSize is returned now and pageWidth and pageHeight having no effect.
Comment 2 David Levin 2012-07-26 11:46:37 PDT
This will likely affect places that use autoresize.
Comment 3 Peter Kasting 2012-07-27 23:52:40 PDT
Disabling this test did not fix the problem.  Instead the next test to get run started failing with similar output:

[ RUN      ] WebViewTest.AutoResizeOverflowSizes
/Volumes/data/b/build/slave/webkit-mac-latest-dbg/build/src/third_party/WebKit/Source/WebKit/chromium/tests/WebViewTest.cpp:213: Failure
Value of: client.testData().width()
  Actual: 90
Expected: expectedWidth
Which is: 200
/Volumes/data/b/build/slave/webkit-mac-latest-dbg/build/src/third_party/WebKit/Source/WebKit/chromium/tests/WebViewTest.cpp:214: Failure
Value of: client.testData().height()
  Actual: 95
Expected: expectedHeight
Which is: 300
/Volumes/data/b/build/slave/webkit-mac-latest-dbg/build/src/third_party/WebKit/Source/WebKit/chromium/tests/WebViewTest.cpp:215: Failure
Value of: client.testData().horizontalScrollbarState()
  Actual: 0
Expected: expectedHorizontalState
Which is: 1
/Volumes/data/b/build/slave/webkit-mac-latest-dbg/build/src/third_party/WebKit/Source/WebKit/chromium/tests/WebViewTest.cpp:216: Failure
Value of: client.testData().verticalScrollbarState()
  Actual: 0
Expected: expectedVerticalState
Which is: 1
[  FAILED  ] WebViewTest.AutoResizeOverflowSizes (277 ms)

So it may be that the issue is that the previous test (WebViewTest.AutoResizeFixedHeightAndWidthOverflow) leaves something in a bad state?

I'll try disabling this test as well and see what happens.
Comment 4 Peter Kasting 2012-07-27 23:57:26 PDT
Disabled in r123957.
Comment 5 Peter Kasting 2012-07-28 09:21:55 PDT
Sure enough, that merely made the next test start failing.

In r123963 I've re-enabled both these and instead disabled the test before them in hopes of figuring out whether it's leaving something in a bad state.

levin, it looks like you were the last one to touch these tests in a significant way, could you perhaps investigate?
Comment 6 Peter Kasting 2012-07-28 11:06:39 PDT
Apparently no matter what I do, we successfully run three of the AutoResize tests, then the next one fails.  So I just disabled all the tests after the first three :(.
Comment 7 David Levin 2012-07-29 10:20:41 PDT
Sorry, I'm booked with other work.
Comment 8 Peter Kasting 2012-07-29 13:09:27 PDT
Well, don't assign to me, I'm just sheriff.

I don't know who else can look at this.
Comment 9 Peter Kasting 2012-07-29 13:10:41 PDT
dimich, this potentially affects notifications and extension popup autosizing, might you be able to find an owner?
Comment 10 Stephen Chenney 2013-04-09 17:06:47 PDT
Marked LayoutTest bugs, bugs with Chromium IDs, and some others as WontFix. Test failure bugs still are trackable via TestExpectations or disabled unit tests.