Skip to content
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

Some angular and webcomponent tests started failing on dart2js-drt #19329

Closed
karlklose opened this issue Jun 10, 2014 · 9 comments
Closed

Some angular and webcomponent tests started failing on dart2js-drt #19329

karlklose opened this issue Jun 10, 2014 · 9 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant library-html type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@karlklose
Copy link
Contributor

From the error messages it looks like applyAuthorStyles is no longer supported and these tests use it.

Failing tests:
 third_party/angular_tests/browser_test/core_dom/compiler
 third_party/angular_tests/browser_test/core_dom/shadow_root_options
 third_party/angular_tests/browser_test/core/templateurl
 web_components/test/interop2_test

Logs:
http://chromegw.corp.google.com/i/client.dart/builders/dart2js-drt-linux-csp-be/builds/1352/steps/annotated_steps/logs/stdio

http://chromegw.corp.google.com/i/client.dart/builders/dart2js-drt-linux-1-2-be/builds/2532/steps/annotated_steps/logs/stdio

@sigmundch
Copy link
Member

Thanks for letting me know about the web_components test. I did a few status updates and deleted interop2_test last night. I think those changes were not included in that run of the bots. I think they are sorted out now (a later run of the csp bot seems to show those tests green).

Jacob also submitted a change that, instead of deleting applyAuthorStyle, it added a default implementation with a deprecated message. I believe that shuold've fixed the angular failures.


cc @jacob314.

@kasperl
Copy link

kasperl commented Jun 11, 2014

Any more details about Jacob's fix for applyAuthorStyle? We're seeing failures on the trunk builders too.

@kasperl
Copy link

kasperl commented Jun 11, 2014

Added Area-Library, Library-Html, Triaged labels.

@sigmundch
Copy link
Member

The change from Jacob was https://code.google.com/p/dart/source/detail?r=37154

@kasperl
Copy link

kasperl commented Jun 11, 2014

As far as I can tell we already merged r37154 to trunk (in r37161), but maybe we should double check that. We are still seeing the shadow_root_options test failure on trunk; see http://build.chromium.org/p/client.dart/builders/dart2js-drt-linux-1-2-dev/builds/159/steps/dart2js-drt%20tests/logs/stdio:

FAILED: dart2js-drt release_ia32 pkg/third_party/angular_tests/browser_test/core_dom/shadow_root_options
Expected: Pass Slow
Actual: RuntimeError
CommandOutput[dart2js]:

stdout:
third_party/pkg/angular/test/filter/order_by_spec.dart:10:12:
Hint: The class 'Name' overrides 'operator==', but not 'get hashCode'.
  operator ==(Name other) =>
           ^^
third_party/pkg/angular/test/filter/filter_spec.dart:9:39:
Hint: Using 'new Symbol' may lead to unnecessarily large generated code.
Try using 'const Symbol' or adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
    init.forEach((key, value) => map[new Symbol(key)] = value);
                                      ^^^
third_party/pkg/angular/test/directive/input_select_spec.dart:98:9:
Warning: No operator '[]' in class 'ElementList'.
        
.rootElement.querySelectorAll('option')[0].selected = true;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hint: 4 hint(s) suppressed in package:di.
Hint: 1 warning(s) suppressed in dart:_js_mirrors.
Hint: 1 hint(s) suppressed in package:mock.
Hint: 1 warning(s) and 4 hint(s) suppressed in package:angular.
pkg/third_party/angular_tests/browser_test.dart:
Hint: 8199 methods retained for use by dart:mirrors out of 14224 total methods (58%).

out/ReleaseIA32/packages/angular/angular.dart:52:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors' show MirrorsUsed;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/di/mirrors.dart:3:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/di/reflected_type.dart:7:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/angular/core/module.dart:5:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/angular/core/parser/eval_access.dart:3:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/angular/core/parser/eval_calls.dart:3:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/angular/change_detection/watch_group.dart:3:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/angular/change_detection/dirty_checking_change_detector.dart:3:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/angular/core_dom/module.dart:6:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^
out/ReleaseIA32/packages/mock/src/mock.dart:9:1:
Info: This import is not annotated with @­MirrorsUsed, which may lead to unnecessarily large generated code.
Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog.
import 'dart:mirrors';
^^^^^^^^^^^^^^^^^^^^^^

CommandOutput[content_shell]:

stdout:
#READY
CONSOLE MESSAGE: line 78: {
  "type": "debug",
  "value": "test_controller.js started",
  "timestamp": 0
}
CONSOLE WARNING: line 7: <script src="packages/browser/interop.js"> is no longer needed for dart:js. See http://pub.dartlang.org/packages/browser.
CONSOLE MESSAGE: line 78: {
  "type": "print",
  "value": "dart-calling-main",
  "timestamp": 5.031
}
CONSOLE MESSAGE: line 78: {
  "type": "print",
  "value": "dart-main-done",
  "timestamp": 5.628
}
CONSOLE MESSAGE: line 78: {
  "type": "message_received",
  "value": "dart-calling-main",
  "timestamp": 5.635
}
CONSOLE MESSAGE: line 78: {
  "type": "message_received",
  "value": "unittest-suite-wait-for-done",
  "timestamp": 5.636
}
CONSOLE WARNING: line 99824: ShadowRoot.resetStyleInheritance and ShadowRoot.applyAuthorStyles now deprecated in dart:html.
Please remove them from your code.

