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

Unified Diff: trunk/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html

Issue 196743008: Revert 169371 "DevTools: defer styles delta calculation to until..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: 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 | trunk/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: trunk/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html
===================================================================
--- trunk/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html (revision 169387)
+++ trunk/LayoutTests/http/tests/inspector/elements/styles/edit-css-with-source-url.html (working copy)
@@ -33,6 +33,12 @@
{
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:");
@@ -54,14 +60,11 @@
function didShowScriptSource(sourceFrame)
{
dumpUISourceCodeContents();
- InspectorTest.addResult("Loading stylesheet with sourceURL:");
- WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetLoaded);
- InspectorTest.evaluateInPage("loadStylesheet()");
+ loadStylesheet(stylesheetLoaded);
}
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 | trunk/LayoutTests/inspector/audits/audits-panel-functional-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698