Chromium Code Reviews| 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 27 matching lines...) Expand all Loading... | |
| 38 | 38 |
| 39 // Tests marked with this are still using the deprecated unittest package | 39 // Tests marked with this are still using the deprecated unittest package |
| 40 // because they rely on its support for futures and asynchronous tests, which | 40 // because they rely on its support for futures and asynchronous tests, which |
| 41 // expect and minitest do not handle. | 41 // expect and minitest do not handle. |
| 42 // TODO(rnystrom): Move all of these away from using the async test API so | 42 // TODO(rnystrom): Move all of these away from using the async test API so |
| 43 // they can stop using unittest. | 43 // they can stop using unittest. |
| 44 const async_unittest = ['unittest', 'skip', 'fail']; | 44 const async_unittest = ['unittest', 'skip', 'fail']; |
| 45 | 45 |
| 46 // The number of expected unittest errors should be zero but unfortunately | 46 // The number of expected unittest errors should be zero but unfortunately |
| 47 // there are a lot of broken html unittests. | 47 // there are a lot of broken html unittests. |
| 48 let num_expected_unittest_fails = 3; | 48 let num_expected_unittest_fails = 4; |
|
vsm
2017/01/21 00:52:42
This is due to: https://github.com/dart-lang/sdk/i
| |
| 49 let num_expected_unittest_errors = 0; | 49 let num_expected_unittest_errors = 0; |
| 50 | 50 |
| 51 // TODO(jmesserly): separate StrongModeError from other errors. | 51 // TODO(jmesserly): separate StrongModeError from other errors. |
| 52 let all_status = { | 52 let all_status = { |
| 53 'language': { | 53 'language': { |
| 54 'assertion_test': fail, | 54 'assertion_test': fail, |
| 55 'async_await_test_none_multi': 'unittest', | 55 'async_await_test_none_multi': 'unittest', |
| 56 'async_await_test_02_multi': 'unittest', | 56 'async_await_test_02_multi': 'unittest', |
| 57 | 57 |
| 58 // Flaky on travis (https://github.com/dart-lang/sdk/issues/27224) | 58 // Flaky on travis (https://github.com/dart-lang/sdk/issues/27224) |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 383 'css_rule_list_test': 'fail', | 383 'css_rule_list_test': 'fail', |
| 384 | 384 |
| 385 'custom_element_method_clash_test': async_unittest, | 385 'custom_element_method_clash_test': async_unittest, |
| 386 'custom_element_name_clash_test': async_unittest, | 386 'custom_element_name_clash_test': async_unittest, |
| 387 'custom_elements_23127_test': async_unittest, | 387 'custom_elements_23127_test': async_unittest, |
| 388 'custom_elements_test': async_unittest, | 388 'custom_elements_test': async_unittest, |
| 389 | 389 |
| 390 // was https://github.com/dart-lang/sdk/issues/27578, needs triage | 390 // was https://github.com/dart-lang/sdk/issues/27578, needs triage |
| 391 'dom_constructors_test': 'fail', | 391 'dom_constructors_test': 'fail', |
| 392 | 392 |
| 393 'element_animate_test': async_unittest, | 393 'element_animate_test': 'unittest', |
| 394 | 394 |
| 395 // https://github.com/dart-lang/sdk/issues/27579. | 395 // https://github.com/dart-lang/sdk/issues/27579. |
| 396 'element_classes_test': 'fail', | 396 'element_classes_test': 'fail', |
| 397 'element_classes_svg_test': 'fail', | 397 'element_classes_svg_test': 'fail', |
| 398 | 398 |
| 399 // Failure: 'Expected 56 to be in the inclusive range [111, 160].'. | 399 // Failure: 'Expected 56 to be in the inclusive range [111, 160].'. |
| 400 'element_offset_test': 'fail', | 400 'element_offset_test': 'fail', |
| 401 | 401 |
| 402 'element_test': async_unittest, | 402 'element_test': async_unittest, |
| 403 'element_types_test': firefox_fail, | 403 'element_types_test': firefox_fail, |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 880 | 880 |
| 881 for (let action of unittest_tests) { | 881 for (let action of unittest_tests) { |
| 882 try { | 882 try { |
| 883 action(); | 883 action(); |
| 884 } catch (e) { | 884 } catch (e) { |
| 885 console.error("Caught error tying to setup test:", e); | 885 console.error("Caught error tying to setup test:", e); |
| 886 } | 886 } |
| 887 } | 887 } |
| 888 }); | 888 }); |
| 889 }); | 889 }); |
| OLD | NEW |