diff --git a/core/modules/color/color.js b/core/modules/color/color.js
index 62eab38..13a1b22 100644
--- a/core/modules/color/color.js
+++ b/core/modules/color/color.js
@@ -142,14 +142,14 @@
           // Update locked values.
           if (propagate) {
             i = input.i;
-            for (j = i + 1; ; ++j) {
+            for (j = i + 1; true; ++j) {
               if (!locks[j - 1] || $(locks[j - 1]).is('.unlocked')) {
                 break;
               }
               matched = shift_color(color, reference[input.key], reference[inputs[j].key]);
               callback(inputs[j], matched, false);
             }
-            for (j = i - 1; ; --j) {
+            for (j = i - 1; true; --j) {
               if (!locks[j] || $(locks[j]).is('.unlocked')) {
                 break;
               }
@@ -255,5 +255,4 @@
       preview();
     }
   };
-
 })(jQuery);
diff --git a/core/modules/color/lib/Drupal/color/Tests/ColorTest.php b/core/modules/color/lib/Drupal/color/Tests/ColorTest.php
index 6238019..265c055 100644
--- a/core/modules/color/lib/Drupal/color/Tests/ColorTest.php
+++ b/core/modules/color/lib/Drupal/color/Tests/ColorTest.php
@@ -26,7 +26,7 @@ class ColorTest extends WebTestBase {
    *
    * @var \Drupal\user\UserInterface
    */
-  protected $big_user;
+  protected $bigUser;
 
   /**
    * An associative array of settings for themes.
@@ -45,6 +45,9 @@ class ColorTest extends WebTestBase {
    */
   protected $colorTests;
 
+  /**
+   * {@inheritdoc}
+   */
   public static function getInfo() {
     return array(
       'name' => 'Color functionality',
@@ -56,11 +59,11 @@ public static function getInfo() {
   /**
    * {@inheritdoc}
    */
-  function setUp() {
+  public function setUp() {
     parent::setUp();
 
     // Create user.
-    $this->big_user = $this->drupalCreateUser(array('administer themes'));
+    $this->bigUser = $this->drupalCreateUser(array('administer themes'));
 
     // This tests the color module in Bartik.
     $this->themes = array(
@@ -94,9 +97,9 @@ function setUp() {
   /**
    * Tests the Color module functionality.
    */
-  function testColor() {
+  public function testColor() {
     foreach ($this->themes as $theme => $test_values) {
-      $this->_testColor($theme, $test_values);
+      $this->subTestColor($theme, $test_values);
     }
   }
 
@@ -109,13 +112,13 @@ function testColor() {
    *   An associative array of test settings (i.e. 'Main background', 'Text
    *   color', 'Color set', etc) for the theme which being tested.
    */
-  function _testColor($theme, $test_values) {
+  public function subTestColor($theme, $test_values) {
     \Drupal::config('system.theme')
       ->set('default', $theme)
       ->save();
     $settings_path = 'admin/appearance/settings/' . $theme;
 
-    $this->drupalLogin($this->big_user);
+    $this->drupalLogin($this->bigUser);
     $this->drupalGet($settings_path);
     $this->assertResponse(200);
     $edit['scheme'] = '';
@@ -126,7 +129,7 @@ function _testColor($theme, $test_values) {
     $stylesheets = \Drupal::config('color.' . $theme)->get('stylesheets');
     foreach ($stylesheets as $stylesheet) {
       $this->assertPattern('|' . file_create_url($stylesheet) . '|', 'Make sure the color stylesheet is included in the content. (' . $theme . ')');
-      $stylesheet_content = join("\n", file($stylesheet));
+      $stylesheet_content = implode("\n", file($stylesheet));
       $this->assertTrue(strpos($stylesheet_content, 'color: #123456') !== FALSE, 'Make sure the color we changed is in the color stylesheet. (' . $theme . ')');
     }
 
@@ -138,7 +141,7 @@ function _testColor($theme, $test_values) {
     $this->drupalGet('<front>');
     $stylesheets = \Drupal::config('color.' . $theme)->get('stylesheets');
     foreach ($stylesheets as $stylesheet) {
-      $stylesheet_content = join("\n", file($stylesheet));
+      $stylesheet_content = implode("\n", file($stylesheet));
       $this->assertTrue(strpos($stylesheet_content, 'color: ' . $test_values['scheme_color']) !== FALSE, 'Make sure the color we changed is in the color stylesheet. (' . $theme . ')');
     }
 
@@ -150,7 +153,7 @@ function _testColor($theme, $test_values) {
     $stylesheets = \Drupal::state()->get('drupal_css_cache_files') ?: array();
     $stylesheet_content = '';
     foreach ($stylesheets as $uri) {
-      $stylesheet_content .= join("\n", file(drupal_realpath($uri)));
+      $stylesheet_content .= implode("\n", file(drupal_realpath($uri)));
     }
     $this->assertTrue(strpos($stylesheet_content, 'public://') === FALSE, 'Make sure the color paths have been translated to local paths. (' . $theme . ')');
     $config->set('css.preprocess', 0);
@@ -160,20 +163,20 @@ function _testColor($theme, $test_values) {
   /**
    * Tests whether the provided color is valid.
    */
-  function testValidColor() {
+  public function testValidColor() {
     \Drupal::config('system.theme')
       ->set('default', 'bartik')
       ->save();
     $settings_path = 'admin/appearance/settings/bartik';
 
-    $this->drupalLogin($this->big_user);
+    $this->drupalLogin($this->bigUser);
     $edit['scheme'] = '';
 
     foreach ($this->colorTests as $color => $is_valid) {
       $edit['palette[bg]'] = $color;
       $this->drupalPostForm($settings_path, $edit, t('Save configuration'));
 
-      if($is_valid) {
+      if ($is_valid) {
         $this->assertText('The configuration options have been saved.');
       }
       else {
