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

Unified Diff: third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-tests.js

Issue 2656823004: DevTools: Move checkbox title element into Shadow DOM (Closed)
Patch Set: Created 3 years, 11 months 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
Index: third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-tests.js
diff --git a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-tests.js b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-tests.js
index 1651bdf78be764f0166997af9b049be652a0064d..2a53e1aa3c7086c24172c8c1292cfa92f6511e02 100644
--- a/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-tests.js
+++ b/third_party/WebKit/LayoutTests/inspector/extensions/extensions-audits-tests.js
@@ -15,6 +15,8 @@ var initialize_ExtensionsAuditsTest = function()
var extensionCategories = document.querySelectorAll(".audit-categories-container > label");
for (var i = 0; i < extensionCategories.length; ++i) {
var shouldBeEnabled = extensionCategories[i].textContent.includes("Extension");
+ if (!shouldBeEnabled && extensionCategories[i].textElement)
+ shouldBeEnabled = extensionCategories[i].textElement.textContent.includes("Extension");
if (shouldBeEnabled !== extensionCategories[i].checkboxElement.checked)
extensionCategories[i].checkboxElement.click();
}

Powered by Google App Engine
This is Rietveld 408576698