summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/common.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-21 20:26:41 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-21 20:26:41 +0000
commitf505b6a97800a52f6bfc39ddccbb06077291fefe (patch)
treee89b08cd10e4e4caccc6d79544606edae1135a08 /modules/simpletest/tests/common.test
parentc802302bac0eb72696f1fc67a6424fbdc534fd01 (diff)
downloadbrdo-f505b6a97800a52f6bfc39ddccbb06077291fefe.tar.gz
brdo-f505b6a97800a52f6bfc39ddccbb06077291fefe.tar.bz2
- Patch #746676 by pwolanin, Rob Loach: new grouping messes with JavaScript weight.
Diffstat (limited to 'modules/simpletest/tests/common.test')
-rw-r--r--modules/simpletest/tests/common.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test
index de4861389..68b99f7a1 100644
--- a/modules/simpletest/tests/common.test
+++ b/modules/simpletest/tests/common.test
@@ -1149,6 +1149,7 @@ class JavaScriptTestCase extends DrupalWebTestCase {
drupal_add_js('(function($){alert("Weight -8 #1");})(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => -8));
drupal_add_js('(function($){alert("Weight -8 #2");})(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => -8));
drupal_add_js('(function($){alert("Weight -8 #3");})(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => -8));
+ drupal_add_js('http://example.com/example.js?Weight -5 #1', array('type' => 'external', 'scope' => 'footer', 'weight' => -5));
drupal_add_js('(function($){alert("Weight -8 #4");})(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => -8));
drupal_add_js('(function($){alert("Weight 5 #2");})(jQuery);', array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
drupal_add_js('(function($){alert("Weight 0 #3");})(jQuery);', array('type' => 'inline', 'scope' => 'footer'));
@@ -1159,6 +1160,7 @@ class JavaScriptTestCase extends DrupalWebTestCase {
"-8 #2",
"-8 #3",
"-8 #4",
+ "-5 #1", // The external script.
"0 #1",
"0 #2",
"0 #3",