-
Notifications
You must be signed in to change notification settings - Fork 1.7k
web tests cannot handle scripts #2264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Added this to the Later milestone. |
I remain convinced that the root cause of this issue is the wrapping that is going in Dartium tests. I have demonstrated how to avoid wrapping in dart2js. This bug reported more than 6 months ago and it continues to cause problems. The new library syntax is not helping. Currently Dartium will fail any test that uses library syntax without a #. Removed Priority-Medium label. |
I still think that the right solution is to allow importing things that do not have a library name as long as they aren't marked as part of something else. cc @gbracha. |
FWIW, the spec allows (much to my regret) you to import a URI that does not designate a file with an explicitly named library declaration. |
Fixed in r20971. Unfortunately, we are still wrapping tests in Dartium :-( Set owner to @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
The text was updated successfully, but these errors were encountered: