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

Unified Diff: LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.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
« no previous file with comments | « no previous file | LayoutTests/inspector/audits/audits-panel-functional-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html
diff --git a/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html b/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html
index be8c87027bc31e2c1d2b0f4a8fe5e3823cb22879..f07a40b0d8f8474e4c97c91efec822854dda0003 100644
--- a/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html
+++ b/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html
@@ -33,12 +33,6 @@ function test()
{
var styleText = "#inspected {\n color: red;\n}\n";
- function loadStylesheet(callback)
- {
- InspectorTest.addResult("Loading stylesheet with sourceURL:");
- InspectorTest.evaluateInPage("loadStylesheet()", callback);
- }
-
function dumpUISourceCodeContents()
{
InspectorTest.addResult("Dumping uiSourceCode content:");
@@ -60,11 +54,14 @@ function test()
function didShowScriptSource(sourceFrame)
{
dumpUISourceCodeContents();
- loadStylesheet(stylesheetLoaded);
+ InspectorTest.addResult("Loading stylesheet with sourceURL:");
+ WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetLoaded);
+ InspectorTest.evaluateInPage("loadStylesheet()");
}
function stylesheetLoaded()
{
+ WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetLoaded);
InspectorTest.addResult("Stylesheet loaded.");
WebInspector.inspectorView.showPanel("elements");
InspectorTest.selectNodeAndWaitForStyles("inspected", nodeSelected);
« no previous file with comments | « no previous file | LayoutTests/inspector/audits/audits-panel-functional-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698