[sagenb] 77/157: fix some doctests in colorpicker

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit a21d71b43747b7251d2d3af5ee8bf039ad257581
Author: Punarbasu Purkayastha <ppurka at gmail.com>
Date:   Sat Oct 4 12:58:19 2014 +0800

    fix some doctests in colorpicker
---
 sagenb/notebook/interact.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/sagenb/notebook/interact.py b/sagenb/notebook/interact.py
index 2c4e7b0..cd9fdc5 100644
--- a/sagenb/notebook/interact.py
+++ b/sagenb/notebook/interact.py
@@ -446,7 +446,7 @@ def html_color_selector(id, change, input_change, default='000000',
     - ``default`` - a string (default: ``'000000'``); default color as
       a 6-character HTML hexadecimal string.
 
-    - ``widget`` - a string (default: 'jpicker'); the color
+    - ``widget`` - a string (default: 'colorpicker'); the color
       selector widget to use; choices are 'colorpicker', 'jpicker' and
       'farbtastic'
 
@@ -460,7 +460,7 @@ def html_color_selector(id, change, input_change, default='000000',
     EXAMPLES::
 
         sage: sagenb.notebook.interact.html_color_selector(0, 'alert("changed")', '', default='0afcac')
-        '...<table>...jpicker...'
+        '...<table>...colorpicker...'
         sage: sagenb.notebook.interact.html_color_selector(99, 'console.log(color);', '', default='fedcba', widget='colorpicker', hide_box=True)
         '...<table>...colorpicker...'
     """
@@ -2938,7 +2938,7 @@ class color_selector(input_box):
             sage: color_selector(Color('red'), 'line color').__repr__()
             "Interact color selector labeled 'line color', with default RGB color (1.0, 0.0, 0.0), widget 'colorpicker', and visible input box"
             sage: color_selector(Color((1,0,1)), 'circle color', widget='jpicker', hide_box=True).__repr__()
-            "Interact color selector labeled 'circle color', with default RGB color (1.0, 0.0, 1.0), widget 'colorpicker', and hidden input box"
+            "Interact color selector labeled 'circle color', with default RGB color (1.0, 0.0, 1.0), widget 'jpicker', and hidden input box"
         """
         s = "Interact color selector labeled %r, with default %r, widget %r, and " % (self.label(), self.default(), self.widget())
         if self.hide_box():
@@ -2960,10 +2960,10 @@ class color_selector(input_box):
             'colorpicker'
             sage: color_selector('#abcdef', hide_box=True, widget='farbtastic').widget()
             'farbtastic'
-            sage: color_selector(widget='colorpicker').widget()
-            'colorpicker'
-            sage: color_selector(default=Color(0,0.5,0.25)).widget()
+            sage: color_selector(widget='jpicker').widget()
             'jpicker'
+            sage: color_selector(default=Color(0,0.5,0.25)).widget()
+            'colorpicker'
         """
         return self.__widget
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list