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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js

Issue 2297873004: DevTools: Add bezier swatches to CSS Sources (Closed)
Patch Set: Extract dumpSwatchPositions and rename flag Created 4 years, 3 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 | third_party/WebKit/LayoutTests/inspector/sources/bezier-swatch-position.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ }
+}
+
};
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/bezier-swatch-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698