Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: content/renderer/render_view_browsertest.cc

Issue 1762673002: Fix RenderViewImplTest.GetCompositionCharacterBoundsTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 EXPECT_TRUE(ExecuteJavaScriptAndReturnIntValue(check_page_b, &was_page_b)); 1963 EXPECT_TRUE(ExecuteJavaScriptAndReturnIntValue(check_page_b, &was_page_b));
1964 EXPECT_EQ(1, was_page_b); 1964 EXPECT_EQ(1, was_page_b);
1965 } 1965 }
1966 1966
1967 #if defined(OS_MACOSX) || defined(USE_AURA) 1967 #if defined(OS_MACOSX) || defined(USE_AURA)
1968 TEST_F(RenderViewImplTest, GetCompositionCharacterBoundsTest) { 1968 TEST_F(RenderViewImplTest, GetCompositionCharacterBoundsTest) {
1969 #if defined(OS_WIN) 1969 #if defined(OS_WIN)
1970 // http://crbug.com/304193 1970 // http://crbug.com/304193
1971 if (base::win::GetVersion() < base::win::VERSION_VISTA) 1971 if (base::win::GetVersion() < base::win::VERSION_VISTA)
1972 return; 1972 return;
1973 // http://crbug.com/508747
1974 if (base::win::GetVersion() >= base::win::VERSION_WIN10)
1975 return;
1976 #endif 1973 #endif
1977 1974
1978 LoadHTML("<textarea id=\"test\"></textarea>"); 1975 LoadHTML("<textarea id=\"test\" cols=\"100\"></textarea>");
1979 ExecuteJavaScriptForTests("document.getElementById('test').focus();"); 1976 ExecuteJavaScriptForTests("document.getElementById('test').focus();");
1980 1977
1981 const base::string16 empty_string; 1978 const base::string16 empty_string;
1982 const std::vector<blink::WebCompositionUnderline> empty_underline; 1979 const std::vector<blink::WebCompositionUnderline> empty_underline;
1983 std::vector<gfx::Rect> bounds; 1980 std::vector<gfx::Rect> bounds;
1984 view()->OnSetFocus(true); 1981 view()->OnSetFocus(true);
1985 1982
1986 // ASCII composition 1983 // ASCII composition
1987 const base::string16 ascii_composition = base::UTF8ToUTF16("aiueo"); 1984 const base::string16 ascii_composition = base::UTF8ToUTF16("aiueo");
1988 view()->OnImeSetComposition(ascii_composition, empty_underline, 1985 view()->OnImeSetComposition(ascii_composition, empty_underline,
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 FROM_HERE, 2792 FROM_HERE,
2796 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this))); 2793 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this)));
2797 ExecuteJavaScriptForTests("debugger;"); 2794 ExecuteJavaScriptForTests("debugger;");
2798 2795
2799 // CloseWhilePaused should resume execution and continue here. 2796 // CloseWhilePaused should resume execution and continue here.
2800 EXPECT_FALSE(IsPaused()); 2797 EXPECT_FALSE(IsPaused());
2801 Detach(); 2798 Detach();
2802 } 2799 }
2803 2800
2804 } // namespace content 2801 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698