mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
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:
parent
cec963f028
commit
d8ec6450d0
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue