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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js

Issue 2428793002: Test usage of registered custom properties in custom paint (Closed)
Patch Set: Created 4 years, 2 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/csspaint/resources/generate-paint-style-logging.js
diff --git a/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js b/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js
index fd142c2f023260d0afacf3970edcbc1f83667f4c..7f114ba57dded07a6a77ba40e524be8d96ce54f1 100644
--- a/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js
+++ b/third_party/WebKit/LayoutTests/csspaint/resources/generate-paint-style-logging.js
@@ -16,7 +16,13 @@ function generatePaintStyleLogging(properties) {
const properties = styleMap.getProperties().sort();
for (let i = 0; i < properties.length; i++) {
const value = styleMap.get(properties[i]);
- console.log(properties[i] + ': ' + (value ? value.cssText: '[null]'));
+ let serialized;
+ if (value) {
+ serialized = '[' + value.constructor.name + '=' + value.cssText + ']';
+ } else {
+ serialized = '[null]';
+ }
+ console.log(properties[i] + ': ' + serialized);
}
}
});

Powered by Google App Engine
This is Rietveld 408576698