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

Side by Side Diff: chrome/test/automation/automation_proxy_uitest.cc

Issue 99203: Second attempt at cleaning up handling of --disable-popup-blocking. I didn't... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 1157
1158 tab->NavigateToURL(net::FilePathToFileURL(filename)); 1158 tab->NavigateToURL(net::FilePathToFileURL(filename));
1159 1159
1160 // Allow some time for the popup to show up and close. 1160 // Allow some time for the popup to show up and close.
1161 PlatformThread::Sleep(2000); 1161 PlatformThread::Sleep(2000);
1162 1162
1163 std::wstring expected(L"string"); 1163 std::wstring expected(L"string");
1164 std::wstring jscript = CreateJSString(L"\"" + expected + L"\""); 1164 std::wstring jscript = CreateJSString(L"\"" + expected + L"\"");
1165 std::wstring actual; 1165 std::wstring actual;
1166 ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual)); 1166 ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual));
1167 ASSERT_STREQ(expected.c_str(), actual.c_str()); 1167 ASSERT_EQ(expected, actual);
1168 } 1168 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698