| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 #include <vector> | 5 #include <vector> |
| 2 | 6 |
| 3 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 4 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 5 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 7 #include "chrome/browser/browser.h" | 11 #include "chrome/browser/browser.h" |
| 8 #include "chrome/browser/extensions/extensions_service.h" | 12 #include "chrome/browser/extensions/extensions_service.h" |
| 9 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 228 |
| 225 ui_test_utils::NavigateToURL(browser(), GURL("chrome://newtab")); | 229 ui_test_utils::NavigateToURL(browser(), GURL("chrome://newtab")); |
| 226 | 230 |
| 227 bool result = false; | 231 bool result = false; |
| 228 ui_test_utils::ExecuteJavaScriptAndExtractBool( | 232 ui_test_utils::ExecuteJavaScriptAndExtractBool( |
| 229 browser()->GetSelectedTabContents()->render_view_host(), L"", | 233 browser()->GetSelectedTabContents()->render_view_host(), L"", |
| 230 L"window.domAutomationController.send(document.title == 'Modified')", | 234 L"window.domAutomationController.send(document.title == 'Modified')", |
| 231 &result); | 235 &result); |
| 232 EXPECT_FALSE(result); | 236 EXPECT_FALSE(result); |
| 233 } | 237 } |
| OLD | NEW |