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

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

Issue 201363002: DevTools: defer styles delta calculation to until the end of the task. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 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/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 f41e1226cfe0b54f8d70eabb3aa13d9f4b72bd70..b234f8bbe6c7da9e734ff4fec1778e4e3143667c 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
@@ -13,10 +13,12 @@ function addStyle()
function test()
{
WebInspector.inspectorView.showPanel("elements");
- InspectorTest.evaluateInPage("addStyle()", step0);
+ WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded);
+ InspectorTest.evaluateInPage("addStyle()");
- function step0()
+ function stylesheetAdded()
{
+ WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded);
InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
}

Powered by Google App Engine
This is Rietveld 408576698