public function testAngleBracketScanning()
{
$content = file_get_contents($this->_jsDir . 'classes' . DS . 'slideshow.js');
$result = $this->filter->input('slideshow.js', $content);
$expected = <<<TEXT
/*!
this comment will stay
*/
// Local script
// this comment should be removed
function test(thing) {
/* this comment will be removed */
// I'm gone
thing.doStuff(); //I get to stay
return thing;
}
var AnotherClass = Class.extend({
});
var Slideshow = new Class({
});
TEXT;
$this->assertTextEquals($expected, $result);
}