summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/common.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-18 13:46:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-18 13:46:55 +0000
commitac484c277a0ac0627561d2cac1f4ea47ab5da00b (patch)
treeeac82650ab4c17d3f62461127403e2aff344cd82 /modules/simpletest/tests/common.test
parentb6025a8820ffc84fccbde3a8f77ba6f9c183bfc4 (diff)
downloadbrdo-ac484c277a0ac0627561d2cac1f4ea47ab5da00b.tar.gz
brdo-ac484c277a0ac0627561d2cac1f4ea47ab5da00b.tar.bz2
#125030 by kkaefer, quicksketch, dvessel, Steven, and John Resig: Allow compatibility with other JavaScript libraries.
Diffstat (limited to 'modules/simpletest/tests/common.test')
-rw-r--r--modules/simpletest/tests/common.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index 3aa248e6b..1bd40c27e 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -445,7 +445,7 @@ class JavaScriptTestCase extends DrupalWebTestCase {
* Test adding inline scripts.
*/
function testAddInline() {
- $inline = '$(document).ready(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);
@@ -456,7 +456,7 @@ class JavaScriptTestCase extends DrupalWebTestCase {
* Test drupal_get_js() with a footer scope.
*/
function testFooterHTML() {
- $inline = '$(document).ready(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.'));