Back to build
Raw log | Switch to full mode | Login

python -u /b/s/w/ir/kitchen-checkout/build/scripts/tools/runit.py --show-path --with-third-party-lib -- python /b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/collect_task.py --verbose -o /b/s/w/ir/tmp/t/tmp3nQpBv.json --task-output-dir /b/s/w/ir/tmp/t/tmpI_BDV8 --merge-script /b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/noop_merge.py --merge-script-stdout-file /b/s/w/ir/tmp/t/tmp0REK84merge_script_log --merge-additional-args '[]' --summary-json-file /b/s/w/ir/tmp/t/tmppVGFDb.json -- swarming collect -server https://chromium-swarm.appspot.com -worker 50 -task-summary-python -task-output-stdout all -verbose -requests-json /b/s/w/ir/tmp/t/tmpE8rxQd.json in dir /b/s/w/ir/k: allow_subannotations: False base_name: 'dart2js tests_shard_6' cmd: ['python', '-u', '/b/s/w/ir/kitchen-checkout/build/scripts/tools/runit.py', '--show-path', '--with-third-party-lib', '--', 'python', '/b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/collect_task.py', '--verbose', '-o', '/b/s/w/ir/tmp/t/tmp3nQpBv.json', '--task-output-dir', '/b/s/w/ir/tmp/t/tmpI_BDV8', '--merge-script', '/b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/noop_merge.py', '--merge-script-stdout-file', '/b/s/w/ir/tmp/t/tmp0REK84merge_script_log', '--merge-additional-args', '[]', '--summary-json-file', '/b/s/w/ir/tmp/t/tmppVGFDb.json', '--', 'swarming', 'collect', '-server', 'https://chromium-swarm.appspot.com', '-worker', '50', '-task-summary-python', '-task-output-stdout', 'all', '-verbose', '-requests-json', '/b/s/w/ir/tmp/t/tmpE8rxQd.json'] env: {} env_prefixes: {'PATH': '/b/s/w/ir/cache/swarming_client'} env_suffixes: {} infra_step: False name: 'dart2js tests_shard_6' nest_level: 0 ok_ret: frozenset([0]) step_test_data: <lambda>(...) trigger_specs: () full environment: BOTO_CONFIG: /b/s/w/ir/tmp/gsutil_task/.boto BUILDBUCKET_EXPERIMENTAL: FALSE CIPD_CACHE_DIR: /b/s/cipd_cache/cache CIPD_PROTOCOL: v2 DEVSHELL_CLIENT_PORT: 37700 DOCKER_CONFIG: /b/s/w/ir/tmp/docker_cfg_task DOCKER_TMPDIR: /b/s/w/ir/tmp/docker_tmp_task GIT_CONFIG_NOSYSTEM: 1 GIT_TERMINAL_PROMPT: 0 HOME: /home/chrome-bot INFRA_GIT_WRAPPER_HOME: /b/s/w/ir/tmp/git_home_task LOGDOG_COORDINATOR_HOST: logs.chromium.org LOGDOG_STREAM_PREFIX: buildbucket/cr-buildbucket.appspot.com/8919945404690615056 LOGDOG_STREAM_PROJECT: dart LOGDOG_STREAM_SERVER_PATH: unix:/b/s/w/ir/tmp/ld.sock LOGNAME: chrome-bot LUCI_CONTEXT: /b/s/w/itJ7JApK/luci_context.491229215 MAC_CHROMIUM_TMPDIR: /b/s/w/ir/tmp/t MAIL: /var/mail/chrome-bot NO_GCE_CHECK: False PATH: /b/s/w/ir/cache/swarming_client:/b/s/w/ir/cipd_bin_packages:/b/s/w/ir/cipd_bin_packages/bin:/b/s/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin PWD: /b/s/w/ir/k PYTHONIOENCODING: UTF-8 PYTHONUNBUFFERED: 1 SHELL: /bin/bash SHLVL: 1 SUDO_COMMAND: /usr/bin/python /b/s/swarming_bot.zip start_bot SUDO_GID: 0 SUDO_UID: 0 SUDO_USER: root SWARMING_BOT_ID: trusty-dart-68765ebb-us-central1-b-rbrn SWARMING_EXTERNAL_BOT_SETUP: 1 SWARMING_HEADLESS: 1 SWARMING_SERVER: https://chromium-swarm.appspot.com SWARMING_TASK_ID: 435fcea6e5769911 TEMP: /b/s/w/ir/tmp/t TEMPDIR: /b/s/w/ir/tmp/t TERM: linux TMP: /b/s/w/ir/tmp/t TMPDIR: /b/s/w/ir/tmp/t USER: chrome-bot USERNAME: chrome-bot VPYTHON_VIRTUALENV_ROOT: /b/s/w/ir/cache/vpython _: /b/s/w/ir/cipd_bin_packages/vpython Set PYTHONPATH: /b/s/w/ir/kitchen-checkout/build/scripts:/b/s/w/ir/kitchen-checkout/build/site_config:/b/s/w/ir/kitchen-checkout/build/third_party:/b/s/w/ir/kitchen-checkout/build/third_party/buildbot_8_4p1:/b/s/w/ir/kitchen-checkout/build/third_party/buildbot_slave_8_4:/b/s/w/ir/kitchen-checkout/build/third_party/coverage-3.7.1:/b/s/w/ir/kitchen-checkout/build/third_party/decorator_3_3_1:/b/s/w/ir/kitchen-checkout/build/third_party/google_api_python_client:/b/s/w/ir/kitchen-checkout/build/third_party/httplib2/python2:/b/s/w/ir/kitchen-checkout/build/third_party/infra_libs:/b/s/w/ir/kitchen-checkout/build/third_party/jinja2:/b/s/w/ir/kitchen-checkout/build/third_party/markupsafe:/b/s/w/ir/kitchen-checkout/build/third_party/oauth2client:/b/s/w/ir/kitchen-checkout/build/third_party/pyasn1:/b/s/w/ir/kitchen-checkout/build/third_party/pyasn1-modules:/b/s/w/ir/kitchen-checkout/build/third_party/python-rsa:/b/s/w/ir/kitchen-checkout/build/third_party/requests_2_10_0:/b/s/w/ir/kitchen-checkout/build/third_party/setuptools-0.6c11:/b/s/w/ir/kitchen-checkout/build/third_party/sqlalchemy_0_7_1:/b/s/w/ir/kitchen-checkout/build/third_party/sqlalchemy_migrate_0_7_1:/b/s/w/ir/kitchen-checkout/build/third_party/tempita_0_5:/b/s/w/ir/kitchen-checkout/build/third_party/twisted_10_2:/b/s/w/ir/kitchen-checkout/build/third_party/uritemplate:/b/s/w/ir/kitchen-checkout/build/third_party/site-packages 2019-03-03 20:46:43,639 - root: [DEBUG] Using task_output_dir: '/b/s/w/ir/tmp/t/tmpI_BDV8' 2019-03-03 20:46:43,639 - root: [WARNING] task_output_dir '/b/s/w/ir/tmp/t/tmpI_BDV8' already exists! 2019-03-03 20:46:43,639 - root: [WARNING] task_output_dir existing content: [] 2019-03-03 20:46:43,639 - root: [INFO] collect_cmd: swarming collect -server https://chromium-swarm.appspot.com -worker 50 -task-summary-python -task-output-stdout all -verbose -requests-json /b/s/w/ir/tmp/t/tmpE8rxQd.json -output-dir /b/s/w/ir/tmp/t/tmpI_BDV8 -task-summary-json /b/s/w/ir/tmp/t/tmppVGFDb.json [D2019-03-03T20:46:43.645459-08:00 29637 0 auth.go:1265] Minting a new token {"key":"luci_ctx/630262b4505303851f840af7589775bdc5549f7552e3d78a75b9ef4b5b8bcc0e", "scopes":"https://www.googleapis.com/auth/userinfo.email"} [D2019-03-03T20:46:43.645525-08:00 29637 0 luci_ctx.go:138] POST http://127.0.0.1:39013/rpc/LuciLocalAuthService.GetOAuthToken {"key":"luci_ctx/630262b4505303851f840af7589775bdc5549f7552e3d78a75b9ef4b5b8bcc0e", "scopes":"https://www.googleapis.com/auth/userinfo.email"} [D2019-03-03T20:46:43.647312-08:00 29637 0 auth.go:1222] Token expires in 14m42.352721397s {"key":"luci_ctx/630262b4505303851f840af7589775bdc5549f7552e3d78a75b9ef4b5b8bcc0e", "scopes":"https://www.googleapis.com/auth/userinfo.email"} 435fd312b5c19e10: exit 0 12529 files remaining... 258 files remaining... INFO: Core dump archiving is activated tools/testing/dart/main.dart:1: Warning: Interpreting this as package URI, 'package:test_dart/main.dart'. Test configuration: dart2js-linux-chrome(architecture: x64, compiler: dart2js, mode: release, runtime: chrome, system: linux, vm-options: [], timeout: null, preview-dart-2, use-sdk) Suites tested: samples, standalone, standalone_2, corelib_2, language_2, vm, benchmark_smoke, utils, lib_2, analyze_library, service, kernel Directory containing tests missing: /b/s/w/ir/runtime/observatory/tests/service Total: 1636 tests * 224 tests will be skipped (195 skipped by design) * 1 tests are expected to be flaky but not crash * 0 tests are expected to flaky crash * 1337 tests are expected to pass * 32 tests are expected to fail that we won't fix * 34 tests are expected to fail that we should fix * 0 tests are expected to crash that we should fix * 0 tests are allowed to timeout * 8 could not be categorized or are in multiple categories FAILED: dart2js-chrome release_x64 language_2/control_flow_collections/for_test Expected: Pass Actual: CompileTimeError Unexpected compile error. --- Command "dart2js" (took 436ms): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_for_test/test.js /b/s/w/ir/tests/language_2/control_flow_collections/for_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2 exit code: 1 stdout: tests/language_2/control_flow_collections/for_test.dart:26:33: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/for_test.dart:29:42: Error: 'i' is already declared in this scope. Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:29:33: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[for (var i in <int>[1, 2]) i, 3, 4]); ^^^ tests/language_2/control_flow_collections/for_test.dart:32:45: Error: 'i' is already declared in this scope. Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:32:36: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[1, for (var i in <int>[2, 3]) i, 4]); ^^^ tests/language_2/control_flow_collections/for_test.dart:35:48: Error: 'i' is already declared in this scope. Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:35:39: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[1, 2, for (var i in <int>[3, 4]) i]); ^^^ tests/language_2/control_flow_collections/for_test.dart:39:25: Error: 'i' is already declared in this scope. <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:39:16: Error: Unexpected token 'for'. <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]); ^^^ tests/language_2/control_flow_collections/for_test.dart:39:48: Error: Unexpected token 'for'. <int>[1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4]); ^^^ tests/language_2/control_flow_collections/for_test.dart:43:22: Error: 'i' is already declared in this scope. <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:43:13: Error: Unexpected token 'for'. <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]); ^^^ tests/language_2/control_flow_collections/for_test.dart:43:52: Error: 'i' is already declared in this scope. <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:43:43: Error: Unexpected token 'for'. <int>[for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i]); ^^^ tests/language_2/control_flow_collections/for_test.dart:47:22: Error: 'i' is already declared in this scope. <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:47:13: Error: Unexpected token 'for'. <int>[for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]]); ^^^ tests/language_2/control_flow_collections/for_test.dart:51:22: Error: 'i' is already declared in this scope. <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:51:52: Error: Unexpected token 'if'. <int>[for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i]); ^^ tests/language_2/control_flow_collections/for_test.dart:55:22: Error: 'i' is already declared in this scope. <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:55:48: Error: Unexpected token 'if'. <int>[for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i]); ^^ tests/language_2/control_flow_collections/for_test.dart:59:22: Error: 'i' is already declared in this scope. <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:59:40: Error: Unexpected token 'for'. <int>[for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j]); ^^^ tests/language_2/control_flow_collections/for_test.dart:62:36: Error: 'i' is already declared in this scope. Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:62:27: Error: Unexpected token 'for'. Expect.listEquals([1], [for (var i = 1; i < 2; i++) [i]].first); ^^^ tests/language_2/control_flow_collections/for_test.dart:63:38: Error: 'i' is already declared in this scope. Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:63:29: Error: Unexpected token 'for'. Expect.mapEquals({1: 1}, [for (var i = 1; i < 2; i++) {i: i}].first); ^^^ tests/language_2/control_flow_collections/for_test.dart:64:35: Error: 'i' is already declared in this scope. Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:64:26: Error: Unexpected token 'for'. Expect.setEquals({1}, [for (var i = 1; i < 2; i++) {i}].first); ^^^ tests/language_2/control_flow_collections/for_test.dart:67:33: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]); ^^^ tests/language_2/control_flow_collections/for_test.dart:70:42: Error: 'n' is already declared in this scope. Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]); ^ tests/language_2/control_flow_collections/for_test.dart:67:42: Info: Previous declaration of 'n'. Expect.listEquals(list, <int>[for (int n in <num>[1, 2, 3, 4]) n]); ^ tests/language_2/control_flow_collections/for_test.dart:70:33: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[for (num n in <num>[1, 2, 3, 4]) n]); ^^^ tests/language_2/control_flow_collections/for_test.dart:73:41: Error: 'i' is already declared in this scope. Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:73:32: Error: Unexpected token 'for'. Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as dynamic; i++) i]); ^^^ tests/language_2/control_flow_collections/for_test.dart:74:41: Error: 'i' is already declared in this scope. Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]); ^ tests/language_2/control_flow_collections/for_test.dart:26:42: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[for (var i in list) i]); ^ tests/language_2/control_flow_collections/for_test.dart:74:32: Error: Unexpected token 'for'. Expect.listEquals([1], <int>[for (var i = 1; (i < 2) as Object; i++) i]); ^^^ tests/language_2/control_flow_collections/for_test.dart:79:36: Error: Unexpected token 'for'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:83:27: Error: 'i' is already declared in this scope. <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:83:18: Error: Unexpected token 'for'. <int, int>{for (var i in <int>[1, 2]) i: i, 3: 3, 4: 4}); ^^^ tests/language_2/control_flow_collections/for_test.dart:87:33: Error: 'i' is already declared in this scope. <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:87:24: Error: Unexpected token 'for'. <int, int>{1: 1, for (var i in <int>[2, 3]) i: i, 4: 4}); ^^^ tests/language_2/control_flow_collections/for_test.dart:91:39: Error: 'i' is already declared in this scope. <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:91:30: Error: Unexpected token 'for'. <int, int>{1: 1, 2: 2, for (var i in <int>[3, 4]) i: i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:96:14: Error: 'i' is already declared in this scope. for (var i in <int>[]) i: i, ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:96:5: Error: Unexpected token 'for'. for (var i in <int>[]) i: i, ^^^ tests/language_2/control_flow_collections/for_test.dart:99:5: Error: Unexpected token 'for'. for (; false;) 9: 9, ^^^ tests/language_2/control_flow_collections/for_test.dart:105:14: Error: 'i' is already declared in this scope. for (var i in <int>[1]) i: i, ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:105:5: Error: Unexpected token 'for'. for (var i in <int>[1]) i: i, ^^^ tests/language_2/control_flow_collections/for_test.dart:107:14: Error: 'i' is already declared in this scope. for (var i = 3; i <= 4; i++) i: i ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:107:5: Error: Unexpected token 'for'. for (var i = 3; i <= 4; i++) i: i ^^^ tests/language_2/control_flow_collections/for_test.dart:112:14: Error: 'i' is already declared in this scope. for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i} ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:112:49: Error: Expected ',' before this. for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i} ^ tests/language_2/control_flow_collections/for_test.dart:112:63: Error: Expected ',' before this. for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i} ^ tests/language_2/control_flow_collections/for_test.dart:112:5: Error: Unexpected token 'for'. for (var i in <int>[0, 2]) ...<int>{1 + i: 1 + i, 2 + i: 2 + i} ^^^ tests/language_2/control_flow_collections/for_test.dart:117:27: Error: 'i' is already declared in this scope. <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:117:57: Error: Unexpected token 'if'. <int, int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i: i}); ^^ tests/language_2/control_flow_collections/for_test.dart:121:27: Error: 'i' is already declared in this scope. <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:121:53: Error: Unexpected token 'if'. <int, int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i: i}); ^^ tests/language_2/control_flow_collections/for_test.dart:125:14: Error: 'i' is already declared in this scope. for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:125:32: Error: Unexpected token 'for'. for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j: i + j ^^^ tests/language_2/control_flow_collections/for_test.dart:129:36: Error: Unexpected token 'for'. Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n}); ^^^ tests/language_2/control_flow_collections/for_test.dart:132:45: Error: 'n' is already declared in this scope. Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n}); ^ tests/language_2/control_flow_collections/for_test.dart:129:45: Info: Previous declaration of 'n'. Expect.mapEquals(map, <int, int>{for (int n in <num>[1, 2, 3, 4]) n: n}); ^ tests/language_2/control_flow_collections/for_test.dart:132:36: Error: Unexpected token 'for'. Expect.mapEquals(map, <int, int>{for (num n in <num>[1, 2, 3, 4]) n: n}); ^^^ tests/language_2/control_flow_collections/for_test.dart:136:27: Error: 'i' is already declared in this scope. <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:136:18: Error: Unexpected token 'for'. <int, int>{for (var i = 1; (i < 2) as dynamic; i++) i: i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:138:27: Error: 'i' is already declared in this scope. <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:79:45: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/for_test.dart:138:18: Error: Unexpected token 'for'. <int, int>{for (var i = 1; (i < 2) as Object; i++) i: i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:135:20: Error: The argument type 'List<int>' can't be assigned to the parameter type 'Map<dynamic, dynamic>'. - 'List' is from 'dart:core'. - 'Map' is from 'dart:core'. Expect.mapEquals([1], ^ tests/language_2/control_flow_collections/for_test.dart:137:20: Error: The argument type 'List<int>' can't be assigned to the parameter type 'Map<dynamic, dynamic>'. - 'List' is from 'dart:core'. - 'Map' is from 'dart:core'. Expect.mapEquals([1], ^ tests/language_2/control_flow_collections/for_test.dart:143:31: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:146:40: Error: 'i' is already declared in this scope. Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:146:31: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{for (var i in <int>[1, 2]) i, 3, 4}); ^^^ tests/language_2/control_flow_collections/for_test.dart:149:43: Error: 'i' is already declared in this scope. Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:149:34: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{1, for (var i in <int>[2, 3]) i, 4}); ^^^ tests/language_2/control_flow_collections/for_test.dart:152:46: Error: 'i' is already declared in this scope. Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:152:37: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{1, 2, for (var i in <int>[3, 4]) i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:156:25: Error: 'i' is already declared in this scope. <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:156:16: Error: Unexpected token 'for'. <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4}); ^^^ tests/language_2/control_flow_collections/for_test.dart:156:48: Error: Unexpected token 'for'. <int>{1, for (var i in <int>[]) i, 2, 3, for (; false;) 9, 4}); ^^^ tests/language_2/control_flow_collections/for_test.dart:160:22: Error: 'i' is already declared in this scope. <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:160:13: Error: Unexpected token 'for'. <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:160:52: Error: 'i' is already declared in this scope. <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:160:43: Error: Unexpected token 'for'. <int>{for (var i in <int>[1]) i, 2, for (var i = 3; i <= 4; i++) i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:164:22: Error: 'i' is already declared in this scope. <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:164:13: Error: Unexpected token 'for'. <int>{for (var i in <int>[0, 2]) ...<int>[1 + i, 2 + i]}); ^^^ tests/language_2/control_flow_collections/for_test.dart:168:22: Error: 'i' is already declared in this scope. <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:168:52: Error: Unexpected token 'if'. <int>{for (var i in <int>[1, 9, 2, 3, 9, 4]) if (i != 9) i}); ^^ tests/language_2/control_flow_collections/for_test.dart:172:22: Error: 'i' is already declared in this scope. <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:172:48: Error: Unexpected token 'if'. <int>{for (var i in <int>[1, -2, 3, -4]) if (i < 0) -i else i}); ^^ tests/language_2/control_flow_collections/for_test.dart:176:22: Error: 'i' is already declared in this scope. <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:176:40: Error: Unexpected token 'for'. <int>{for (var i in <int>[0, 2]) for (var j = 1; j <= 2; j++) i + j}); ^^^ tests/language_2/control_flow_collections/for_test.dart:179:36: Error: 'i' is already declared in this scope. Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:179:27: Error: Unexpected token 'for'. Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first); ^^^ tests/language_2/control_flow_collections/for_test.dart:180:38: Error: 'i' is already declared in this scope. Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:180:29: Error: Unexpected token 'for'. Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first); ^^^ tests/language_2/control_flow_collections/for_test.dart:181:35: Error: 'i' is already declared in this scope. Expect.setEquals({1}, {for (var i = 1; i < 2; i++) {i}}.first); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:181:26: Error: Unexpected token 'for'. Expect.setEquals({1}, {for (var i = 1; i < 2; i++) {i}}.first); ^^^ tests/language_2/control_flow_collections/for_test.dart:184:31: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n}); ^^^ tests/language_2/control_flow_collections/for_test.dart:187:40: Error: 'n' is already declared in this scope. Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n}); ^ tests/language_2/control_flow_collections/for_test.dart:184:40: Info: Previous declaration of 'n'. Expect.setEquals(set, <int>{for (int n in <num>[1, 2, 3, 4]) n}); ^ tests/language_2/control_flow_collections/for_test.dart:187:31: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{for (num n in <num>[1, 2, 3, 4]) n}); ^^^ tests/language_2/control_flow_collections/for_test.dart:190:40: Error: 'i' is already declared in this scope. Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:190:31: Error: Unexpected token 'for'. Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as dynamic; i++) i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:191:40: Error: 'i' is already declared in this scope. Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i}); ^ tests/language_2/control_flow_collections/for_test.dart:143:40: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{for (var i in list) i}); ^ tests/language_2/control_flow_collections/for_test.dart:191:31: Error: Unexpected token 'for'. Expect.setEquals({1}, <int>{for (var i = 1; (i < 2) as Object; i++) i}); ^^^ tests/language_2/control_flow_collections/for_test.dart:179:60: Error: The getter 'first' isn't defined for the class 'Map<dynamic, dynamic>'. - 'Map' is from 'dart:core'. Expect.listEquals([1], {for (var i = 1; i < 2; i++) [i]}.first); ^^^^^ tests/language_2/control_flow_collections/for_test.dart:180:65: Error: The getter 'first' isn't defined for the class 'Map<dynamic, dynamic>'. - 'Map' is from 'dart:core'. Expect.mapEquals({1: 1}, {for (var i = 1; i < 2; i++) {i: i}}.first); ^^^^^ tests/language_2/control_flow_collections/for_test.dart:181:59: Error: The getter 'first' isn't defined for the class 'Map<dynamic, dynamic>'. - 'Map' is from 'dart:core'. Expect.setEquals({1}, {for (var i = 1; i < 2; i++) {i}}.first); ^^^^^ tests/language_2/control_flow_collections/for_test.dart:197:5: Error: Unexpected token 'for'. for (var i in <int>[1, 2, 3]) i: i, ^^^ tests/language_2/control_flow_collections/for_test.dart:198:14: Error: 'i' is already declared in this scope. for (var i = 2; i <= 3; i++) i: i, ^ tests/language_2/control_flow_collections/for_test.dart:197:14: Info: Previous declaration of 'i'. for (var i in <int>[1, 2, 3]) i: i, ^ tests/language_2/control_flow_collections/for_test.dart:198:5: Error: Unexpected token 'for'. for (var i = 2; i <= 3; i++) i: i, ^^^ tests/language_2/control_flow_collections/for_test.dart:204:14: Error: 'i' is already declared in this scope. for (var i in <int>[1, 2, 3]) i, ^ tests/language_2/control_flow_collections/for_test.dart:197:14: Info: Previous declaration of 'i'. for (var i in <int>[1, 2, 3]) i: i, ^ tests/language_2/control_flow_collections/for_test.dart:204:5: Error: Unexpected token 'for'. for (var i in <int>[1, 2, 3]) i, ^^^ tests/language_2/control_flow_collections/for_test.dart:205:14: Error: 'i' is already declared in this scope. for (var i = 2; i <= 3; i++) i, ^ tests/language_2/control_flow_collections/for_test.dart:197:14: Info: Previous declaration of 'i'. for (var i in <int>[1, 2, 3]) i: i, ^ tests/language_2/control_flow_collections/for_test.dart:205:5: Error: Unexpected token 'for'. for (var i = 2; i <= 3; i++) i, ^^^ tests/language_2/control_flow_collections/for_test.dart:222:5: Error: Unexpected token 'for'. for (var i = 0; i < keys.length; i++) keys[i]: values[i] ^^^ tests/language_2/control_flow_collections/for_test.dart:226:38: Error: 'i' is already declared in this scope. var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]}; ^ tests/language_2/control_flow_collections/for_test.dart:222:14: Info: Previous declaration of 'i'. for (var i = 0; i < keys.length; i++) keys[i]: values[i] ^ tests/language_2/control_flow_collections/for_test.dart:226:29: Error: Unexpected token 'for'. var set = <Equality>{e1a, for (var i = 0; i < keys.length; i++) keys[i]}; ^^^ tests/language_2/control_flow_collections/for_test.dart:233:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>[for (; nonBool;) 1]); ^^^ tests/language_2/control_flow_collections/for_test.dart:234:43: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int, int>{for (; nonBool;) 1: 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:235:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>{for (; nonBool;) 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:239:43: Error: Unexpected token 'for'. Expect.throwsAssertionError(() => <int>[for (; nullBool;) 1]); ^^^ tests/language_2/control_flow_collections/for_test.dart:240:48: Error: Unexpected token 'for'. Expect.throwsAssertionError(() => <int, int>{for (; nullBool;) 1: 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:241:43: Error: Unexpected token 'for'. Expect.throwsAssertionError(() => <int>{for (; nullBool;) 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:245:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>[for (int i = nonInt; false;) 1]); ^^^ tests/language_2/control_flow_collections/for_test.dart:246:43: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int, int>{for (int i = nonInt; false;) 1: 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:247:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>{for (int i = nonInt; false;) 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:251:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>[for (int i in nonIterable) 1]); ^^^ tests/language_2/control_flow_collections/for_test.dart:252:43: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int, int>{for (int i in nonIterable) 1: 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:253:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>{for (int i in nonIterable) 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:257:46: Error: Unexpected token 'for'. Expect.throwsNoSuchMethodError(() => <int>[for (var i in nullIterable) 1]); ^^^ tests/language_2/control_flow_collections/for_test.dart:259:24: Error: Unexpected token 'for'. () => <int, int>{for (var i in nullIterable) 1: 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:260:46: Error: Unexpected token 'for'. Expect.throwsNoSuchMethodError(() => <int>{for (var i in nullIterable) 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:263:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>[for (var i = 0; i < 1; i++) nonInt]); ^^^ tests/language_2/control_flow_collections/for_test.dart:265:24: Error: Unexpected token 'for'. () => <int, int>{for (var i = 0; i < 1; i++) nonInt: 1}); ^^^ tests/language_2/control_flow_collections/for_test.dart:267:24: Error: Unexpected token 'for'. () => <int, int>{for (var i = 0; i < 1; i++) 1: nonInt}); ^^^ tests/language_2/control_flow_collections/for_test.dart:268:38: Error: Unexpected token 'for'. Expect.throwsCastError(() => <int>{for (var i = 0; i < 1; i++) nonInt}); ^^^ Error: Compilation failed. --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration language_2/control_flow_collections/for_test FAILED: dart2js-chrome release_x64 language_2/control_flow_collections/if_test Expected: Pass Actual: CompileTimeError Unexpected compile error. --- Command "dart2js" (took 513ms): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_test/test.js /b/s/w/ir/tests/language_2/control_flow_collections/if_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2 exit code: 1 stdout: tests/language_2/control_flow_collections/if_test.dart:27:36: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[1, if (true) 2, 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:30:36: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[1, if (false) 9, 2, 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:33:36: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[1, if (false) 9 else 2, 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:36:32: Error: Unexpected token 'if'. Expect.listEquals([1], <int>[if (true) 1]); ^^ tests/language_2/control_flow_collections/if_test.dart:39:33: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[if (true) 1, 2, 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:42:36: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[1, if (true) 2, 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:45:39: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[1, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:49:13: Error: Unexpected token 'if'. <int>[if (true) 1, if (false) 9, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:49:26: Error: Unexpected token 'if'. <int>[if (true) 1, if (false) 9, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:49:43: Error: Unexpected token 'if'. <int>[if (true) 1, if (false) 9, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_test.dart:52:37: Error: Unexpected token 'if'. Expect.listEquals(<int>[1], <int>[if (true as dynamic) 1]); ^^ tests/language_2/control_flow_collections/if_test.dart:53:37: Error: Unexpected token 'if'. Expect.listEquals(<int>[1], <int>[if (true as Object) 1]); ^^ tests/language_2/control_flow_collections/if_test.dart:56:27: Error: Unexpected token 'if'. Expect.listEquals([1], [if (true) [1]].first); ^^ tests/language_2/control_flow_collections/if_test.dart:57:29: Error: Unexpected token 'if'. Expect.mapEquals({1: 1}, [if (true) {1: 1}].first); ^^ tests/language_2/control_flow_collections/if_test.dart:58:26: Error: Unexpected token 'if'. Expect.setEquals({1}, [if (true) {1}].first); ^^ tests/language_2/control_flow_collections/if_test.dart:62:13: Error: Unexpected token 'if'. <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]); ^^ tests/language_2/control_flow_collections/if_test.dart:62:39: Error: Unexpected token 'if'. <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]); ^^ tests/language_2/control_flow_collections/if_test.dart:65:42: Error: Unexpected token 'if'. Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]); ^^ tests/language_2/control_flow_collections/if_test.dart:65:65: Error: Unexpected token 'if'. Expect.listEquals([1], <int>[if (true) if (true) 1, if (true) if (false) 9]); ^^ tests/language_2/control_flow_collections/if_test.dart:68:50: Error: Unexpected token 'if'. Expect.listEquals([1], <int>[if (false) 9 else if (true) 1]); ^^ tests/language_2/control_flow_collections/if_test.dart:71:43: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[if (true) for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/if_test.dart:74:33: Error: Unexpected token 'if'. Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]); ^^ tests/language_2/control_flow_collections/if_test.dart:74:46: Error: Expected ',' before this. Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/if_test.dart:74:55: Error: 'i' is already declared in this scope. Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]); ^ tests/language_2/control_flow_collections/if_test.dart:71:52: Info: Previous declaration of 'i'. Expect.listEquals(list, <int>[if (true) for (var i in list) i]); ^ tests/language_2/control_flow_collections/if_test.dart:74:46: Error: Unexpected token 'for'. Expect.listEquals(list, <int>[if (false) 9 for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/if_test.dart:79:42: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:82:42: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:85:42: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:88:49: Error: Unexpected token 'if'. Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true) 1: 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:91:36: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{if (true) 1: 1, 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:94:42: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{1: 1, if (true) 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:97:48: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{1: 1, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:101:18: Error: Unexpected token 'if'. <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:101:34: Error: Unexpected token 'if'. <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:101:57: Error: Unexpected token 'if'. <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:104:49: Error: Unexpected token 'if'. Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as dynamic) 1: 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:105:49: Error: Unexpected token 'if'. Expect.mapEquals(<int, int>{1: 1}, <int, int>{if (true as Object) 1: 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:109:5: Error: Unexpected token 'if'. if (true) ...<int, int>{1: 1, 2: 2}, ^^ tests/language_2/control_flow_collections/if_test.dart:110:5: Error: Unexpected token 'if'. if (false) 9: 9 else ...<int, int>{3: 3} ^^ tests/language_2/control_flow_collections/if_test.dart:115:28: Error: Unexpected token 'if'. <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9}); ^^ tests/language_2/control_flow_collections/if_test.dart:115:54: Error: Unexpected token 'if'. <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9}); ^^ tests/language_2/control_flow_collections/if_test.dart:119:39: Error: Unexpected token 'if'. <int, int>{if (false) 9: 9 else if (true) 1: 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:122:46: Error: Unexpected token 'for'. Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/if_test.dart:125:36: Error: Unexpected token 'if'. Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^^ tests/language_2/control_flow_collections/if_test.dart:125:52: Error: Expected ',' before this. Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/if_test.dart:125:61: Error: 'i' is already declared in this scope. Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_test.dart:122:55: Info: Previous declaration of 'i'. Expect.mapEquals(map, <int, int>{if (true) for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_test.dart:125:52: Error: Unexpected token 'for'. Expect.mapEquals(map, <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/if_test.dart:130:34: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, if (true) 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:133:34: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, if (false) 9, 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:136:34: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, if (false) 9 else 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:139:31: Error: Unexpected token 'if'. Expect.setEquals({1}, <int>{if (true) 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:142:31: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{if (true) 1, 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:145:34: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, if (true) 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:148:37: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:152:13: Error: Unexpected token 'if'. <int>{if (true) 1, if (false) 9, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:152:26: Error: Unexpected token 'if'. <int>{if (true) 1, if (false) 9, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:152:43: Error: Unexpected token 'if'. <int>{if (true) 1, if (false) 9, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:155:31: Error: Unexpected token 'if'. Expect.setEquals({1}, <int>{if (true as dynamic) 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:156:31: Error: Unexpected token 'if'. Expect.setEquals({1}, <int>{if (true as Object) 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:159:27: Error: Unexpected token 'if'. Expect.listEquals([1], {if (true) [1]}.first); ^^ tests/language_2/control_flow_collections/if_test.dart:160:29: Error: Unexpected token 'if'. Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first); ^^ tests/language_2/control_flow_collections/if_test.dart:161:26: Error: Unexpected token 'if'. Expect.setEquals({1}, {if (true) {1}}.first); ^^ tests/language_2/control_flow_collections/if_test.dart:165:13: Error: Unexpected token 'if'. <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]}); ^^ tests/language_2/control_flow_collections/if_test.dart:165:39: Error: Unexpected token 'if'. <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]}); ^^ tests/language_2/control_flow_collections/if_test.dart:168:41: Error: Unexpected token 'if'. Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9}); ^^ tests/language_2/control_flow_collections/if_test.dart:168:64: Error: Unexpected token 'if'. Expect.setEquals({1}, <int>{if (true) if (true) 1, if (true) if (false) 9}); ^^ tests/language_2/control_flow_collections/if_test.dart:171:49: Error: Unexpected token 'if'. Expect.setEquals({1}, <int>{if (false) 9 else if (true) 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:174:41: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{if (true) for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/if_test.dart:177:31: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i}); ^^ tests/language_2/control_flow_collections/if_test.dart:177:44: Error: Expected ',' before this. Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/if_test.dart:177:53: Error: 'i' is already declared in this scope. Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i}); ^ tests/language_2/control_flow_collections/if_test.dart:174:50: Info: Previous declaration of 'i'. Expect.setEquals(set, <int>{if (true) for (var i in list) i}); ^ tests/language_2/control_flow_collections/if_test.dart:177:44: Error: Unexpected token 'for'. Expect.setEquals(set, <int>{if (false) 9 for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/if_test.dart:159:42: Error: The getter 'first' isn't defined for the class 'Map<dynamic, dynamic>'. - 'Map' is from 'dart:core'. Expect.listEquals([1], {if (true) [1]}.first); ^^^^^ tests/language_2/control_flow_collections/if_test.dart:160:47: Error: The getter 'first' isn't defined for the class 'Map<dynamic, dynamic>'. - 'Map' is from 'dart:core'. Expect.mapEquals({1: 1}, {if (true) {1: 1}}.first); ^^^^^ tests/language_2/control_flow_collections/if_test.dart:161:41: Error: The getter 'first' isn't defined for the class 'Map<dynamic, dynamic>'. - 'Map' is from 'dart:core'. Expect.setEquals({1}, {if (true) {1}}.first); ^^^^^ tests/language_2/control_flow_collections/if_test.dart:188:27: Error: Unexpected token 'if'. Expect.listEquals([1], [if (true) log(1), if (false) log(2)]); ^^ tests/language_2/control_flow_collections/if_test.dart:188:45: Error: Unexpected token 'if'. Expect.listEquals([1], [if (true) log(1), if (false) log(2)]); ^^ tests/language_2/control_flow_collections/if_test.dart:194:8: Error: Unexpected token 'if'. [if (true) log(1) else log(2), if (false) log(3) else log(4)]); ^^ tests/language_2/control_flow_collections/if_test.dart:194:38: Error: Unexpected token 'if'. [if (true) log(1) else log(2), if (false) log(3) else log(4)]); ^^ tests/language_2/control_flow_collections/if_test.dart:201:5: Error: Unexpected token 'if'. if (true) 1: 1, ^^ tests/language_2/control_flow_collections/if_test.dart:202:5: Error: Unexpected token 'if'. if (false) 9: 9 else 2: 2, ^^ tests/language_2/control_flow_collections/if_test.dart:206:34: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:206:47: Error: Unexpected token 'if'. Expect.setEquals(set, <int>{1, if (true) 1, if (false) 9 else 2, 2, 3}); ^^ tests/language_2/control_flow_collections/if_test.dart:218:5: Error: Unexpected token 'if'. if (true) e1b: 0, ^^ tests/language_2/control_flow_collections/if_test.dart:219:5: Error: Unexpected token 'if'. if (true) e2a: 0, ^^ tests/language_2/control_flow_collections/if_test.dart:220:5: Error: Unexpected token 'if'. if (true) e2b: 0 ^^ tests/language_2/control_flow_collections/if_test.dart:226:5: Error: Unexpected token 'if'. if (true) e1b, ^^ tests/language_2/control_flow_collections/if_test.dart:227:5: Error: Unexpected token 'if'. if (true) e2a, ^^ tests/language_2/control_flow_collections/if_test.dart:228:5: Error: Unexpected token 'if'. if (true) e2b ^^ tests/language_2/control_flow_collections/if_test.dart:235:38: Error: Unexpected token 'if'. Expect.throwsCastError(() => <int>[if (nonBool) 1]); ^^ tests/language_2/control_flow_collections/if_test.dart:236:43: Error: Unexpected token 'if'. Expect.throwsCastError(() => <int, int>{if (nonBool) 1: 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:237:38: Error: Unexpected token 'if'. Expect.throwsCastError(() => <int>{if (nonBool) 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:240:43: Error: Unexpected token 'if'. Expect.throwsAssertionError(() => <int>[if (nullBool) 1]); ^^ tests/language_2/control_flow_collections/if_test.dart:241:48: Error: Unexpected token 'if'. Expect.throwsAssertionError(() => <int, int>{if (nullBool) 1: 1}); ^^ tests/language_2/control_flow_collections/if_test.dart:242:43: Error: Unexpected token 'if'. Expect.throwsAssertionError(() => <int>{if (nullBool) 1}); ^^ Error: Compilation failed. --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration language_2/control_flow_collections/if_test FAILED: dart2js-chrome release_x64 language_2/control_flow_collections/map_set_ambiguity_test Expected: Pass Actual: CompileTimeError Unexpected compile error. --- Command "dart2js" (took 452ms): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_map_set_ambiguity_test/test.js /b/s/w/ir/tests/language_2/control_flow_collections/map_set_ambiguity_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2 exit code: 1 stdout: tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:28:26: Error: Unexpected token 'if'. expectMapOf<int, int>({if (true) ...map}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:29:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...set}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:31:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...iterable}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:32:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...customSet}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:33:26: Error: Unexpected token 'if'. expectMapOf<int, int>({if (true) ...customMap}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:35:26: Error: Unexpected token 'if'. expectMapOf<int, int>({if (true) ...map else ...map}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:37:34: Error: Unexpected token 'if'. expectMapOf<dynamic, dynamic>({if (true) ...map else ...dyn}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:40:26: Error: Unexpected token 'if'. expectMapOf<int, int>({if (true) ...map else ...customMap}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:42:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...set else ...set}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:43:25: Error: Unexpected token 'if'. expectSetOf<dynamic>({if (true) ...set else ...dyn}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:44:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...set else ...iterable}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:45:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...set else ...customSet}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:49:25: Error: Unexpected token 'if'. expectSetOf<dynamic>({if (true) ...dyn else ...iterable}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:50:25: Error: Unexpected token 'if'. expectSetOf<dynamic>({if (true) ...dyn else ...customSet}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:51:34: Error: Unexpected token 'if'. expectMapOf<dynamic, dynamic>({if (true) ...dyn else ...customMap}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:53:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...iterable else ...iterable}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:54:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...iterable else ...customSet}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:57:21: Error: Unexpected token 'if'. expectSetOf<int>({if (true) ...customSet else ...customSet}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:60:26: Error: Unexpected token 'if'. expectMapOf<int, int>({if (true) ...customMap else ...customMap}); ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:64:26: Error: Unexpected token 'for'. expectMapOf<int, int>({for (; false;) ...map}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:65:21: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:67:21: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:68:21: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:69:26: Error: Unexpected token 'for'. expectMapOf<int, int>({for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:26: Error: Unexpected token 'for'. expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:71:49: Error: Unexpected token 'for'. expectMapOf<int, int>({for (; false;) ...map, for (; false;) ...map}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:8: Error: Unexpected token 'for'. {for (; false;) ...map, for (; false;) ...dyn}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:74:31: Error: Unexpected token 'for'. {for (; false;) ...map, for (; false;) ...dyn}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:8: Error: Unexpected token 'for'. {for (; false;) ...map, for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:78:31: Error: Unexpected token 'for'. {for (; false;) ...map, for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:21: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set, for (; false;) ...set}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:80:44: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set, for (; false;) ...set}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:25: Error: Unexpected token 'for'. expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:81:48: Error: Unexpected token 'for'. expectSetOf<dynamic>({for (; false;) ...set, for (; false;) ...dyn}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:21: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:82:44: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set, for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:21: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:83:44: Error: Unexpected token 'for'. expectSetOf<int>({for (; false;) ...set, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:8: Error: Unexpected token 'for'. {for (; false;) ...dyn, for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:88:31: Error: Unexpected token 'for'. {for (; false;) ...dyn, for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:8: Error: Unexpected token 'for'. {for (; false;) ...dyn, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:90:31: Error: Unexpected token 'for'. {for (; false;) ...dyn, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:8: Error: Unexpected token 'for'. {for (; false;) ...dyn, for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:92:31: Error: Unexpected token 'for'. {for (; false;) ...dyn, for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:8: Error: Unexpected token 'for'. {for (; false;) ...iterable, for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:95:36: Error: Unexpected token 'for'. {for (; false;) ...iterable, for (; false;) ...iterable}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:8: Error: Unexpected token 'for'. {for (; false;) ...iterable, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:97:36: Error: Unexpected token 'for'. {for (; false;) ...iterable, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:8: Error: Unexpected token 'for'. {for (; false;) ...customSet, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:102:37: Error: Unexpected token 'for'. {for (; false;) ...customSet, for (; false;) ...customSet}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:8: Error: Unexpected token 'for'. {for (; false;) ...customMap, for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:107:37: Error: Unexpected token 'for'. {for (; false;) ...customMap, for (; false;) ...customMap}); ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:114:24: Error: Unexpected token 'if'. Map<int, int> map = {if (true) ...untypedMap}; ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:115:19: Error: Unexpected token 'if'. Set<int> set = {if (true) ...untypedIterable}; ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:116:29: Error: Unexpected token 'if'. Iterable<int> iterable = {if (true) ...untypedIterable}; ^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:122:10: Error: Unexpected token 'for'. map = {for (; false;) ...untypedMap}; ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:123:10: Error: Unexpected token 'for'. set = {for (; false;) ...untypedIterable}; ^^^ tests/language_2/control_flow_collections/map_set_ambiguity_test.dart:124:15: Error: Unexpected token 'for'. iterable = {for (; false;) ...untypedIterable}; ^^^ Error: Compilation failed. --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration language_2/control_flow_collections/map_set_ambiguity_test FAILED: dart2js-chrome release_x64 language_2/control_flow_collections/if_const_test Expected: Pass Actual: CompileTimeError Unexpected compile error. --- Command "dart2js" (took 677ms): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_control_flow_collections_if_const_test/test.js /b/s/w/ir/tests/language_2/control_flow_collections/if_const_test.dart --enable-experiment=set-literals,control-flow-collections,spread-collections --preview-dart-2 exit code: 1 stdout: tests/language_2/control_flow_collections/if_const_test.dart:232:19: Error: Can't find ')' to match '('. Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt}; ^ tests/language_2/control_flow_collections/if_const_test.dart:30:41: Error: Unexpected token 'if'. Expect.identical(list, const <int>[1, if (true) 2, 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:33:41: Error: Unexpected token 'if'. Expect.identical(list, const <int>[1, if (false) 9, 2, 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:36:41: Error: Unexpected token 'if'. Expect.identical(list, const <int>[1, if (false) 9 else 2, 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:39:43: Error: Unexpected token 'if'. Expect.identical(const [1], const <int>[if (true) 1]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:42:38: Error: Unexpected token 'if'. Expect.identical(list, const <int>[if (true) 1, 2, 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:45:41: Error: Unexpected token 'if'. Expect.identical(list, const <int>[1, if (true) 2, 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:48:44: Error: Unexpected token 'if'. Expect.identical(list, const <int>[1, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:52:19: Error: Unexpected token 'if'. const <int>[if (true) 1, if (false) 9, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:52:32: Error: Unexpected token 'if'. const <int>[if (true) 1, if (false) 9, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:52:49: Error: Unexpected token 'if'. const <int>[if (true) 1, if (false) 9, 2, if (true) 3]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:55:43: Error: Unexpected token 'if'. Expect.identical(const [1], const <int>[if (dynamicTrue) 1]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:56:43: Error: Unexpected token 'if'. Expect.identical(const [1], const <int>[if (objectTrue) 1]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:59:38: Error: Unexpected token 'if'. Expect.identical(const [1], const [if (true) [1]].first); ^^ tests/language_2/control_flow_collections/if_const_test.dart:60:41: Error: Unexpected token 'if'. Expect.identical(const {1: 1}, const [if (true) {1: 1}].first); ^^ tests/language_2/control_flow_collections/if_const_test.dart:61:38: Error: Unexpected token 'if'. Expect.identical(const {1}, const [if (true) {1}].first); ^^ tests/language_2/control_flow_collections/if_const_test.dart:65:19: Error: Unexpected token 'if'. const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:65:45: Error: Unexpected token 'if'. const <int>[if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:69:29: Error: Unexpected token 'if'. const <int>[if (true) if (true) 1, if (true) if (false) 9]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:69:52: Error: Unexpected token 'if'. const <int>[if (true) if (true) 1, if (true) if (false) 9]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:72:61: Error: Unexpected token 'if'. Expect.identical(const [1], const <int>[if (false) 9 else if (true) 1]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:75:68: Error: Not a constant expression. Expect.identical(list, const <int>[if (true) for (var i in list) i]); ^ tests/language_2/control_flow_collections/if_const_test.dart:75:48: Error: Unexpected token 'for'. Expect.identical(list, const <int>[if (true) for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:78:38: Error: Unexpected token 'if'. Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Expected ',' before this. Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:78:60: Error: 'i' is already declared in this scope. Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]); ^ tests/language_2/control_flow_collections/if_const_test.dart:75:57: Info: Previous declaration of 'i'. Expect.identical(list, const <int>[if (true) for (var i in list) i]); ^ tests/language_2/control_flow_collections/if_const_test.dart:78:71: Error: Not a constant expression. Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]); ^ tests/language_2/control_flow_collections/if_const_test.dart:78:51: Error: Unexpected token 'for'. Expect.identical(list, const <int>[if (false) 9 for (var i in list) i]); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:83:48: Error: Unexpected token 'if'. Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:86:48: Error: Unexpected token 'if'. Expect.identical(map, const <int, int>{1: 1, if (false) 9: 9, 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:90:30: Error: Unexpected token 'if'. const <int, int>{1: 1, if (false) 9: 9 else 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:93:51: Error: Unexpected token 'if'. Expect.identical(const {1: 1}, const <int, int>{if (true) 1: 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:96:42: Error: Unexpected token 'if'. Expect.identical(map, const <int, int>{if (true) 1: 1, 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:99:48: Error: Unexpected token 'if'. Expect.identical(map, const <int, int>{1: 1, if (true) 2: 2, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:102:54: Error: Unexpected token 'if'. Expect.identical(map, const <int, int>{1: 1, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:106:24: Error: Unexpected token 'if'. const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:106:40: Error: Unexpected token 'if'. const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:106:63: Error: Unexpected token 'if'. const <int, int>{if (true) 1: 1, if (false) 9: 9, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:109:51: Error: Unexpected token 'if'. Expect.identical(const {1: 1}, const <int, int>{if (dynamicTrue) 1: 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:110:51: Error: Unexpected token 'if'. Expect.identical(const {1: 1}, const <int, int>{if (objectTrue) 1: 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:114:5: Error: Unexpected token 'if'. if (true) ...<int, int>{1: 1, 2: 2}, ^^ tests/language_2/control_flow_collections/if_const_test.dart:115:5: Error: Unexpected token 'if'. if (false) 9: 9 else ...<int, int>{3: 3} ^^ tests/language_2/control_flow_collections/if_const_test.dart:120:34: Error: Unexpected token 'if'. const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:120:60: Error: Unexpected token 'if'. const <int, int>{if (true) if (true) 1: 1, if (true) if (false) 9: 9}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:124:45: Error: Unexpected token 'if'. const <int, int>{if (false) 9: 9 else if (true) 1: 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:127:72: Error: Not a constant expression. Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:127:75: Error: Not a constant expression. Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:127:52: Error: Unexpected token 'for'. Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:131:24: Error: Unexpected token 'if'. const <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Expected ',' before this. const <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:131:49: Error: 'i' is already declared in this scope. const <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:127:61: Info: Previous declaration of 'i'. Expect.identical(map, const <int, int>{if (true) for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:131:60: Error: Not a constant expression. const <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:131:63: Error: Not a constant expression. const <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:131:40: Error: Unexpected token 'for'. const <int, int>{if (false) 9: 9 for (var i in list) i: i}); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:136:40: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, if (true) 2, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:139:40: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, if (false) 9, 2, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:142:40: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, if (false) 9 else 2, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:145:37: Error: Unexpected token 'if'. Expect.identical({1}, const <int>{if (true) 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:148:37: Error: Unexpected token 'if'. Expect.identical(set, const <int>{if (true) 1, 2, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:151:40: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, if (true) 2, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:154:43: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:158:19: Error: Unexpected token 'if'. const <int>{if (true) 1, if (false) 9, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:158:32: Error: Unexpected token 'if'. const <int>{if (true) 1, if (false) 9, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:158:49: Error: Unexpected token 'if'. const <int>{if (true) 1, if (false) 9, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:161:48: Error: Unexpected token 'if'. Expect.identical(const <int>{1}, const <int>{if (dynamicTrue) 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:162:48: Error: Unexpected token 'if'. Expect.identical(const <int>{1}, const <int>{if (objectTrue) 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:165:48: Error: Unexpected token 'if'. Expect.identical(const <int>[1], const <int>{if (true) [1]}.first); ^^ tests/language_2/control_flow_collections/if_const_test.dart:166:56: Error: Unexpected token 'if'. Expect.identical(const <int, int>{1: 1}, const <int>{if (true) {1: 1}}.first); ^^ tests/language_2/control_flow_collections/if_const_test.dart:167:48: Error: Unexpected token 'if'. Expect.identical(const <int>{1}, const <int>{if (true) {1}}.first); ^^ tests/language_2/control_flow_collections/if_const_test.dart:171:19: Error: Unexpected token 'if'. const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:171:45: Error: Unexpected token 'if'. const <int>{if (true) ...<int>[1, 2], if (false) 9 else ...<int>[3]}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:175:29: Error: Unexpected token 'if'. const <int>{if (true) if (true) 1, if (true) if (false) 9}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:175:52: Error: Unexpected token 'if'. const <int>{if (true) if (true) 1, if (true) if (false) 9}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:178:66: Error: Unexpected token 'if'. Expect.identical(const <int>{1}, const <int>{if (false) 9 else if (true) 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:181:67: Error: Not a constant expression. Expect.identical(set, const <int>{if (true) for (var i in list) i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:181:47: Error: Unexpected token 'for'. Expect.identical(set, const <int>{if (true) for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:184:37: Error: Unexpected token 'if'. Expect.identical(set, const <int>{if (false) 9 for (var i in list) i}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Expected ',' before this. Expect.identical(set, const <int>{if (false) 9 for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:184:59: Error: 'i' is already declared in this scope. Expect.identical(set, const <int>{if (false) 9 for (var i in list) i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:181:56: Info: Previous declaration of 'i'. Expect.identical(set, const <int>{if (true) for (var i in list) i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:184:70: Error: Not a constant expression. Expect.identical(set, const <int>{if (false) 9 for (var i in list) i}); ^ tests/language_2/control_flow_collections/if_const_test.dart:184:50: Error: Unexpected token 'for'. Expect.identical(set, const <int>{if (false) 9 for (var i in list) i}); ^^^ tests/language_2/control_flow_collections/if_const_test.dart:195:19: Error: Unexpected token 'if'. const <int>[if (true) 1, if (false) nil + 1]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:195:32: Error: Unexpected token 'if'. const <int>[if (true) 1, if (false) nil + 1]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:197:19: Error: Unexpected token 'if'. const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:197:45: Error: Unexpected token 'if'. const <int>[if (true) 1 else nil + 1, if (false) nil + 1 else 2]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:200:5: Error: Unexpected token 'if'. if (true) 1: 1, ^^ tests/language_2/control_flow_collections/if_const_test.dart:201:5: Error: Unexpected token 'if'. if (false) nil + 1: 9, ^^ tests/language_2/control_flow_collections/if_const_test.dart:202:5: Error: Unexpected token 'if'. if (false) 9: nil + 1 ^^ tests/language_2/control_flow_collections/if_const_test.dart:205:5: Error: Unexpected token 'if'. if (true) 1: 1 else nil + 1: 9, ^^ tests/language_2/control_flow_collections/if_const_test.dart:206:5: Error: Unexpected token 'if'. if (false) 9: nil + 1 else 2: 2 ^^ tests/language_2/control_flow_collections/if_const_test.dart:210:19: Error: Unexpected token 'if'. const <int>{if (true) 1, if (false) nil + 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:210:32: Error: Unexpected token 'if'. const <int>{if (true) 1, if (false) nil + 1}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:212:19: Error: Unexpected token 'if'. const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:212:45: Error: Unexpected token 'if'. const <int>{if (true) 1 else nil + 1, if (false) nil + 1 else 2}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:218:48: Error: Unexpected token 'if'. Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:218:61: Error: Unexpected token 'if'. Expect.identical(const <int>[1], const <int>[if (true) 1, if (false) nonInt]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:220:19: Error: Unexpected token 'if'. const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:220:44: Error: Unexpected token 'if'. const <int>[if (true) 1 else nonInt, if (false) nonInt else 2]); ^^ tests/language_2/control_flow_collections/if_const_test.dart:222:34: Error: Expected ',' before this. Expect.identical(const <int>{1: 1}, const <int, int>{ ^ tests/language_2/control_flow_collections/if_const_test.dart:223:5: Error: Unexpected token 'if'. if (true) 1: 1, ^^ tests/language_2/control_flow_collections/if_const_test.dart:224:5: Error: Unexpected token 'if'. if (false) nonInt: 9, ^^ tests/language_2/control_flow_collections/if_const_test.dart:225:5: Error: Unexpected token 'if'. if (false) 9: nonInt ^^ tests/language_2/control_flow_collections/if_const_test.dart:228:5: Error: Unexpected token 'if'. if (true) 1: 1 else nonInt: 9, ^^ tests/language_2/control_flow_collections/if_const_test.dart:229:5: Error: Unexpected token 'if'. if (false) 9: nonInt else 2: 2 ^^ tests/language_2/control_flow_collections/if_const_test.dart:232:48: Error: Unexpected token 'if'. Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt}; ^^ tests/language_2/control_flow_collections/if_const_test.dart:232:61: Error: Unexpected token 'if'. Expect.identical(const <int>{1}, const <int>{if (true) 1, if (false) nonInt}; ^^ tests/language_2/control_flow_collections/if_const_test.dart:234:19: Error: Unexpected token 'if'. const <int>{if (true) 1 else nonInt, if (false) nonInt else 2}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:234:44: Error: Unexpected token 'if'. const <int>{if (true) 1 else nonInt, if (false) nonInt else 2}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:241:5: Error: Unexpected token 'if'. if (false) 1: 1, ^^ tests/language_2/control_flow_collections/if_const_test.dart:242:5: Error: Unexpected token 'if'. if (true) 2: 2 else 3: 3, ^^ tests/language_2/control_flow_collections/if_const_test.dart:246:40: Error: Unexpected token 'if'. Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:246:54: Error: Unexpected token 'if'. Expect.setEquals(set, const <int>{1, if (false) 1, if (true) 2 else 3, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:252:30: Error: Unexpected token 'if'. const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:252:46: Error: Unexpected token 'if'. const <int, int>{1: 1, if (true) 2: 2, if (false) 9: 9, 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:254:24: Error: Unexpected token 'if'. const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:254:57: Error: Unexpected token 'if'. const <int, int>{if (false) 9: 9 else 1: 1, 2: 2, if (true) 3: 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:256:40: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:256:53: Error: Unexpected token 'if'. Expect.identical(set, const <int>{1, if (true) 2, if (false) 9, 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:257:37: Error: Unexpected token 'if'. Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:257:61: Error: Unexpected token 'if'. Expect.identical(set, const <int>{if (false) 9 else 1, 2, if (true) 3}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:260:51: Error: Unexpected token 'if'. Expect.notIdentical(map, const <int, int>{1: 1, if (true) 3: 3, 2: 2}); ^^ tests/language_2/control_flow_collections/if_const_test.dart:261:43: Error: Unexpected token 'if'. Expect.notIdentical(set, const <int>{1, if (true) 3, 2}); ^^ Error: Compilation failed. --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration language_2/control_flow_collections/if_const_test FAILED: dart2js-chrome release_x64 language_2/spread_collections/syntax_test Expected: Pass Actual: CompileTimeError Unexpected compile error. --- Command "dart2js" (took 345ms): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_language_2_spread_collections_syntax_test/test.js /b/s/w/ir/tests/language_2/spread_collections/syntax_test.dart --enable-experiment=set-literals,spread-collections --preview-dart-2 exit code: 1 stdout: tests/language_2/spread_collections/syntax_test.dart:14:28: Error: The argument type 'Map<dynamic, dynamic>' can't be assigned to the parameter type 'Iterable<dynamic>'. - 'Map' is from 'dart:core'. - 'Iterable' is from 'dart:core'. Expect.setEquals({1, 2}, {...{1, 2},}); ^ tests/language_2/spread_collections/syntax_test.dart:22:37: Error: Unexpected type 'Null' of a spread. Expected 'dynamic' or an Iterable. Expect.listEquals([1, 3], [1, ...?a = null, 3]); ^ Error: Compilation failed. --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration language_2/spread_collections/syntax_test FAILED: dart2js-chrome release_x64 lib_2/html/custom/entered_left_view_test/shadow_dom/shadow_dom Expected: Slow Actual: Pass --- Command "dart2js" (took 06.000716s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_entered_left_view_test/entered_left_view_test.js /b/s/w/ir/tests/lib_2/html/custom/entered_left_view_test.dart --preview-dart-2 exit code: 0 stdout: Compiled 7,712,362 characters Dart to 656,378 characters JavaScript in 6.71 seconds Dart file (/b/s/w/ir/tests/lib_2/html/custom/entered_left_view_test.dart) compiled to JavaScript: out/ReleaseX64/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_entered_left_view_test/entered_left_view_test.js --- Command "chrome" (took 265ms): /b/s/w/ir/tools/sdks/dart-sdk/bin/dart tools/testing/dart/launch_browser.dart chrome http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_entered_left_view_test/test.html?crossOriginPort=36688&group=shadow_dom Events: - debug "test_controller.js started" - debug "Sending events to driver page (isFirstMessage = true, isStatusUpdate = true, isDone = false)" - print "dart-calling-main" - print "dart-main-done" - { type: message_received value: dart-calling-main timestamp: 0.132 } - { type: message_received value: unittest-suite-wait-for-done timestamp: 0.133 } - { type: message_received value: dart-main-done timestamp: 0.133 } - { type: message_received value: unittest-suite-done timestamp: 0.185 } - debug "Sending events to driver page (isFirstMessage = false, isStatusUpdate = false, isDone = true)" - dom <head><style>body {transition: opacity ease-in 0.2s; } body[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } </style> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="dart.unittest" content="full-stack-traces"> <title> entered_left_view_test </title> <style> .unittest-table { font-family:monospace; border:1px; } .unittest-pass { background: #6b3;} .unittest-fail { background: #d55;} .unittest-error { background: #a11;} </style> <script src="/packages/web_components/webcomponents.js"></script> <script src="/packages/web_components/dart_support.js"></script> </head> <body><table class="unittest-table"><tbody><tr><td colspan="3" class="unittest-pass">PASS</td></tr> <tr> <td>19</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=shadow_dom Created in Shadow DOM that is not in a document"> shadow_dom Created in Shadow DOM that is not in a document </a>. </p> <pre></pre> </td> </tr> <tr> <td>20</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=shadow_dom Leaves Shadow DOM that is not in a document"> shadow_dom Leaves Shadow DOM that is not in a document </a>. </p> <pre></pre> </td> </tr> <tr> <td>21</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=shadow_dom Enters a document with a view as a constituent of Shadow DOM"> shadow_dom Enters a document with a view as a constituent of Shadow DOM </a>. </p> <pre></pre> </td> </tr> <tr><td colspan="3" class="unittest-pass"> All 3 tests passed </td></tr></tbody></table></body> exit code: 0 --- To debug locally, run: /b/s/w/ir/tools/sdks/dart-sdk/bin/dart /b/s/w/ir/tools/testing/dart/http_server.dart -p 46627 -c 36688 --network 127.0.0.1 --build-directory=/b/s/w/ir/out/ReleaseX64/ --runtime=chrome --packages=/b/s/w/ir/.packages --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration lib_2/html/custom/entered_left_view_test/shadow_dom/shadow_dom FAILED: dart2js-chrome release_x64 lib_2/math/random_big_test Expected: Pass Actual: RuntimeError --- Command "dart2js" (took 01.000395s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js /b/s/w/ir/tests/lib_2/math/random_big_test.dart --preview-dart-2 exit code: 0 stdout: Compiled 7,402,317 characters Dart to 50,265 characters JavaScript in 1.39 seconds Dart file (/b/s/w/ir/tests/lib_2/math/random_big_test.dart) compiled to JavaScript: out/ReleaseX64/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js --- Command "chrome" (took 65ms): /b/s/w/ir/tools/sdks/dart-sdk/bin/dart tools/testing/dart/launch_browser.dart chrome http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_math_random_big_test/test.html?crossOriginPort=36688 Runtime error: Expect.isFalse(true) fails. Expect.isFalse(true) fails. at Object.wrapException (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:313:17) at Object.Expect__fail (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:971:15) at Object.Expect_isFalse (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:968:9) at main (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:984:11) at dartMainRunner (http://127.0.0.1:46627/root_dart/tools/testing/dart/test_controller.js:303:5) at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:1351:7 at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:1337:7 at dartProgram (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:1348:5) at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_math_random_big_test/test.js:1355:3 exit code: 0 --- To debug locally, run: /b/s/w/ir/tools/sdks/dart-sdk/bin/dart /b/s/w/ir/tools/testing/dart/http_server.dart -p 46627 -c 36688 --network 127.0.0.1 --build-directory=/b/s/w/ir/out/ReleaseX64/ --runtime=chrome --packages=/b/s/w/ir/.packages --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration lib_2/math/random_big_test FAILED: dart2js-chrome release_x64 lib_2/typed_data/unmodifiable_typed_data_test Expected: Pass Actual: RuntimeError --- Command "dart2js" (took 01.000959s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js /b/s/w/ir/tests/lib_2/typed_data/unmodifiable_typed_data_test.dart --preview-dart-2 exit code: 0 stdout: Compiled 7,407,499 characters Dart to 120,096 characters JavaScript in 1.96 seconds Dart file (/b/s/w/ir/tests/lib_2/typed_data/unmodifiable_typed_data_test.dart) compiled to JavaScript: out/ReleaseX64/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js --- Command "chrome" (took 52ms): /b/s/w/ir/tools/sdks/dart-sdk/bin/dart tools/testing/dart/launch_browser.dart chrome http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.html?crossOriginPort=36688 Runtime error: Unsupported operation: Int64List not supported by dart2js. Unsupported operation: Int64List not supported by dart2js. at Object.wrapException (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:335:17) at Object.Int64List_Int64List$fromList (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:1728:15) at main (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:1859:9) at dartMainRunner (http://127.0.0.1:46627/root_dart/tools/testing/dart/test_controller.js:303:5) at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:3074:7 at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:3060:7 at dartProgram (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:3071:5) at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_unmodifiable_typed_data_test/test.js:3078:3 exit code: 0 --- To debug locally, run: /b/s/w/ir/tools/sdks/dart-sdk/bin/dart /b/s/w/ir/tools/testing/dart/http_server.dart -p 46627 -c 36688 --network 127.0.0.1 --build-directory=/b/s/w/ir/out/ReleaseX64/ --runtime=chrome --packages=/b/s/w/ir/.packages --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration lib_2/typed_data/unmodifiable_typed_data_test FAILED: dart2js-chrome release_x64 lib_2/typed_data/typed_data_hierarchy_int64_test Expected: Pass Actual: RuntimeError --- Command "dart2js" (took 01.000560s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js /b/s/w/ir/tests/lib_2/typed_data/typed_data_hierarchy_int64_test.dart --preview-dart-2 exit code: 0 stdout: Compiled 7,402,621 characters Dart to 56,734 characters JavaScript in 1.56 seconds Dart file (/b/s/w/ir/tests/lib_2/typed_data/typed_data_hierarchy_int64_test.dart) compiled to JavaScript: out/ReleaseX64/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js --- Command "chrome" (took 104ms): /b/s/w/ir/tools/sdks/dart-sdk/bin/dart tools/testing/dart/launch_browser.dart chrome http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.html?crossOriginPort=36688 Runtime error: Unsupported operation: Int64List not supported by dart2js. Unsupported operation: Int64List not supported by dart2js. at Object.wrapException (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:316:17) at Object.Int64List_Int64List (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:1190:15) at main (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:1210:19) at dartMainRunner (http://127.0.0.1:46627/root_dart/tools/testing/dart/test_controller.js:303:5) at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:1513:7 at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:1499:7 at dartProgram (http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:1510:5) at http://127.0.0.1:46627/root_build/generated_compilations/dart2js-sdk/tests_lib_2_typed_data_typed_data_hierarchy_int64_test/test.js:1517:3 exit code: 0 --- To debug locally, run: /b/s/w/ir/tools/sdks/dart-sdk/bin/dart /b/s/w/ir/tools/testing/dart/http_server.dart -p 46627 -c 36688 --network 127.0.0.1 --build-directory=/b/s/w/ir/out/ReleaseX64/ --runtime=chrome --packages=/b/s/w/ir/.packages --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration lib_2/typed_data/typed_data_hierarchy_int64_test FAILED: dart2js-chrome release_x64 lib_2/html/custom/document_register_type_extensions_test/registration/registration Expected: Slow Actual: Pass --- Command "dart2js" (took 06.000780s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_document_register_type_extensions_test/document_register_type_extensions_test.js /b/s/w/ir/tests/lib_2/html/custom/document_register_type_extensions_test.dart --preview-dart-2 exit code: 0 stdout: Compiled 7,714,048 characters Dart to 687,461 characters JavaScript in 6.78 seconds Dart file (/b/s/w/ir/tests/lib_2/html/custom/document_register_type_extensions_test.dart) compiled to JavaScript: out/ReleaseX64/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_document_register_type_extensions_test/document_register_type_extensions_test.js --- Command "chrome" (took 274ms): /b/s/w/ir/tools/sdks/dart-sdk/bin/dart tools/testing/dart/launch_browser.dart chrome http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_document_register_type_extensions_test/test.html?crossOriginPort=36688&group=registration Events: - debug "test_controller.js started" - debug "Sending events to driver page (isFirstMessage = true, isStatusUpdate = true, isDone = false)" - print "dart-calling-main" - print "dart-main-done" - { type: message_received value: dart-calling-main timestamp: 0.138 } - { type: message_received value: unittest-suite-wait-for-done timestamp: 0.14 } - { type: message_received value: dart-main-done timestamp: 0.14 } - { type: message_received value: unittest-suite-done timestamp: 0.18 } - debug "Sending events to driver page (isFirstMessage = false, isStatusUpdate = false, isDone = true)" - dom <head><style>body {transition: opacity ease-in 0.2s; } body[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } </style> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="dart.unittest" content="full-stack-traces"> <title> document_register_type_extensions_test </title> <style> .unittest-table { font-family:monospace; border:1px; } .unittest-pass { background: #6b3;} .unittest-fail { background: #d55;} .unittest-error { background: #a11;} </style> <script src="/packages/web_components/webcomponents.js"></script> <script src="/packages/web_components/dart_support.js"></script> </head> <body><table class="unittest-table"><tbody><tr><td colspan="3" class="unittest-pass">PASS</td></tr> <tr> <td>1</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=registration cannot register twice"> registration cannot register twice </a>. </p> <pre></pre> </td> </tr> <tr> <td>2</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=registration cannot register for non-matching tag"> registration cannot register for non-matching tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>3</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=registration cannot register type extension for custom tag"> registration cannot register type extension for custom tag </a>. </p> <pre></pre> </td> </tr> <tr><td colspan="3" class="unittest-pass"> All 3 tests passed </td></tr></tbody></table></body> exit code: 0 --- To debug locally, run: /b/s/w/ir/tools/sdks/dart-sdk/bin/dart /b/s/w/ir/tools/testing/dart/http_server.dart -p 46627 -c 36688 --network 127.0.0.1 --build-directory=/b/s/w/ir/out/ReleaseX64/ --runtime=chrome --packages=/b/s/w/ir/.packages --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration lib_2/html/custom/document_register_type_extensions_test/registration/registration FAILED: dart2js-chrome release_x64 lib_2/html/custom/document_register_type_extensions_test/construction/construction Expected: Slow Actual: Pass --- Command "dart2js" (took 06.000780s): DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart-sdk/bin/dart2js --generate-code-with-compile-time-errors --test-mode --packages=/b/s/w/ir/.packages --out=/b/s/w/ir/out/ReleaseX64/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_document_register_type_extensions_test/document_register_type_extensions_test.js /b/s/w/ir/tests/lib_2/html/custom/document_register_type_extensions_test.dart --preview-dart-2 exit code: 0 stdout: Compiled 7,714,048 characters Dart to 687,461 characters JavaScript in 6.78 seconds Dart file (/b/s/w/ir/tests/lib_2/html/custom/document_register_type_extensions_test.dart) compiled to JavaScript: out/ReleaseX64/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_document_register_type_extensions_test/document_register_type_extensions_test.js --- Command "chrome" (took 296ms): /b/s/w/ir/tools/sdks/dart-sdk/bin/dart tools/testing/dart/launch_browser.dart chrome http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_custom_document_register_type_extensions_test/test.html?crossOriginPort=36688&group=construction Events: - debug "test_controller.js started" - debug "Sending events to driver page (isFirstMessage = true, isStatusUpdate = true, isDone = false)" - print "dart-calling-main" - print "dart-main-done" - { type: message_received value: dart-calling-main timestamp: 0.135 } - { type: message_received value: unittest-suite-wait-for-done timestamp: 0.135 } - { type: message_received value: dart-main-done timestamp: 0.136 } - { type: message_received value: unittest-suite-done timestamp: 0.214 } - debug "Sending events to driver page (isFirstMessage = false, isStatusUpdate = false, isDone = true)" - dom <head><style>body {transition: opacity ease-in 0.2s; } body[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } </style> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="dart.unittest" content="full-stack-traces"> <title> document_register_type_extensions_test </title> <style> .unittest-table { font-family:monospace; border:1px; } .unittest-pass { background: #6b3;} .unittest-fail { background: #d55;} .unittest-error { background: #a11;} </style> <script src="/packages/web_components/webcomponents.js"></script> <script src="/packages/web_components/dart_support.js"></script> </head> <body><table class="unittest-table"><tbody><tr><td colspan="3" class="unittest-pass">PASS</td></tr> <tr> <td>4</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction constructors custom tag"> construction constructors custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>5</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction constructors type extension"> construction constructors type extension </a>. </p> <pre></pre> </td> </tr> <tr> <td>6</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction constructors custom tag deriving from custom tag"> construction constructors custom tag deriving from custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>7</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction constructors type extension deriving from custom tag"> construction constructors type extension deriving from custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>8</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction single-parameter createElement custom tag"> construction single-parameter createElement custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>9</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction single-parameter createElement does not upgrade type extension"> construction single-parameter createElement does not upgrade type extension </a>. </p> <pre></pre> </td> </tr> <tr> <td>10</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction single-parameter createElement custom tag deriving from custom tag"> construction single-parameter createElement custom tag deriving from custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>11</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction single-parameter createElement type extension deriving from custom tag"> construction single-parameter createElement type extension deriving from custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>12</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension does not upgrade extension of custom tag"> construction createElement with type extension does not upgrade extension of custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>13</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension upgrades valid extension"> construction createElement with type extension upgrades valid extension </a>. </p> <pre></pre> </td> </tr> <tr> <td>14</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension type extension of incorrect tag"> construction createElement with type extension type extension of incorrect tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>15</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension incorrect extension of custom tag"> construction createElement with type extension incorrect extension of custom tag </a>. </p> <pre></pre> </td> </tr> <tr> <td>16</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension incorrect extension of type extension"> construction createElement with type extension incorrect extension of type extension </a>. </p> <pre></pre> </td> </tr> <tr> <td>17</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension null type extension"> construction createElement with type extension null type extension </a>. </p> <pre></pre> </td> </tr> <tr> <td>18</td> <td class="unittest-pass"> PASS </td> <td> <p>Expectation: <a href="#testFilter=construction createElement with type extension empty type extension"> construction createElement with type extension empty type extension </a>. </p> <pre></pre> </td> </tr> <tr><td colspan="3" class="unittest-pass"> All 15 tests passed </td></tr></tbody></table></body> exit code: 0 --- To debug locally, run: /b/s/w/ir/tools/sdks/dart-sdk/bin/dart /b/s/w/ir/tools/testing/dart/http_server.dart -p 46627 -c 36688 --network 127.0.0.1 --build-directory=/b/s/w/ir/out/ReleaseX64/ --runtime=chrome --packages=/b/s/w/ir/.packages --- Re-run this test: python tools/test.py -n dart2js-linux-chrome --dart2js-batch --reset-browser-configuration lib_2/html/custom/document_register_type_extensions_test/construction/construction Double reporting tests http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/multitest_language_2_regress_24935_test_01/test.html?crossOriginPort=36688 http://127.0.0.1:46627/root_build/generated_tests/dart2js-chrome-sdk/tests_lib_2_html_interactive_media_test/test.html?crossOriginPort=36688 --- Total time: 02:48 --- 0:00:09.239924 - chrome - dart2js-chrome release_x64/lib_2/html/native_gc_test 0:00:07.189629 - dart2js - dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/fillText/fillText, dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/drawImage_canvas_element/drawImage_canvas_element, dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/drawImage_video_element_dataUrl/drawImage_video_element_dataUrl, dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/drawImage_video_element/drawImage_video_element, dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/drawImage_image_element/drawImage_image_element, dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/arc/arc, dart2js-chrome release_x64/lib_2/html/canvasrenderingcontext2d_test/pixel_manipulation/pixel_manipulation 0:00:07.079430 - dart2js - dart2js-chrome release_x64/lib_2/html/js_array_test 0:00:06.940911 - dart2js - dart2js-chrome release_x64/lib_2/html/indexeddb_3_test 0:00:06.900018 - dart2js - dart2js-chrome release_x64/lib_2/html/interactive_media_test 0:00:06.780757 - dart2js - dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/functional/functional, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/parsing/parsing, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/createElement with type extension/createElement with type extension, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/namespaces/namespaces, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/single-parameter createElement/single-parameter createElement, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/constructors/constructors, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/registration/registration, dart2js-chrome release_x64/lib_2/html/custom/document_register_type_extensions_test/construction/construction 0:00:06.716562 - dart2js - dart2js-chrome release_x64/lib_2/html/custom/entered_left_view_test/disconnected_subtree/disconnected_subtree, dart2js-chrome release_x64/lib_2/html/custom/entered_left_view_test/shadow_dom/shadow_dom, dart2js-chrome release_x64/lib_2/html/custom/entered_left_view_test/viewless_document/viewless_document, dart2js-chrome release_x64/lib_2/html/custom/entered_left_view_test/standard_events/standard_events, dart2js-chrome release_x64/lib_2/html/custom/entered_left_view_test/standard_events_old_callback_names/standard_events_old_callback_names 0:00:06.590649 - dart2js - dart2js-chrome release_x64/lib_2/html/js_dart_to_string_test 0:00:06.505757 - dart2js - dart2js-chrome release_x64/lib_2/html/fileapi_directory_test 0:00:06.494436 - dart2js - dart2js-chrome release_x64/lib_2/html/indexeddb_1_test/typed/typed, dart2js-chrome release_x64/lib_2/html/indexeddb_1_test/dynamic/dynamic, dart2js-chrome release_x64/lib_2/html/indexeddb_1_test/supported/supported, dart2js-chrome release_x64/lib_2/html/indexeddb_1_test/functional/functional 0:00:06.370492 - dart2js - dart2js-chrome release_x64/lib_2/html/custom/attribute_changed_callback_test 0:00:06.362677 - dart2js - dart2js-chrome release_x64/lib_2/html/js_dispatch_property_test 0:00:06.343379 - dart2js - dart2js-chrome release_x64/lib_2/html/custom_element_name_clash_test/test/test 0:00:05.244735 - chrome - dart2js-chrome release_x64/corelib_2/uri_test 0:00:04.798710 - dart2js - dart2js-chrome release_x64/vm/dart/regress_35887_test 0:00:04.731529 - dart2js - dart2js-chrome release_x64/corelib_2/linked_hash_map_test 0:00:04.696392 - dart2js - dart2js-chrome release_x64/corelib_2/uri_test 0:00:04.489628 - dart2js - dart2js-chrome release_x64/vm/dart/single_target_and_method_extractors_test 0:00:04.448190 - dart2js - dart2js-chrome release_x64/corelib_2/string_buffer_test 0:00:04.350240 - dart2js - dart2js-chrome release_x64/vm/dart/regress30853_test INFO: No unexpected crashes recorded 2019-03-03 20:46:44,112 - root: [DEBUG] Contents of task_output_dir: ['/b/s/w/ir/tmp/t/tmpI_BDV8/435fd312b5c19e10'] 2019-03-03 20:46:44,112 - root: [WARNING] Expected output.json file missing: set(['/b/s/w/ir/tmp/t/tmpI_BDV8/435fd312b5c19e10/output.json']) Found: [] Expected: ['/b/s/w/ir/tmp/t/tmpI_BDV8/435fd312b5c19e10/output.json'] 2019-03-03 20:46:44,112 - root: [WARNING] No shard json files found in task_output_dir: '/b/s/w/ir/tmp/t/tmpI_BDV8' Found ['/b/s/w/ir/tmp/t/tmpI_BDV8/435fd312b5c19e10'] 2019-03-03 20:46:44,112 - root: [DEBUG] Found shard_json_files: ['/b/s/w/ir/tmp/t/tmpI_BDV8/435fd312b5c19e10/output.json'] 2019-03-03 20:46:44,112 - root: [INFO] merge_cmd: /b/s/w/ir/cache/vpython/95f307/bin/python /b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/noop_merge.py --summary-json /b/s/w/ir/tmp/t/tmppVGFDb.json --task-output-dir /b/s/w/ir/tmp/t/tmpI_BDV8 -o /b/s/w/ir/tmp/t/tmp3nQpBv.json Running ['/b/s/w/ir/cache/vpython/95f307/bin/python', '/b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/noop_merge.py', '--summary-json', '/b/s/w/ir/tmp/t/tmppVGFDb.json', '--task-output-dir', '/b/s/w/ir/tmp/t/tmpI_BDV8', '-o', '/b/s/w/ir/tmp/t/tmp3nQpBv.json'] in None (env: None) Command ['/b/s/w/ir/cache/vpython/95f307/bin/python', '/b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/noop_merge.py', '--summary-json', '/b/s/w/ir/tmp/t/tmppVGFDb.json', '--task-output-dir', '/b/s/w/ir/tmp/t/tmpI_BDV8', '-o', '/b/s/w/ir/tmp/t/tmp3nQpBv.json'] returned exit code 0