Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: components/test_runner/test_interfaces.cc

Issue 2586943004: DevTools: disable compilation cache for inspector tests to reduce flakiness. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_interfaces.cc
diff --git a/components/test_runner/test_interfaces.cc b/components/test_runner/test_interfaces.cc
index 3e3e715664004ce57d92d09d82253ab3844af4be..476c3b4b892d35d5cf7e3126dd84a73ea299c112 100644
--- a/components/test_runner/test_interfaces.cc
+++ b/components/test_runner/test_interfaces.cc
@@ -94,8 +94,12 @@ void TestInterfaces::ConfigureForTestWithURL(const blink::WebURL& test_url,
test_runner_->setShouldGeneratePixelResults(false);
}
if (spec.find("/inspector/") != std::string::npos ||
- spec.find("/inspector-enabled/") != std::string::npos)
+ spec.find("/inspector-enabled/") != std::string::npos) {
test_runner_->ClearDevToolsLocalStorage();
+ test_runner_->SetV8CacheDisabled(true);
+ } else {
+ test_runner_->SetV8CacheDisabled(false);
+ }
if (spec.find("/inspector/") != std::string::npos &&
spec.find("unit_test_runner.html") == std::string::npos) {
// Subfolder name determines default panel to open.
« no previous file with comments | « no previous file | components/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698