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

Unified Diff: LayoutTests/inspector/elements/styles/styles-update-links.html

Issue 1002293002: DevTools: [SSP] refactor internal representations of sections (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 9 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: LayoutTests/inspector/elements/styles/styles-update-links.html
diff --git a/LayoutTests/inspector/elements/styles/styles-update-links.html b/LayoutTests/inspector/elements/styles/styles-update-links.html
index 9582b4a2e51135219a273085b75fd52fb38b83e1..6dd72829b2f380d04672e143fb82ad7603178566 100644
--- a/LayoutTests/inspector/elements/styles/styles-update-links.html
+++ b/LayoutTests/inspector/elements/styles/styles-update-links.html
@@ -119,10 +119,9 @@ function test()
function getMatchedRules()
{
var rules = [];
- for (var pseudoId in WebInspector.panels.elements.sidebarPanes.styles.sections) {
- var matchedStyleSections = WebInspector.panels.elements.sidebarPanes.styles.sections[pseudoId];
- for (var i = 0; i < matchedStyleSections.length; ++i) {
- var rule = matchedStyleSections[i].rule();
+ for (var block of WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks) {
+ for (var section of block.sections) {
+ var rule = section.rule();
if (rule)
rules.push(rule);
}
@@ -155,7 +154,7 @@ function test()
function testEditSelector(next)
{
- var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][3];
+ var section = WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].sections[3];
section.startEditingSelector();
section._selectorElement.textContent = ".should-change, .INSERTED-OTHER-SELECTOR";
InspectorTest.waitForSelectorCommitted(onSelectorEdited);

Powered by Google App Engine
This is Rietveld 408576698