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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html

Issue 2859073002: Revert of DevTools: support resolving a UILocation to multiple raw script locations (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html b/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
index baa80c16fc02485ac1e9de9ae13a10839be7613a..671b042aae8b948669a827e310951e68103e1009 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/text-source-map.html
@@ -17,13 +17,13 @@
function checkReverseMapping(compiledLineNumber, compiledColumnNumber, sourceURL, sourceLineNumber, mapping)
{
- var mappings = mapping.mappingsForLine(sourceURL, sourceLineNumber);
- if (!mappings.length) {
+ var entry = mapping.firstSourceLineMapping(sourceURL, sourceLineNumber);
+ if (!entry) {
InspectorTest.addResult("source line " + sourceLineNumber + " has no mappings.");
return;
}
- InspectorTest.addResult(compiledLineNumber + " === " + mappings[0].lineNumber);
- InspectorTest.addResult(compiledColumnNumber + " === " + mappings[0].columnNumber);
+ InspectorTest.addResult(compiledLineNumber + " === " + entry.lineNumber);
+ InspectorTest.addResult(compiledColumnNumber + " === " + entry.columnNumber);
}
InspectorTest.runTestSuite([

Powered by Google App Engine
This is Rietveld 408576698