linkWebDirToTestDir method
Links the content of the web/
directory to the test/
directory.
This is need to allow proper loading of resources,
since the browser runs the tests at the test/
directory.
Implementation
bool linkWebDirToTestDir() {
var webDir = Directory(pack_path.join(compileDir.path, 'web'));
if (!webDir.existsSync()) return false;
var testDir = Directory(pack_path.join(compileDir.path, 'test'));
if (!testDir.existsSync()) return false;
_linkDirectoryFiles(testDir, webDir);
return true;
}