Index: third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js |
index a7950c9336578657bc29421650d5ae118251a5c4..625a7a693602343c6b792789edfcd552dd2673ff 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js |
@@ -32,4 +32,15 @@ InspectorTest.testPrettyPrint = function(mimeType, text, mappingQueries, next) |
} |
} |
+InspectorTest.dumpSwatchPositions = function(sourceFrame, bookmarkType) |
+{ |
+ var textEditor = sourceFrame.textEditor; |
+ var markers = textEditor.bookmarks(textEditor.fullRange(), bookmarkType); |
+ for (var i = 0; i < markers.length; i++) { |
+ var position = markers[i].position(); |
+ var text = markers[i]._marker.widgetNode.firstChild.textContent; |
+ InspectorTest.addResult("Line " + position.startLine + ", Column " + position.startColumn + ": " + text); |
+ } |
+} |
+ |
}; |