Bug 90224 - advanceFocus doesn't work in Browser Test.
Summary: advanceFocus doesn't work in Browser Test.
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 16:23 PDT by zysxqn
Modified: 2012-06-28 16:23 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.
}