Searched refs:parseColor (Results 1 – 5 of 5) sorted by relevance
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/js/ |
D | color-handler.js | 3 assert.deepEqual(parseColor(' ReD '), [255, 0, 0, 1]); 4 assert.deepEqual(parseColor(' magenta'), [255, 0, 255, 1]); 5 assert.deepEqual(parseColor('transparent'), [0, 0, 0, 0]); 6 assert.deepEqual(parseColor('#0f0'), [0, 255, 0, 1]); 7 assert.deepEqual(parseColor('rgb(0,10,20)'), [0, 10, 20, 1]); 8 assert.deepEqual(parseColor('rgba(65,40,20,0.2)'), [13, 8, 4, 0.2]); 9 assert.deepEqual(parseColor('hsl(120, 100%, 50%)'), [0, 255, 0, 1]); 12 assert.isUndefined(parseColor('')); 13 assert.isUndefined(parseColor('bananayellow')); 14 assert.isUndefined(parseColor('rgb(10, 20, 30, 40)'));
|
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/ |
D | color-handler.js | 21 function parseColor(string) { function 52 scope.addPropertiesHandler(parseColor, mergeColors, 55 scope.consumeColor = scope.consumeParenthesised.bind(null, parseColor); 59 testing.parseColor = parseColor;
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/ |
D | XYPlotTest.java | 475 assertEquals(Color.parseColor(param3), plot.getBackgroundPaint().getColor()); in testConfigure() 476 … assertEquals(Color.parseColor(param3), plot.getGraphWidget().getDomainLabelPaint().getColor()); in testConfigure()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
D | Configurator.java | 126 return Color.parseColor(value); in parseIntAttr()
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/ |
D | PlotTest.java | 481 assertEquals(Color.parseColor(param3), plot.getBackgroundPaint().getColor()); in testConfigure()
|