function JavaScriptTestCase::testReset
Test to see if resetting the JavaScript empties the cache.
File
-
modules/
simpletest/ tests/ common.test, line 1630
Class
- JavaScriptTestCase
- Tests for the JavaScript system.
Code
function testReset() {
drupal_add_js('misc/collapse.js');
drupal_static_reset('drupal_add_js');
$this->assertEqual(array(), drupal_add_js(), 'Resetting the JavaScript correctly empties the cache.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.