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

Unified Diff: LayoutTests/http/tests/inspector/elements/styles/stylesheet-tracking.html

Issue 177963004: DevTools: Split creating inspector stylesheet and adding a new rule into stylesheet in protocol. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test Created 6 years, 10 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/http/tests/inspector/elements/styles/stylesheet-tracking.html
diff --git a/LayoutTests/http/tests/inspector/elements/styles/stylesheet-tracking.html b/LayoutTests/http/tests/inspector/elements/styles/stylesheet-tracking.html
index 51f983c3a6374066a1b0db9a47ee2921e63e0f02..82d2572435a6a5e1a314bd3bf92c756da47fe998 100644
--- a/LayoutTests/http/tests/inspector/elements/styles/stylesheet-tracking.html
+++ b/LayoutTests/http/tests/inspector/elements/styles/stylesheet-tracking.html
@@ -144,18 +144,13 @@ function test()
{
InspectorTest.addResult("=== Adding rule... ===");
waitStyleSheetAdded(1);
- WebInspector.cssModel.addRule(inspectedNode.id, "#inspected", successCallback, failureCallback);
+ InspectorTest.addNewRule("#inspected", successCallback);
function successCallback()
{
InspectorTest.addResult("Rule added");
step5();
}
- function failureCallback()
- {
- InspectorTest.addResult("Failed to add rule.");
- InspectorTest.completeTest();
- }
}
function step5()

Powered by Google App Engine
This is Rietveld 408576698