commit f2789c730d8954dd2e25fddda542042850f07baa Author: Joel Pittet Date: Wed Oct 9 17:48:04 2013 -0700 imagedimentions fix newline in tests diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php index c136fa6..52d2a46 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageDimensionsTest.php @@ -71,7 +71,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -92,7 +92,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -114,7 +114,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -136,7 +136,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -154,7 +154,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -175,7 +175,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -195,7 +195,7 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -216,7 +216,7 @@ function testImageDimensions() { $effect_id = $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); $this->assertFalse(file_exists($generated_uri), 'Generated file does not exist.'); $this->drupalGet($url); $this->assertResponse(200, 'Image was generated at the URL.'); @@ -235,6 +235,6 @@ function testImageDimensions() { $style->saveImageEffect($effect); $img_tag = theme_image_style($variables); - $this->assertEqual($img_tag, ''); + $this->assertEqual($img_tag, ''."\n"); } }