OLD | NEW |
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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/macros.h" |
6 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
8 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
9 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 11 #include "chrome/test/base/ui_test_utils.h" |
11 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
12 #include "content/public/test/browser_test_utils.h" | 13 #include "content/public/test/browser_test_utils.h" |
13 #include "net/test/embedded_test_server/embedded_test_server.h" | 14 #include "net/test/embedded_test_server/embedded_test_server.h" |
14 | 15 |
15 class HostRulesTest : public InProcessBrowserTest { | 16 class HostRulesTest : public InProcessBrowserTest { |
(...skipping 23 matching lines...) Expand all Loading... |
39 ui_test_utils::NavigateToURL(browser(), test_url); | 40 ui_test_utils::NavigateToURL(browser(), test_url); |
40 | 41 |
41 std::string html; | 42 std::string html; |
42 EXPECT_TRUE(content::ExecuteScriptAndExtractString( | 43 EXPECT_TRUE(content::ExecuteScriptAndExtractString( |
43 browser()->tab_strip_model()->GetActiveWebContents(), | 44 browser()->tab_strip_model()->GetActiveWebContents(), |
44 "window.domAutomationController.send(document.body.outerHTML);", | 45 "window.domAutomationController.send(document.body.outerHTML);", |
45 &html)); | 46 &html)); |
46 | 47 |
47 EXPECT_STREQ("<body></body>", html.c_str()); | 48 EXPECT_STREQ("<body></body>", html.c_str()); |
48 } | 49 } |
OLD | NEW |