Go to the source code of this file.
Functions | |
| function | colorToHex (aColor) |
| function | hexToColor (aString) |
| function | checkGConfToShellColor (aGConfColor, aExpectedShellColor) |
| function | checkShellToGConfColor (aShellColor, aExpectedGConfColor) |
| function | run_test () |
Variables | |
| const | Cc = Components.classes |
| const | Ci = Components.interfaces |
| const | Cr = Components.results |
| const | GCONF_BG_COLOR_KEY = "/desktop/gnome/background/primary_color" |
| var | gShell |
| var | gGConf |
| function checkGConfToShellColor | ( | aGConfColor, | |
| aExpectedShellColor | |||
| ) |
Checks that setting the GConf background key to aGConfColor will result in the Shell component returning a background color equals to aExpectedShellColor in #RRGGBB format.
Definition at line 43 of file test_421977.js.
| function checkShellToGConfColor | ( | aShellColor, | |
| aExpectedGConfColor | |||
| ) |
Checks that setting the background color (in #RRGGBB format) using the Shell component will result in having a GConf key for the background color set to aExpectedGConfColor.
Definition at line 56 of file test_421977.js.
| function colorToHex | ( | aColor | ) |
Converts from a rgb numerical color valule (r << 16 | g << 8 | b) into a hex string in #RRGGBB format.
Definition at line 14 of file test_421977.js.
| function hexToColor | ( | aString | ) |
Converts a color string in #RRGGBB format to a rgb numerical color value (r << 16 | g << 8 | b).
Definition at line 32 of file test_421977.js.
| function run_test | ( | ) |
| const Cc = Components.classes |
Definition at line 1 of file test_421977.js.
| const Ci = Components.interfaces |
Definition at line 2 of file test_421977.js.
| const Cr = Components.results |
Definition at line 3 of file test_421977.js.
| const GCONF_BG_COLOR_KEY = "/desktop/gnome/background/primary_color" |
Definition at line 5 of file test_421977.js.
| var gGConf |
Definition at line 8 of file test_421977.js.
| var gShell |
Definition at line 7 of file test_421977.js.