From 0cf6aa0c0728f7a52e909693622f646ab56a6720 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 8 Jun 2011 15:34:26 -0700 Subject: [PATCH] Rollback of previous commit. This fails testbot. --- modules/color/color.test | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/modules/color/color.test b/modules/color/color.test index 897bd6cc01c..1ddfc0647da 100644 --- a/modules/color/color.test +++ b/modules/color/color.test @@ -11,7 +11,6 @@ class ColorTestCase extends DrupalWebTestCase { protected $big_user; protected $themes; - protected $colorTests; public static function getInfo() { return array( @@ -41,19 +40,6 @@ class ColorTestCase extends DrupalWebTestCase { ), ); theme_enable(array_keys($this->themes)); - - // Array filled with valid and not valid color values - $this->colorTests = array( - '#000' => TRUE, - '#123456' => TRUE, - '#abcdef' => TRUE, - '#0' => FALSE, - '#00' => FALSE, - '#0000' => FALSE, - '#00000' => FALSE, - '123456' => FALSE, - '#00000g' => FALSE, - ); } /** @@ -107,27 +93,4 @@ class ColorTestCase extends DrupalWebTestCase { $this->assertTrue(strpos($stylesheet_content, 'public://') === FALSE, 'Make sure the color paths have been translated to local paths. (' . $theme . ')'); variable_set('preprocess_css', 0); } - - /** - * Test to see if the provided color is valid - */ - function testValidColor() { - variable_set('theme_default', 'bartik'); - $settings_path = 'admin/appearance/settings/bartik'; - - $this->drupalLogin($this->big_user); - $edit['scheme'] = ''; - - foreach ($this->colorTests as $color => $is_valid) { - $edit['palette[bg]'] = $color; - $this->drupalPost($settings_path, $edit, t('Save configuration')); - - if($is_valid) { - $this->assertText('The configuration options have been saved.'); - } - else { - $this->assertText('You must enter a valid hexadecimal color value for Main background.'); - } - } - } }