Index: chrome/browser/ui/webui/settings/md_settings_ui_browsertest.cc |
diff --git a/chrome/browser/ui/webui/settings/md_settings_ui_browsertest.cc b/chrome/browser/ui/webui/settings/md_settings_ui_browsertest.cc |
index 9a1967620d547831024d9d162af9048968728de6..cc2ca61fb50c8b76f035f0c043e6567441a4611c 100644 |
--- a/chrome/browser/ui/webui/settings/md_settings_ui_browsertest.cc |
+++ b/chrome/browser/ui/webui/settings/md_settings_ui_browsertest.cc |
@@ -24,9 +24,15 @@ using ui_test_utils::NavigateToURL; |
using content::WaitForLoadStop; |
IN_PROC_BROWSER_TEST_F(MdSettingsUITest, ViewSourceDoesntCrash) { |
- NavigateToURL(browser(), |
- GURL(content::kViewSourceScheme + std::string(":") + |
- chrome::kChromeUIMdSettingsURL)); |
+ std::string url = content::kViewSourceScheme + std::string(":") + |
+ chrome::kChromeUIMdSettingsURL; |
+// When using Vulcanize, loading the full MD Settings page times out, probably |
+// because the HTML and JS bundled files are too large. Load another file |
+// instead. |
+#if BUILDFLAG(USE_VULCANIZE) |
+ url.append("strings.js"); |
Dan Beam
2017/02/09 23:46:13
you can just load this when unvulcanized as well..
dpapad
2017/02/10 00:02:46
Done.
|
+#endif |
+ NavigateToURL(browser(), GURL(url)); |
} |
// May not complete on memory and Windows debug bots. TODO(dbeam): investigate |