@@ -384,7 +384,7 @@ define(function (require, exports, module) {
384384
385385 /** Returns the colorEditor's current value as a string in its current format */
386386 function getColorString ( ) {
387- return tinycolor ( colorEditor . getColor ( ) ) . toString ( ) ;
387+ return tinycolor ( colorEditor . getColor ( ) ) . getOriginalInput ( ) ;
388388 }
389389
390390 describe ( "simple load/commit" , function ( ) {
@@ -395,7 +395,7 @@ define(function (require, exports, module) {
395395
396396 runs ( function ( ) {
397397 makeUI ( colorStr ) ;
398- expect ( colorEditor . getColor ( ) . toString ( ) ) . toBe ( colorStr ) ;
398+ expect ( colorEditor . getColor ( ) . getOriginalInput ( ) ) . toBe ( colorStr ) ;
399399 expect ( colorEditor . $colorValue . val ( ) ) . toBe ( colorStr ) ;
400400 expect ( tinycolor . equals ( colorEditor . $currentColor . css ( "background-color" ) , colorStr ) ) . toBe ( true ) ;
401401
@@ -424,7 +424,7 @@ define(function (require, exports, module) {
424424 runs ( function ( ) {
425425 makeUI ( "#0a0a0a" ) ;
426426 colorEditor . setColorFromString ( colorStr ) ;
427- expect ( colorEditor . getColor ( ) . toString ( ) ) . toBe ( colorStr ) ;
427+ expect ( colorEditor . getColor ( ) . getOriginalInput ( ) ) . toBe ( colorStr ) ;
428428 expect ( colorEditor . $colorValue . val ( ) ) . toBe ( colorStr ) ;
429429 expect ( tinycolor . equals ( colorEditor . $currentColor . css ( "background-color" ) , colorStr ) ) . toBe ( true ) ;
430430 checkNear ( tinycolor ( colorEditor . $selection . css ( "background-color" ) ) . toHsv ( ) . h , tinycolor ( colorStr ) . toHsv ( ) . h ) ;
0 commit comments