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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap.html

Issue 2545883005: DevTools: support sourceMappingURL for the inline stylesheets (Closed)
Patch Set: address comments Created 4 years 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 | third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap.html
index cf5470d83b83ad7cae27c25dbcc6ce2d6319312f..9eee6ee0c440921c1f55992df18d5c9cf9418cca 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap.html
@@ -14,14 +14,15 @@ function embedInlineStyleSheet()
function test()
{
- SDK.targetManager.addModelListener(SDK.CSSModel, SDK.CSSModel.Events.StyleSheetAdded, onStyleSheetAdded);
- InspectorTest.evaluateInPage("embedInlineStyleSheet()", function() { });
+ SDK.targetManager.addModelListener(SDK.CSSModel, SDK.CSSModel.Events.StyleSheetAdded, function() { });
+ InspectorTest.evaluateInPage("embedInlineStyleSheet()", onEvaluated);
- function onStyleSheetAdded(event)
- {
- var header = event.data;
+ function onEvaluated() {
+ InspectorTest.selectNodeAndWaitForStyles("inspect", onSelected);
+ }
- InspectorTest.addResult("\nheader.sourceMapURL = " + header.sourceMapURL);
+ function onSelected() {
+ InspectorTest.dumpSelectedElementStyles(true, false, false);
InspectorTest.completeTest();
}
};
@@ -30,7 +31,7 @@ function test()
</head>
-<body onload="runTest()">
+<body id="inspect" onload="runTest()">
<p>Verify that inline style sourceMappingURL is resolved properly.</p>
<pre class="stylesheet-text">.red,body{color:red}body{background-color:red}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1peGluLmxlc3MiLCJ0ZXN0Lmxlc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsS0NJQSxLREhFLE1BQUEsSUNHRixLQUVFLGlCQUFBIn0=*/</pre>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-4/inline-style-sourcemap-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698