Fix compiler==none case in browser testing (Dartium case)

Error was introduced in https://codereview.chromium.org/2947473002/

BUG=
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2950173004 .
This commit is contained in:
William Hesse 2017-06-22 11:30:20 +02:00
parent cec963f028
commit d8ec6450d0

View file

@ -1125,7 +1125,7 @@ class StandardTestSuite extends TestSuite {
}
scriptPath = _createUrlPathFromFile(new Path(scriptPath));
if (configuration.compiler == Compiler.dart2js) {
if (configuration.compiler != Compiler.dartdevc) {
content = getHtmlContents(fileName, scriptType, scriptPath);
} else {
var jsDir = new Path(compilationTempDir)
@ -1149,6 +1149,9 @@ class StandardTestSuite extends TestSuite {
'$compilationTempDir/$nameNoExt.js', optionsFromFile));
break;
case Compiler.none:
break;
default:
assert(false);
}