| 1 common.test | CommonJavaScriptTestCase::testDifferentGroup() | 
Test adding a JavaScript file with a different group.
File
- core/modules/ simpletest/ tests/ common.test, line 1506 
- Tests for common.inc functionality.
Class
- CommonJavaScriptTestCase
- Tests for the JavaScript system.
Code
function testDifferentGroup() {
  $javascript = backdrop_add_js('core/misc/collapse.js', array('group' => JS_THEME));
  $this->assertEqual($javascript['core/misc/collapse.js']['group'], JS_THEME, 'Adding a JavaScript file with a different group caches the given group.');
}
