Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h" | 9 #include "chrome/browser/devtools/browser_list_tabcontents_provider.h" |
| 10 #include "chrome/browser/devtools/device/port_forwarding_controller.h" | 10 #include "chrome/browser/devtools/device/port_forwarding_controller.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 "window.domAutomationController.send(getBodyTextContent())", | 108 "window.domAutomationController.send(getBodyTextContent())", |
| 109 &result)); | 109 &result)); |
| 110 ASSERT_EQ("content", result) << "Javascript has not loaded."; | 110 ASSERT_EQ("content", result) << "Javascript has not loaded."; |
| 111 | 111 |
| 112 ASSERT_TRUE( | 112 ASSERT_TRUE( |
| 113 content::ExecuteScriptAndExtractString( | 113 content::ExecuteScriptAndExtractString( |
| 114 rvh, | 114 rvh, |
| 115 "window.domAutomationController.send(getBodyMarginLeft())", | 115 "window.domAutomationController.send(getBodyMarginLeft())", |
| 116 &result)); | 116 &result)); |
| 117 ASSERT_EQ("100px", result) << "CSS has not loaded."; | 117 ASSERT_EQ("100px", result) << "CSS has not loaded."; |
| 118 | |
| 119 prefs->SetBoolean(prefs::kDevToolsPortForwardingEnabled, false); | |
|
dgozman
2014/08/25 15:22:05
This needs a comment. Perhaps "Test that disabling
vkuzkokov
2014/08/25 15:51:25
Done.
| |
| 120 content::RunMessageLoop(); | |
| 118 } | 121 } |
| OLD | NEW |