Bug 90224
| Summary: | advanceFocus doesn't work in Browser Test. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zysxqn |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | UNCONFIRMED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
zysxqn
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.
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |