Bug 90224

Summary: advanceFocus doesn't work in Browser Test.
Product: WebKit Reporter: zysxqn
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Description zysxqn 2012-06-28 16:23:47 PDT
I think this should be a follow up bug of Bug 88827 https://bugs.webkit.org/show_bug.cgi?id=88827

advanceFocus() seems doesn't work under render view test. Example:

In a file under chrome/renderer directory:

class Foo {
  void focus() {
    render_view_->GetWebView()->advanceFocus(false);
  }
}

In its corresponding browser test file:

class FooTest : ChromeRenderViewTest {
  Foo foo_ = ...;
}

TEST_F(FooTest, FocusTest) {
   LoadHTML(...);

   foo_.focus();

   // The check here indicates that the focus has not been advanced.
}