MDL-43018 Fix unit tests for minify changes.

This commit is contained in:
Damyon Wiese 2013-12-02 12:52:01 +08:00
parent df68e73824
commit bd3811f1b4

View File

@ -110,11 +110,11 @@ function hm()
$files = array($testfile1, $testfile2);
$this->assertSame("function hm(){}\nfunction oh(){}", core_minify::js_files($files));
$this->assertSame("function hm(){};\nfunction oh(){}", core_minify::js_files($files));
$files = array($testfile1, $testfile2, $testfile3);
$this->assertStringStartsWith("function hm(){}\nfunction oh(){}\n\n\n// Cannot read JS file ", @core_minify::js_files($files));
$this->assertStringStartsWith("function hm(){};\nfunction oh(){};\n\n\n// Cannot read JS file ", @core_minify::js_files($files));
unlink($testfile1);
unlink($testfile2);