1 common.test CommonJavaScriptTestCase::testReset()

Test to see if resetting the JavaScript empties the cache.

File

core/modules/simpletest/tests/common.test, line 1391
Tests for common.inc functionality.

Class

CommonJavaScriptTestCase
Tests for the JavaScript system.

Code

function testReset() {
  backdrop_add_js('core/misc/collapse.js');
  backdrop_static_reset('backdrop_add_js');
  $this->assertEqual(array(), backdrop_add_js(), 'Resetting the JavaScript correctly empties the cache.');
}