Index: LayoutTests/inspector/elements/styles/commit-selector-mark-matching.html |
diff --git a/LayoutTests/inspector/elements/styles/commit-selector-mark-matching.html b/LayoutTests/inspector/elements/styles/commit-selector-mark-matching.html |
index 4885e1b4f05661999db6aab035a1853a8e234612..c38393e677f80b345fabb36172209df794084c55 100644 |
--- a/LayoutTests/inspector/elements/styles/commit-selector-mark-matching.html |
+++ b/LayoutTests/inspector/elements/styles/commit-selector-mark-matching.html |
@@ -23,12 +23,7 @@ function test() |
{ |
nodeId = node.id; |
stylesPane = WebInspector.panels.elements.sidebarPanes.styles; |
- stylesPane.addBlankSection(); |
- var section = stylesPane.sections[0][2]; |
- section.startEditingSelector(); |
- section._selectorElement.textContent = "foo, #inspected, .bar, #inspected"; |
- section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); |
- InspectorTest.runAfterPendingDispatches(callback); |
+ InspectorTest.addNewRule("foo, #inspected, .bar, #inspected", callback); |
} |
function callback() |