1 common_test.module common_test_js_and_css_querystring()

Adds a JavaScript file and a CSS file with a query string appended.

File

core/modules/simpletest/tests/common_test.module, line 299
Helper module for the Common tests.

Code

function common_test_js_and_css_querystring() {
  backdrop_add_js(backdrop_get_path('module', 'node') . '/js/node.js');
  backdrop_add_css(backdrop_get_path('module', 'node') . '/css/node.admin.css');
  // A relative URI may have a query string.
  backdrop_add_css('/' . backdrop_get_path('module', 'node') . '/node-fake.css?arg1=value1&arg2=value2');
  return '';
}