Description
According to the Dart language specification, the #library tag is optional in a script. Our tests are scripts and do not require a #library tag.
Unfortunately, the dartium test component cannot handle scripts as it attempts to load the as libraries. This is not correct and makes it impossible to fully test the Dart language.
For example:
FAILED: dartium release_ia32 DummyCompilerTest
Expected: pass
Actual: fail
stdout:
CONSOLE MESSAGE: Internal error: 'api.dart');
^
Content-Type: text/plain
Running /mnt/data/b/build/slave/dartium-lucid64-inc/build/src/dart/tests/utils/src/DummyCompilerTest.dart
EOF
Command line: python /mnt/data/b/build/slave/dartium-lucid64-inc/build/src/dart/tools/testing/drt-trampoline.py /mnt/data/b/build/slave/dartium-lucid64-inc/build/src/out/Release/DumpRenderTree --no-timeout --dart-flags=--ignore-unrecognized-flags /mnt/data/b/build/slave/dartium-lucid64-inc/build/src/out/Release_ia32/generated_tests/dartium/tests_utils_src_DummyCompilerTest-/test.html