Chromium Code Reviews| Index: content/shell/browser/layout_test/blink_test_controller.cc |
| diff --git a/content/shell/browser/layout_test/blink_test_controller.cc b/content/shell/browser/layout_test/blink_test_controller.cc |
| index 5b9d1827b01c0545368c4da9f9c521e23baae861..7d87c4b41b85ede49528ba801f8763f5dd524069 100644 |
| --- a/content/shell/browser/layout_test/blink_test_controller.cc |
| +++ b/content/shell/browser/layout_test/blink_test_controller.cc |
| @@ -268,7 +268,7 @@ bool BlinkTestController::PrepareForLayoutTest( |
| current_working_directory_ = current_working_directory; |
| enable_pixel_dumping_ = enable_pixel_dumping; |
| expected_pixel_hash_ = expected_pixel_hash; |
| - test_url_ = test_url; |
| + test_url_ = LayoutTestDevToolsFrontend::MapJSTestURL(test_url); |
|
pfeldman
2016/11/28 19:01:03
We should not defer to devtools-specific code here
chenwilliam
2016/11/29 22:33:33
Done.
|
| did_send_initial_test_configuration_ = false; |
| printer_->reset(); |
| frame_to_layout_dump_map_.clear(); |
| @@ -279,10 +279,10 @@ bool BlinkTestController::PrepareForLayoutTest( |
| ShellBrowserContext* browser_context = |
| ShellContentBrowserClient::Get()->browser_context(); |
| is_compositing_test_ = |
| - test_url.spec().find("compositing/") != std::string::npos; |
| + test_url_.spec().find("compositing/") != std::string::npos; |
| initial_size_ = Shell::GetShellDefaultSize(); |
| // The W3C SVG layout tests use a different size than the other layout tests. |
| - if (test_url.spec().find("W3C-SVG-1.1") != std::string::npos) |
| + if (test_url_.spec().find("W3C-SVG-1.1") != std::string::npos) |
| initial_size_ = gfx::Size(kTestSVGWindowWidthDip, kTestSVGWindowHeightDip); |
| if (!main_window_) { |
| main_window_ = content::Shell::CreateNewWindow( |
| @@ -294,7 +294,7 @@ bool BlinkTestController::PrepareForLayoutTest( |
| current_pid_ = base::kNullProcessId; |
| default_prefs_ = |
| main_window_->web_contents()->GetRenderViewHost()->GetWebkitPreferences(); |
| - main_window_->LoadURL(test_url); |
| + main_window_->LoadURL(test_url_); |
| } else { |
| #if defined(OS_MACOSX) |
| // Shell::SizeTo is not implemented on all platforms. |
| @@ -320,7 +320,7 @@ bool BlinkTestController::PrepareForLayoutTest( |
| render_view_host->UpdateWebkitPreferences(default_prefs_); |
| HandleNewRenderFrameHost(render_view_host->GetMainFrame()); |
| - NavigationController::LoadURLParams params(test_url); |
| + NavigationController::LoadURLParams params(test_url_); |
| params.transition_type = ui::PageTransitionFromInt( |
| ui::PAGE_TRANSITION_TYPED | ui::PAGE_TRANSITION_FROM_ADDRESS_BAR); |
| params.should_clear_history_list = true; |