CONSOLE MESSAGE: line 78: {
  "type": "message_received",
  "value": "dart-main-done",
  "timestamp": 9.276
}
CONSOLE MESSAGE: line 78: {
  "type": "message_received",
  "value": "unittest-suite-done",
  "timestamp": 9.692
}
Content-Type: text/plain
FAIL
608 ERROR Expectation: core_dom/shadow_root_options shadow dom options should respect the apply-author-style option. Test failed: Caught Expected: contains '3px solid' Actual: '0px none rgb(0, 0, 0)' Error at dart.wrapException (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:3585:15) at HtmlIndividualConfiguration.SimpleConfiguration.onExpectFailure$1 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156535:17) at _ExpectFailureHandler.fail$1 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156474:20) at _ExpectFailureHandler.DefaultFailureHandler.failMatch$5 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:136502:12) at dart.<anonymous> (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:135391:22) at main__closure172.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:155029:9) at dart.Primitives.static.Primitives_applyFunction (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:5828:27) at JsClosureMirror.<anonymous> (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:33610:26) at JsClosureMirror.apply$2 as apply$1 at DynamicInjector.invoke$1 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:121890:17) DECLARED AT:Error at dart.wrapException (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:3585:15) at dart.inject (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:19335:15) at main_closure87.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:154988:88) at describe_closure.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:134099:17) at dart.group (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156182:12) at dart.<anonymous> (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:134019:9) at dart.main22 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:154942:7) at main_closure23.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:25047:9) at dart.group (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156182:12) at main60 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:24812:7)
browser_test.js 3585:15 dart.wrapException
browser_test.js 20354:17 _SpecInjector.<fn>
browser_test.js 20400:37 inject_closure.call$0
browser_test.js 22566:17 async__closure.call$0
browser_test.js 34380:14 _rootRun
browser_test.js 40482:53 _ZoneDelegate.run$2
browser_test.js 40715:40 _CustomizedZone.run$1
browser_test.js 34474:19 dart.<fn>
browser_test.js 22519:9 async_closure.call$0
browser_test.js 134055:12 _maybeWrapFn_closure.call$0
609 ERROR Expectation: core_dom/shadow_root_options shadow dom options should respect the reset-style-inheritance option. Test failed: Caught Expected: '16px' Actual: '20px' Which: is different. Expected: 16px Actual: 20px ^ Differ at offset 0 Error at dart.wrapException (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:3585:15) at HtmlIndividualConfiguration.SimpleConfiguration.onExpectFailure$1 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156535:17) at _ExpectFailureHandler.fail$1 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156474:20) at _ExpectFailureHandler.DefaultFailureHandler.failMatch$5 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:136502:12) at dart.<anonymous> (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:135391:22) at main__closure173.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:155055:9) at dart.Primitives.static.Primitives_applyFunction (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:5828:27) at JsClosureMirror.<anonymous> (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:33610:26) at JsClosureMirror.apply$2 as apply$1 at DynamicInjector.invoke$1 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:121890:17) DECLARED AT:Error at dart.wrapException (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:3585:15) at dart.inject (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:19335:15) at main_closure87.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:154989:93) at describe_closure.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:134099:17) at dart.group (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156182:12) at dart.<anonymous> (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:134019:9) at dart.main22 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:154942:7) at main_closure23.call$0 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:25047:9) at dart.group (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:156182:12) at main60 (http://127.0.0.1:43763/root_build/generated_tests/dart2js-drt-sdk/pkg_third_party_angular_tests_browser_test/browser_test.js:24812:7)
browser_test.js 3585:15 dart.wrapException
browser_test.js 20354:17 _SpecInjector.<fn>
browser_test.js 20400:37 inject_closure.call$0
browser_test.js 22566:17 async__closure.call$0
browser_test.js 34380:14 _rootRun
browser_test.js 40482:53 _ZoneDelegate.run$2
browser_test.js 40715:40 _CustomizedZone.run$1
browser_test.js 34474:19 dart.<fn>
browser_test.js 22519:9 async_closure.call$0
browser_test.js 134055:12 _maybeWrapFn_closure.call$0
Total 0 passed, 0 failed 2 errors
PASS
#EOF
#EOF


cc @ricowind.

@karlklose
Copy link
Contributor Author

pkg/web_components/test/interop_test started failing on drt, too.

@whesse
Copy link
Contributor

whesse commented Aug 4, 2014

Only two of these tests are still failing:

third_party/angular_tests/browser_test/core_dom/shadow_root_options

and

web_components/test/interop_test, which is only failing on --csp dart2js, due to a security policy violation: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".

@sigmundch
Copy link
Member

btw - we can change the test to move the inline code into a separate .js file to get rid of the CSP violation.

@karlklose karlklose added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-html labels Aug 4, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Mar 1, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 19, 2018
@matanlurey
Copy link
Contributor

I'm guessing we no longer care about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant library-html type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

6 participants