TEST_F(WebFrameTest, ClearFocusedNodeTest) { registerMockedHttpURLLoad("iframe_clear_focused_node_test.html"); registerMockedHttpURLLoad("autofocus_input_field_iframe.html"); WebViewImpl* webViewImpl = static_cast<WebViewImpl*>(FrameTestHelpers::createWebViewAndLoad(m_baseURL + "iframe_clear_focused_node_test.html", true)); // Clear the focused node. webViewImpl->clearFocusedNode(); // Now retrieve the FocusedNode and test it should be null. EXPECT_EQ(0, webViewImpl->focusedWebCoreNode()); webViewImpl->close(); }