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

Unified Diff: LayoutTests/inspector/elements/styles/add-new-rule-invalid-selector.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-invalid-selector.html
diff --git a/LayoutTests/inspector/elements/styles/add-new-rule-invalid-selector.html b/LayoutTests/inspector/elements/styles/add-new-rule-invalid-selector.html
index 3215adef38d45c1da09d49b3decb597d9042223c..46b128e4f6aa78bca882281cf4c3d62f37bb273b 100644
--- a/LayoutTests/inspector/elements/styles/add-new-rule-invalid-selector.html
+++ b/LayoutTests/inspector/elements/styles/add-new-rule-invalid-selector.html
@@ -15,12 +15,7 @@ function test()
function keyframesRuleSelector(next)
{
- // 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 = "@-webkit-keyframes shake";
- section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- InspectorTest.runAfterPendingDispatches(callback);
+ InspectorTest.addNewRule("@-webkit-keyframes shake", callback);
function callback()
{

Powered by Google App Engine
This is Rietveld 408576698