Commit 6f78b08d authored by xjm's avatar xjm

Issue #2532604 by alexpott: Fix reference to "var drupalSettings" in NoJavaScriptAnonymousTest

parent 818d1d3d
......@@ -57,7 +57,8 @@ public function testNoJavaScript() {
*/
protected function assertNoJavaScriptExceptHtml5Shiv() {
// Ensure drupalSettings is not set.
$this->assertNoRaw('var drupalSettings = {', 'drupalSettings is not set.');
$settings = $this->getDrupalSettings();
$this->assertTrue(empty($settings), 'drupalSettings is not set.');
// Ensure the HTML5 shiv exists.
$this->assertRaw('html5shiv/html5shiv.min.js', 'HTML5 shiv JavaScript exists.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment