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

Unified Diff: third_party/WebKit/LayoutTests/inspector/components/color.html

Issue 1986053004: Devtools Color: Basic support for #RRGGBBAA and #RGBA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/components/color-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/components/color.html
diff --git a/third_party/WebKit/LayoutTests/inspector/components/color.html b/third_party/WebKit/LayoutTests/inspector/components/color.html
index 4c54b2df1f57b417df4920b9ee63bcdbb18f2558..2813ea2b0f769160ed11c7fa9ec8db982f368aae 100644
--- a/third_party/WebKit/LayoutTests/inspector/components/color.html
+++ b/third_party/WebKit/LayoutTests/inspector/components/color.html
@@ -21,7 +21,9 @@ var test = function()
var hsvaString = String.sprintf("hsva(%d, %d%, %d%, %f)", Math.round(hsva[0] * 360), Math.round(hsva[1] * 100), Math.round(hsva[2] * 100), hsva[3]);
InspectorTest.addResult(" - " + hsvaString);
+ InspectorTest.addResult(" - " + color.asString(WebInspector.Color.Format.HEXA));
InspectorTest.addResult(" - " + color.asString(WebInspector.Color.Format.HEX));
+ InspectorTest.addResult(" - " + color.asString(WebInspector.Color.Format.ShortHEXA));
InspectorTest.addResult(" - " + color.asString(WebInspector.Color.Format.ShortHEX));
InspectorTest.addResult(" - " + color.asString(WebInspector.Color.Format.Nickname));
InspectorTest.addResult(" - default: " + color.asString());
@@ -45,7 +47,9 @@ var test = function()
dumpColor("hsl(212, 55%, 32%)");
dumpColor("hsla(212, 55%, 32%, 0.5)");
+ dumpColor("#12345678");
dumpColor("#00FFFF");
+ dumpColor("#1234");
dumpColor("#0FF");
InspectorTest.completeTest();
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/components/color-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698