Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#6634 - adding test to verify that the "cr…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 11, 2014
1 parent a04f784 commit 5bab43d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/Helper/HeadScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,14 @@ public function testNoEscapeTrue()
$this->assertNotContains('//<!--', $test);
$this->assertNotContains('//-->', $test);
}

public function testSupportsCrossOriginAttribute()
{
$this->helper->__invoke()->appendScript(
'// some script' . PHP_EOL, 'text/javascript', array('crossorigin' => true)
);
$test = $this->helper->__invoke()->toString();

$this->assertContains('crossorigin="', $test);
}
}

0 comments on commit 5bab43d

Please sign in to comment.