From fc7283235bb9e5ae4300714d03c0bf3723f4792b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 27 Apr 2009 20:19:38 +0000 Subject: #444402 follow-up by kkaefer: Fix autocomplete, enforce code style for anonymous JS functions. --- modules/simpletest/tests/common.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/simpletest/tests/common.test') diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index a6ff854ba..735360eb8 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -493,7 +493,7 @@ class JavaScriptTestCase extends DrupalWebTestCase { * Test adding inline scripts. */ function testAddInline() { - $inline = 'jQuery(function(){});'; + $inline = 'jQuery(function () { });'; $javascript = drupal_add_js($inline, array('type' => 'inline', 'scope' => 'footer')); $this->assertTrue(array_key_exists('misc/jquery.js', $javascript), t('jQuery is added when inline scripts are added.')); $data = end($javascript); @@ -515,7 +515,7 @@ class JavaScriptTestCase extends DrupalWebTestCase { * Test drupal_get_js() with a footer scope. */ function testFooterHTML() { - $inline = 'jQuery(function(){});'; + $inline = 'jQuery(function () { });'; drupal_add_js($inline, array('type' => 'inline', 'scope' => 'footer')); $javascript = drupal_get_js('footer'); $this->assertTrue(strpos($javascript, $inline) > 0, t('Rendered JavaScript footer returns the inline code.')); -- cgit v1.2.3