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

Side by Side Diff: content/browser/bookmarklet_browsertest.cc

Issue 340413002: Fixes content_browsertests with --enable-text-input-focus-manager flag enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 "base/strings/string_util.h" 5 #include "base/strings/string_util.h"
6 #include "content/public/browser/web_contents.h" 6 #include "content/public/browser/web_contents.h"
7 #include "content/public/test/browser_test_utils.h" 7 #include "content/public/test/browser_test_utils.h"
8 #include "content/public/test/content_browser_test.h" 8 #include "content/public/test/content_browser_test.h"
9 #include "content/public/test/content_browser_test_utils.h" 9 #include "content/public/test/content_browser_test_utils.h"
10 #include "content/public/test/test_utils.h" 10 #include "content/public/test/test_utils.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 NavigateToStartPage(); 63 NavigateToStartPage();
64 64
65 // If there's no navigation, javascript: URLs are run synchronously. 65 // If there's no navigation, javascript: URLs are run synchronously.
66 shell()->LoadURL(GURL( 66 shell()->LoadURL(GURL(
67 "javascript:document.open();" 67 "javascript:document.open();"
68 "document.write('hello world');" 68 "document.write('hello world');"
69 "document.close();")); 69 "document.close();"));
70 EXPECT_EQ("hello world", GetBodyText()); 70 EXPECT_EQ("hello world", GetBodyText());
71 } 71 }
72 72
73
74 } // namespace content 73 } // namespace content
75
OLDNEW
« no previous file with comments | « no previous file | content/public/test/content_browser_test.cc » ('j') | content/public/test/content_browser_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698