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([ |