Skip to content

web tests cannot handle scripts #2264

Closed
@peter-ahe-google

Description

@peter-ahe-google

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

Metadata

Metadata

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresarea-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions