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

Unified Diff: LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html

Issue 441873010: DevTools: [SSP] Implement adding new rule in user stylesheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix compilation error Created 6 years, 4 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/add-new-rule-with-style-after-body.html
diff --git a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html b/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
index b234f8bbe6c7da9e734ff4fec1778e4e3143667c..64664d34f0dd842ae5ca75ca88a57c7bd37500bb 100644
--- a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
+++ b/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
@@ -27,12 +27,7 @@ function test()
function step1()
{
- // Click "Add new rule".
- document.getElementById("add-style-button-test-id").click();
- var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
- section._selectorElement.textContent = "inspected";
- section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- InspectorTest.runAfterPendingDispatches(step2);
+ InspectorTest.addNewRule("inspected", step2);
}
function step2()

Powered by Google App Engine
This is Rietveld 408576698