| Index: content/renderer/render_view_browsertest.cc
|
| diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc
|
| index b7898f597251f84a01e8aee3bdd9cef0b400d259..b29bb7d43ba9aef5542246fb5e90f02d70123db6 100644
|
| --- a/content/renderer/render_view_browsertest.cc
|
| +++ b/content/renderer/render_view_browsertest.cc
|
| @@ -2156,44 +2156,6 @@ TEST_F(SuppressErrorPageTest, MAYBE_DoesNotSuppress) {
|
| base::UTF16ToASCII(web_frame->contentAsText(kMaxOutputCharacters)));
|
| }
|
|
|
| -// Tests if IME API's candidatewindow* events sent from browser are handled
|
| -// in renderer.
|
| -TEST_F(RenderViewImplTest, SendCandidateWindowEvents) {
|
| - // Sends an HTML with an <input> element and scripts to the renderer.
|
| - // The script handles all 3 of candidatewindow* events for an
|
| - // InputMethodContext object and once it received 'show', 'update', 'hide'
|
| - // should appear in the result div.
|
| - LoadHTML("<input id='test'>"
|
| - "<div id='result'>Result: </div>"
|
| - "<script>"
|
| - "window.onload = function() {"
|
| - " var result = document.getElementById('result');"
|
| - " var test = document.getElementById('test');"
|
| - " test.focus();"
|
| - " var context = test.inputMethodContext;"
|
| - " if (context) {"
|
| - " context.oncandidatewindowshow = function() {"
|
| - " result.innerText += 'show'; };"
|
| - " context.oncandidatewindowupdate = function(){"
|
| - " result.innerText += 'update'; };"
|
| - " context.oncandidatewindowhide = function(){"
|
| - " result.innerText += 'hide'; };"
|
| - " }"
|
| - "};"
|
| - "</script>");
|
| -
|
| - // Fire candidatewindow events.
|
| - view()->OnCandidateWindowShown();
|
| - view()->OnCandidateWindowUpdated();
|
| - view()->OnCandidateWindowHidden();
|
| -
|
| - // Retrieve the content and check if it is expected.
|
| - const int kMaxOutputCharacters = 50;
|
| - std::string output = base::UTF16ToUTF8(
|
| - GetMainFrame()->contentAsText(kMaxOutputCharacters));
|
| - EXPECT_EQ(output, "\nResult:showupdatehide");
|
| -}
|
| -
|
| // Ensure the render view sends favicon url update events correctly.
|
| TEST_F(RenderViewImplTest, SendFaviconURLUpdateEvent) {
|
| // An event should be sent when a favicon url exists.
|
|
|