| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'is', 'require'], | 5 define(['dart_sdk', 'async_helper', 'expect', 'unittest', 'is', 'require'], |
| 6 function(dart_sdk, async_helper, expect, unittest, is, require) { | 6 function(dart_sdk, async_helper, expect, unittest, is, require) { |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 async_helper = async_helper.async_helper; | 9 async_helper = async_helper.async_helper; |
| 10 let minitest = expect.minitest; | 10 let minitest = expect.minitest; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 let num_expected_unittest_fails = 3; | 45 let num_expected_unittest_fails = 3; |
| 46 let num_expected_unittest_errors = 0; | 46 let num_expected_unittest_errors = 0; |
| 47 | 47 |
| 48 // TODO(jmesserly): separate StrongModeError from other errors. | 48 // TODO(jmesserly): separate StrongModeError from other errors. |
| 49 let all_status = { | 49 let all_status = { |
| 50 'language': { | 50 'language': { |
| 51 'assert_with_type_test_or_cast_test': skip_fail, | 51 'assert_with_type_test_or_cast_test': skip_fail, |
| 52 'assertion_test': skip_fail, | 52 'assertion_test': skip_fail, |
| 53 'async_await_test_none_multi': 'unittest', | 53 'async_await_test_none_multi': 'unittest', |
| 54 'async_await_test_02_multi': 'unittest', | 54 'async_await_test_02_multi': 'unittest', |
| 55 'async_await_test_03_multi': skip_fail, // Flaky on travis (#634) | 55 |
| 56 // Flaky on travis (https://github.com/dart-lang/sdk/issues/27224) |
| 57 'async_await_test_03_multi': skip_fail, |
| 58 |
| 56 'async_star_await_pauses_test': skip_fail, | 59 'async_star_await_pauses_test': skip_fail, |
| 57 | 60 |
| 58 // TODO(jmesserly): figure out why this test is hanging. | 61 // TODO(jmesserly): figure out why this test is hanging. |
| 59 'async_star_cancel_and_throw_in_finally_test': skip_timeout, | 62 'async_star_cancel_and_throw_in_finally_test': skip_timeout, |
| 60 | 63 |
| 61 'async_star_cancel_while_paused_test': skip_fail, | 64 'async_star_cancel_while_paused_test': skip_fail, |
| 62 'async_star_regression_fisk_test': skip_fail, | 65 'async_star_regression_fisk_test': skip_fail, |
| 63 | 66 |
| 64 // TODO(vsm): Re-enable. | 67 // TODO(vsm): Re-enable (https://github.com/dart-lang/sdk/issues/28319) |
| 65 // See https://github.com/dart-lang/dev_compiler/issues/456 | |
| 66 'async_star_test_none_multi': ['unittest', 'skip', 'fail'], | 68 'async_star_test_none_multi': ['unittest', 'skip', 'fail'], |
| 67 'async_star_test_01_multi': ['unittest', 'skip', 'fail'], | 69 'async_star_test_01_multi': ['unittest', 'skip', 'fail'], |
| 68 'async_star_test_02_multi': ['unittest', 'skip', 'fail'], | 70 'async_star_test_02_multi': ['unittest', 'skip', 'fail'], |
| 69 'async_star_test_03_multi': ['unittest', 'skip', 'fail'], | 71 'async_star_test_03_multi': ['unittest', 'skip', 'fail'], |
| 70 'async_star_test_04_multi': ['unittest', 'skip', 'fail'], | 72 'async_star_test_04_multi': ['unittest', 'skip', 'fail'], |
| 71 'async_star_test_05_multi': ['unittest', 'skip', 'fail'], | 73 'async_star_test_05_multi': ['unittest', 'skip', 'fail'], |
| 72 | 74 |
| 73 'async_switch_test': skip_fail, | 75 'async_switch_test': skip_fail, |
| 74 'asyncstar_throw_in_catch_test': skip_fail, | 76 'asyncstar_throw_in_catch_test': skip_fail, |
| 75 'await_future_test': skip_fail, | 77 'await_future_test': skip_fail, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 88 'cast_test_03_multi': skip_fail, | 90 'cast_test_03_multi': skip_fail, |
| 89 'cast_test_07_multi': skip_fail, | 91 'cast_test_07_multi': skip_fail, |
| 90 'cast_test_10_multi': skip_fail, | 92 'cast_test_10_multi': skip_fail, |
| 91 'cast_test_12_multi': skip_fail, | 93 'cast_test_12_multi': skip_fail, |
| 92 'cast_test_13_multi': skip_fail, | 94 'cast_test_13_multi': skip_fail, |
| 93 'cast_test_14_multi': skip_fail, | 95 'cast_test_14_multi': skip_fail, |
| 94 'cast_test_15_multi': skip_fail, | 96 'cast_test_15_multi': skip_fail, |
| 95 'cha_deopt1_test': skip_fail, | 97 'cha_deopt1_test': skip_fail, |
| 96 'cha_deopt2_test': skip_fail, | 98 'cha_deopt2_test': skip_fail, |
| 97 'cha_deopt3_test': skip_fail, | 99 'cha_deopt3_test': skip_fail, |
| 98 | |
| 99 // interpolation does not call Dart's toString: | |
| 100 // https://github.com/dart-lang/dev_compiler/issues/470 | |
| 101 'class_syntax2_test': skip_fail, | 100 'class_syntax2_test': skip_fail, |
| 102 'classes_static_method_clash_test': skip_fail, | 101 'classes_static_method_clash_test': skip_fail, |
| 103 'closure_call_wrong_argument_count_negative_test': skip_fail, | 102 'closure_call_wrong_argument_count_negative_test': skip_fail, |
| 104 'closure_in_constructor_test': skip_fail, | 103 'closure_in_constructor_test': skip_fail, |
| 105 'closures_initializer_test': skip_fail, | 104 'closures_initializer_test': skip_fail, |
| 106 'code_after_try_is_executed_test_01_multi': skip_fail, | 105 'code_after_try_is_executed_test_01_multi': skip_fail, |
| 107 'compile_time_constant10_test_none_multi': skip_fail, | 106 'compile_time_constant10_test_none_multi': skip_fail, |
| 108 'compile_time_constant_a_test': skip_fail, | 107 'compile_time_constant_a_test': skip_fail, |
| 109 'compile_time_constant_b_test': skip_fail, | 108 'compile_time_constant_b_test': skip_fail, |
| 110 'compile_time_constant_d_test': skip_fail, | 109 'compile_time_constant_d_test': skip_fail, |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 'default_arguments_test': fail, | 399 'default_arguments_test': fail, |
| 401 'UC16_test': firefox_fail, | 400 'UC16_test': firefox_fail, |
| 402 }, | 401 }, |
| 403 | 402 |
| 404 'lib/collection': { | 403 'lib/collection': { |
| 405 }, | 404 }, |
| 406 | 405 |
| 407 'lib/convert': { | 406 'lib/convert': { |
| 408 'encoding_test': skip_timeout, | 407 'encoding_test': skip_timeout, |
| 409 | 408 |
| 410 // TODO(jmesserly): this is in an inconsistent state between our old and | |
| 411 // newer SDKs. | |
| 412 'html_escape_test': ['skip'], | |
| 413 | |
| 414 'json_utf8_chunk_test': skip_timeout, | 409 'json_utf8_chunk_test': skip_timeout, |
| 415 'latin1_test': skip_timeout, | 410 'latin1_test': skip_timeout, |
| 416 | 411 |
| 417 'streamed_conversion_json_encode1_test': skip_timeout, | 412 'streamed_conversion_json_encode1_test': skip_timeout, |
| 418 'streamed_conversion_json_utf8_decode_test': skip_timeout, | 413 'streamed_conversion_json_utf8_decode_test': skip_timeout, |
| 419 'streamed_conversion_json_utf8_encode_test': skip_timeout, | 414 'streamed_conversion_json_utf8_encode_test': skip_timeout, |
| 420 'streamed_conversion_utf8_decode_test': skip_timeout, | 415 'streamed_conversion_utf8_decode_test': skip_timeout, |
| 421 'streamed_conversion_utf8_encode_test': skip_timeout, | 416 'streamed_conversion_utf8_encode_test': skip_timeout, |
| 422 'utf85_test': skip_timeout, | 417 'utf85_test': skip_timeout, |
| 423 }, | 418 }, |
| 424 | 419 |
| 425 'lib/html': { | 420 'lib/html': { |
| 426 'async_spawnuri_test': async_unittest, | 421 'async_spawnuri_test': async_unittest, |
| 427 'async_test': async_unittest, | 422 'async_test': async_unittest, |
| 428 'audiocontext_test': is.chrome('<=54') ? fail : pass, // was sdk#27578, ne
eds triage | 423 |
| 424 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 425 'audiocontext_test': is.chrome('<=54') ? fail : pass, |
| 426 |
| 429 'canvas_test': ['unittest'], | 427 'canvas_test': ['unittest'], |
| 430 'canvasrenderingcontext2d_test': ['unittest'], | 428 'canvasrenderingcontext2d_test': ['unittest'], |
| 431 'cross_domain_iframe_test': async_unittest, | 429 'cross_domain_iframe_test': async_unittest, |
| 432 'cssstyledeclaration_test': async_unittest, | 430 'cssstyledeclaration_test': async_unittest, |
| 433 'css_test': async_unittest, | 431 'css_test': async_unittest, |
| 434 | 432 |
| 435 // This is failing with a range error, I'm guessing because it's looking | 433 // This is failing with a range error, I'm guessing because it's looking |
| 436 // for a stylesheet and the page has none. | 434 // for a stylesheet and the page has none. |
| 437 'css_rule_list_test': 'fail', | 435 'css_rule_list_test': 'fail', |
| 436 |
| 438 'custom_element_method_clash_test': async_unittest, | 437 'custom_element_method_clash_test': async_unittest, |
| 439 'custom_element_name_clash_test': async_unittest, | 438 'custom_element_name_clash_test': async_unittest, |
| 440 'custom_elements_23127_test': async_unittest, | 439 'custom_elements_23127_test': async_unittest, |
| 441 'custom_elements_test': async_unittest, | 440 'custom_elements_test': async_unittest, |
| 442 'dom_constructors_test': 'fail', // was sdk#27578, needs triage | 441 |
| 442 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 443 'dom_constructors_test': 'fail', |
| 444 |
| 443 'element_animate_test': async_unittest, | 445 'element_animate_test': async_unittest, |
| 444 'element_classes_test': 'fail', // sdk#27579. | 446 |
| 445 'element_classes_svg_test': 'fail', // sdk#27579. | 447 // https://github.com/dart-lang/sdk/issues/27579. |
| 448 'element_classes_test': 'fail', |
| 449 'element_classes_svg_test': 'fail', |
| 446 | 450 |
| 447 // Failure: 'Expected 56 to be in the inclusive range [111, 160].'. | 451 // Failure: 'Expected 56 to be in the inclusive range [111, 160].'. |
| 448 'element_offset_test': 'fail', | 452 'element_offset_test': 'fail', |
| 453 |
| 449 'element_test': async_unittest, | 454 'element_test': async_unittest, |
| 450 'element_types_test': firefox_fail, | 455 'element_types_test': firefox_fail, |
| 451 'event_customevent_test': async_unittest, | 456 'event_customevent_test': async_unittest, |
| 452 'events_test': async_unittest, | 457 'events_test': async_unittest, |
| 453 | 458 |
| 454 // Failure: "Failed to execute 'dispatchEvent' on 'EventTarget': parameter | 459 // Failure: "Failed to execute 'dispatchEvent' on 'EventTarget': parameter |
| 455 // 1 is not of type 'Event'." | 460 // 1 is not of type 'Event'." |
| 456 'event_test': 'fail', | 461 'event_test': 'fail', |
| 462 |
| 457 'fileapi_test': async_unittest, | 463 'fileapi_test': async_unittest, |
| 458 'filereader_test': async_unittest, | 464 'filereader_test': async_unittest, |
| 459 'fontface_loaded_test': async_unittest, | 465 'fontface_loaded_test': async_unittest, |
| 460 | 466 |
| 461 // Failed because it's expecting "Ahem" but getting null. Maybe sdk#27579? | 467 // Failed because it's expecting "Ahem" but getting null. Maybe sdk#27579? |
| 462 'fontface_test': 'fail', | 468 'fontface_test': 'fail', |
| 469 |
| 463 'form_data_test': async_unittest, | 470 'form_data_test': async_unittest, |
| 464 'history_test': async_unittest, | 471 'history_test': async_unittest, |
| 465 'indexeddb_1_test': async_unittest, | 472 'indexeddb_1_test': async_unittest, |
| 466 'indexeddb_2_test': async_unittest, | 473 'indexeddb_2_test': async_unittest, |
| 467 'indexeddb_3_test': async_unittest, | 474 'indexeddb_3_test': async_unittest, |
| 468 'indexeddb_4_test': async_unittest, | 475 'indexeddb_4_test': async_unittest, |
| 469 'indexeddb_5_test': async_unittest, | 476 'indexeddb_5_test': async_unittest, |
| 470 'input_element_test': 'fail', // was sdk#27578, needs triage | 477 |
| 478 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 479 'input_element_test': 'fail', |
| 480 |
| 471 'interactive_test': async_unittest, | 481 'interactive_test': async_unittest, |
| 472 'isolates_test': async_unittest, | 482 'isolates_test': async_unittest, |
| 473 | 483 |
| 474 'js_interop_1_test': async_unittest, | 484 'js_interop_1_test': async_unittest, |
| 475 | 485 |
| 476 // Failing because accessing "zSomeInvalidName" does not throw. | 486 // Failing because accessing "zSomeInvalidName" does not throw. |
| 477 'js_typed_interop_test': 'fail', | 487 'js_typed_interop_test': 'fail', |
| 478 | 488 |
| 479 // The "typed literal" test fails because the object does not have "_c". | 489 // The "typed literal" test fails because the object does not have "_c". |
| 480 'js_util_test': 'fail', | 490 'js_util_test': 'fail', |
| 481 'keyboard_event_test': async_unittest, | 491 'keyboard_event_test': async_unittest, |
| 482 | 492 |
| 483 'mediasource_test': 'fail', // was sdk#27578, needs triage | 493 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 484 'media_stream_test': 'fail', // was sdk#27578, needs triage | 494 'mediasource_test': 'fail', |
| 485 'messageevent_test': 'fail', // was sdk#27578, needs triage | 495 'media_stream_test': 'fail', |
| 496 'messageevent_test': 'fail', |
| 486 | 497 |
| 487 // Should throw but does not. | 498 // Should throw but does not. |
| 488 'mirrors_js_typed_interop_test': 'fail', | 499 'mirrors_js_typed_interop_test': 'fail', |
| 489 | 500 |
| 490 'mutationobserver_test': async_unittest, | 501 'mutationobserver_test': async_unittest, |
| 491 'native_gc_test': async_unittest, | 502 'native_gc_test': async_unittest, |
| 492 'notification_test': 'fail', // was sdk#27578, needs triage | 503 |
| 504 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 505 'notification_test': 'fail', |
| 506 |
| 493 'postmessage_structured_test': async_unittest, | 507 'postmessage_structured_test': async_unittest, |
| 494 'queryall_test': ['slow'], // see sdk #27794 | 508 'queryall_test': ['slow'], // see sdk #27794 |
| 495 'request_animation_frame_test': async_unittest, | 509 'request_animation_frame_test': async_unittest, |
| 496 'resource_http_test': async_unittest, | 510 'resource_http_test': async_unittest, |
| 497 'rtc_test': is.chrome('<=55') ? fail : pass, // was sdk#27578, needs triag
e | 511 |
| 512 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 513 'rtc_test': is.chrome('<=55') ? fail : pass, |
| 498 | 514 |
| 499 // Expected 1, got null. | 515 // Expected 1, got null. |
| 500 'serialized_script_value_test': 'fail', | 516 'serialized_script_value_test': 'fail', |
| 517 |
| 501 'shadow_dom_test': firefox_fail, | 518 'shadow_dom_test': firefox_fail, |
| 502 'speechrecognition_test': 'fail', // was sdk#27578, needs triage | 519 |
| 503 'svgelement_test': chrome_fail, // was sdk#27578, needs triage | 520 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 521 'speechrecognition_test': 'fail', |
| 522 'svgelement_test': chrome_fail, |
| 504 'text_event_test': firefox_fail, | 523 'text_event_test': firefox_fail, |
| 505 'touchevent_test': 'fail', // was sdk#27578, needs triage | 524 |
| 525 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 526 'touchevent_test': 'fail', |
| 527 |
| 506 'transferables_test': async_unittest, | 528 'transferables_test': async_unittest, |
| 507 'transition_event_test': async_unittest, | 529 'transition_event_test': async_unittest, |
| 508 'url_test': async_unittest, | 530 'url_test': async_unittest, |
| 509 'websocket_test': async_unittest, | 531 'websocket_test': async_unittest, |
| 510 'websql_test': async_unittest, | 532 'websql_test': async_unittest, |
| 511 'wheelevent_test': async_unittest, | 533 'wheelevent_test': async_unittest, |
| 512 'worker_api_test': async_unittest, | 534 'worker_api_test': async_unittest, |
| 513 'worker_test': async_unittest, | 535 'worker_test': async_unittest, |
| 514 | 536 |
| 515 'xhr_cross_origin_test': async_unittest, | 537 'xhr_cross_origin_test': async_unittest, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 | 865 |
| 844 for (let action of unittest_tests) { | 866 for (let action of unittest_tests) { |
| 845 try { | 867 try { |
| 846 action(); | 868 action(); |
| 847 } catch (e) { | 869 } catch (e) { |
| 848 console.error("Caught error tying to setup test:", e); | 870 console.error("Caught error tying to setup test:", e); |
| 849 } | 871 } |
| 850 } | 872 } |
| 851 }); | 873 }); |
| 852 }); | 874 }); |
| OLD | NEW |