Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: test/browser/language_tests.js

Issue 1965563003: Update dart:convert and dart:core Uri. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | test/codegen/lib/convert/ascii_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 (function() { 5 (function() {
6 'use strict'; 6 'use strict';
7 7
8 let dart_sdk = dart_library.import('dart_sdk'); 8 let dart_sdk = dart_library.import('dart_sdk');
9 dart_sdk._isolate_helper.startRootIsolate(function() {}, []); 9 dart_sdk._isolate_helper.startRootIsolate(function() {}, []);
10 let async_helper = dart_library.import('async_helper').async_helper; 10 let async_helper = dart_library.import('async_helper').async_helper;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 'multiline_newline_test_06_multi': skip_fail, 354 'multiline_newline_test_06_multi': skip_fail,
355 'multiline_newline_test_none_multi': skip_fail, 355 'multiline_newline_test_none_multi': skip_fail,
356 'no_main_test_01_multi': skip_fail, 356 'no_main_test_01_multi': skip_fail,
357 357
358 // https://github.com/dart-lang/sdk/issues/26123 358 // https://github.com/dart-lang/sdk/issues/26123
359 'bad_raw_string_negative_test': skip_fail, 359 'bad_raw_string_negative_test': skip_fail,
360 360
361 // https://github.com/dart-lang/sdk/issues/26124 361 // https://github.com/dart-lang/sdk/issues/26124
362 'prefix10_negative_test': skip_fail, 362 'prefix10_negative_test': skip_fail,
363 363
364
365 // TODO(vsm): Right shift should not propagate sign 364 // TODO(vsm): Right shift should not propagate sign
366 // https://github.com/dart-lang/dev_compiler/issues/446 365 // https://github.com/dart-lang/dev_compiler/issues/446
367 'float32x4_sign_mask_test': skip_fail, 366 'float32x4_sign_mask_test': skip_fail,
368 'int32x4_sign_mask_test': skip_fail, 367 'int32x4_sign_mask_test': skip_fail,
369 368
370 // TODO(vsm): Triage further 369 // TODO(vsm): Triage further
371 // exports._GeneratorIterable$ is not a function 370 // exports._GeneratorIterable$ is not a function
372 'byte_data_test': skip_fail, 371 'byte_data_test': skip_fail,
373 'endianness_test': skip_fail, 372 'endianness_test': skip_fail,
374 373
(...skipping 10 matching lines...) Expand all
385 'big_integer_parsed_div_rem_vm_test': fail, 384 'big_integer_parsed_div_rem_vm_test': fail,
386 'big_integer_parsed_mul_div_vm_test': fail, 385 'big_integer_parsed_mul_div_vm_test': fail,
387 'bit_twiddling_bigint_test': fail, 386 'bit_twiddling_bigint_test': fail,
388 'bool_from_environment_test': fail, 387 'bool_from_environment_test': fail,
389 'collection_length_test': skip_timeout, 388 'collection_length_test': skip_timeout,
390 'collection_to_string_test': fail, 389 'collection_to_string_test': fail,
391 'compare_to2_test': fail, 390 'compare_to2_test': fail,
392 'const_list_literal_test': fail, 391 'const_list_literal_test': fail,
393 'const_list_remove_range_test': fail, 392 'const_list_remove_range_test': fail,
394 'const_list_set_range_test': fail, 393 'const_list_set_range_test': fail,
395 'data_uri_test': fail,
396 'double_parse_test_01_multi': fail, 394 'double_parse_test_01_multi': fail,
397 'error_stack_trace1_test': fail, 395 'error_stack_trace1_test': fail,
398 'error_stack_trace2_test': fail, 396 'error_stack_trace2_test': fail,
399 'file_resource_test': skip_fail, // crashes during import load. 397 'file_resource_test': skip_fail, // crashes during import load.
400 'from_environment_const_type_test_01_multi': skip_fail, // constructor th rows 398 'from_environment_const_type_test_01_multi': skip_fail, // constructor th rows
401 'from_environment_const_type_test_05_multi': skip_fail, // constructor th rows 399 'from_environment_const_type_test_05_multi': skip_fail, // constructor th rows
402 'from_environment_const_type_test_10_multi': skip_fail, // constructor th rows 400 'from_environment_const_type_test_10_multi': skip_fail, // constructor th rows
403 'from_environment_const_type_test_15_multi': skip_fail, // constructor th rows 401 'from_environment_const_type_test_15_multi': skip_fail, // constructor th rows
404 'from_environment_const_type_test_none_multi': skip_fail, // constructor throws 402 'from_environment_const_type_test_none_multi': skip_fail, // constructor throws
405 'from_environment_const_type_undefined_test_01_multi': skip_fail, // cons tructor throws 403 'from_environment_const_type_undefined_test_01_multi': skip_fail, // cons tructor throws
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 'stacktrace_fromstring_test': fail, 441 'stacktrace_fromstring_test': fail,
444 'string_from_environment2_test': fail, 442 'string_from_environment2_test': fail,
445 'string_from_environment_test': fail, 443 'string_from_environment_test': fail,
446 'string_from_list_test': skip_timeout, 444 'string_from_list_test': skip_timeout,
447 'string_fromcharcodes_test': skip_timeout, 445 'string_fromcharcodes_test': skip_timeout,
448 'string_operations_with_null_test': fail, 446 'string_operations_with_null_test': fail,
449 'symbol_reserved_word_test_06_multi': fail, 447 'symbol_reserved_word_test_06_multi': fail,
450 'symbol_reserved_word_test_09_multi': fail, 448 'symbol_reserved_word_test_09_multi': fail,
451 'symbol_reserved_word_test_12_multi': fail, 449 'symbol_reserved_word_test_12_multi': fail,
452 'throw_half_surrogate_pair_test_01_multi': fail, 450 'throw_half_surrogate_pair_test_01_multi': fail,
453 'uri_test': fail, 451 // TODO(rnystrom): Times out because it tests a huge number of
454 'uri_file_test': fail, 452 // combinations of URLs (4 * 5 * 5 * 8 * 6 * 6 * 4 = 115200).
455 'uri_normalize_path_test': fail, 453 'uri_parse_test': skip_timeout,
456 'uri_normalize_test': fail,
457 'uri_parameters_all_test': fail,
458 'uri_parse_test': fail,
459 }, 454 },
460 455
461 'lib/typed_data': { 456 'lib/convert': {
462 // No bigint or int64 support 457 // TODO(rnystrom): A lot of the convert tests timeout. Some do pass if
floitsch 2016/05/10 16:37:05 Some of the utf8 tests do test a *lot* of unicode
463 'int32x4_bigint_test': skip_fail, 458 // you increase the time by a large amount, but it's pretty gratuitous.
464 'int64_list_load_store_test': skip_fail, 459 // I'm not sure why they are so slow. One guess is that they are spewing
465 'typed_data_hierarchy_int64_test': skip_fail, 460 // a ton of warnings, that slow down the test.
466 'typed_data_list_test': fail, 461 'chunked_conversion_utf84_test': skip_timeout,
462 'chunked_conversion_utf88_test': skip_timeout,
463 'chunked_conversion_utf8_test': skip_timeout,
467 464
468 // TODO(vsm): List.toString is different in DDC 465 // TODO(rnystrom): Strong mode cast failures.
469 // https://github.com/dart-lang/dev_compiler/issues/445 466 'codec1_test': skip_fail,
470 'setRange_1_test': skip_fail, 467 'encoding_test': skip_fail,
471 'setRange_2_test': skip_fail, 468
472 'setRange_3_test': skip_fail, 469 // TODO(rnystrom): If this test is enabled, karma gets confused and
473 'setRange_4_test': skip_fail, 470 // disconnects randomly.
474 'setRange_5_test': skip_fail, 471 'json_lib_test': skip_fail,
472
473 'json_utf8_chunk_test': skip_timeout,
474
475 // TODO(rnystrom): Strong mode cast failure.
476 'line_splitter_test': skip_fail,
477
478 'streamed_conversion_json_encode1_test': skip_timeout,
479 'streamed_conversion_json_utf8_decode_test': skip_timeout,
480 'streamed_conversion_json_utf8_encode_test': skip_timeout,
481 'streamed_conversion_utf8_decode_test': skip_timeout,
482 'streamed_conversion_utf8_encode_test': skip_timeout,
483 'utf85_test': skip_timeout,
475 }, 484 },
476 485
477 // TODO(jacobr): enable more of the html tests in unittest once they have 486 // TODO(jacobr): enable more of the html tests in unittest once they have
478 // more hope of passing. Triage tests that can never run in this test 487 // more hope of passing. Triage tests that can never run in this test
479 // runner and track them separately. 488 // runner and track them separately.
480 'lib/html': { 489 'lib/html': {
481 'async_spawnuri_test': ['unittest', 'skip', 'fail'], 490 'async_spawnuri_test': ['unittest', 'skip', 'fail'],
482 'async_test': ['unittest', 'skip', 'fail'], 491 'async_test': ['unittest', 'skip', 'fail'],
483 'audiobuffersourcenode_test': ['unittest', 'skip', 'fail'], 492 'audiobuffersourcenode_test': ['unittest', 'skip', 'fail'],
484 'audiocontext_test': ['unittest', 'skip', 'fail'], 493 'audiocontext_test': ['unittest', 'skip', 'fail'],
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 'worker_test': ['unittest', 'skip', 'fail'], 639 'worker_test': ['unittest', 'skip', 'fail'],
631 'wrapping_collections_test': ['unittest', 'skip', 'fail'], 640 'wrapping_collections_test': ['unittest', 'skip', 'fail'],
632 'xhr_cross_origin_test': ['unittest', 'skip', 'fail'], 641 'xhr_cross_origin_test': ['unittest', 'skip', 'fail'],
633 'xhr_test': ['unittest', 'skip', 'fail'], 642 'xhr_test': ['unittest', 'skip', 'fail'],
634 'xsltprocessor_test': ['unittest', 'skip', 'fail'], 643 'xsltprocessor_test': ['unittest', 'skip', 'fail'],
635 644
636 'js_typed_interop_default_arg_test_none_multi': ['unittest', 'skip', 'fail '], 645 'js_typed_interop_default_arg_test_none_multi': ['unittest', 'skip', 'fail '],
637 'js_typed_interop_default_arg_test_explicit_argument_multi': ['unittest', 'skip', 'fail'], 646 'js_typed_interop_default_arg_test_explicit_argument_multi': ['unittest', 'skip', 'fail'],
638 'js_typed_interop_default_arg_test_default_value_multi': ['unittest', 'ski p', 'fail'] 647 'js_typed_interop_default_arg_test_default_value_multi': ['unittest', 'ski p', 'fail']
639 }, 648 },
649
650 'lib/typed_data': {
651 // No bigint or int64 support
652 'int32x4_bigint_test': skip_fail,
653 'int64_list_load_store_test': skip_fail,
654 'typed_data_hierarchy_int64_test': skip_fail,
655 'typed_data_list_test': fail,
656
657 // TODO(vsm): List.toString is different in DDC
658 // https://github.com/dart-lang/dev_compiler/issues/445
659 'setRange_1_test': skip_fail,
660 'setRange_2_test': skip_fail,
661 'setRange_3_test': skip_fail,
662 'setRange_4_test': skip_fail,
663 'setRange_5_test': skip_fail,
664 },
640 }; 665 };
641 666
642 let unittest_tests = []; 667 let unittest_tests = [];
643 668
644 let languageTestPattern = new RegExp('(.*)/([^/]*_test[^/]*)'); 669 let languageTestPattern = new RegExp('(.*)/([^/]*_test[^/]*)');
645 html_config.useHtmlConfiguration(); 670 html_config.useHtmlConfiguration();
646 // We need to let Dart unittest control when tests are run not mocha. 671 // We need to let Dart unittest control when tests are run not mocha.
647 // mocha.allowUncaught(true); 672 // mocha.allowUncaught(true);
648 let dartUnittestsLeft = 0; 673 let dartUnittestsLeft = 0;
649 for (let testFile of dart_library.libraries()) { 674 for (let testFile of dart_library.libraries()) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 let mochaOnError; 756 let mochaOnError;
732 // We run these tests in a mocha test wrapper to avoid the confusing failure 757 // We run these tests in a mocha test wrapper to avoid the confusing failure
733 // case of dart unittests being interleaved with mocha tests. 758 // case of dart unittests being interleaved with mocha tests.
734 // In practice we are really just suppressing all mocha test behavior while 759 // In practice we are really just suppressing all mocha test behavior while
735 // Dart unittests run and then re-enabling it when the dart tests complete. 760 // Dart unittests run and then re-enabling it when the dart tests complete.
736 test('run all dart unittests', function(done) { // 'function' to allow `this.t imeout` 761 test('run all dart unittests', function(done) { // 'function' to allow `this.t imeout`
737 this.enableTimeouts(false); 762 this.enableTimeouts(false);
738 // Suppress mocha on-error handling because it will mess up unittests. 763 // Suppress mocha on-error handling because it will mess up unittests.
739 mochaOnError = window.onerror; 764 mochaOnError = window.onerror;
740 window.onerror = function(err, url, line) { 765 window.onerror = function(err, url, line) {
741 console.error(err, url, line); 766 console.error(err, url, line);
742 }; 767 };
743 window.addEventListener('message', (event) => { 768 window.addEventListener('message', (event) => {
744 if (event.data == 'unittest-suite-done') { 769 if (event.data == 'unittest-suite-done') {
745 window.console.log("Done running unittests"); 770 window.console.log("Done running unittests");
746 let output = document.body.textContent; 771 let output = document.body.textContent;
747 // Restore the Mocha onerror handler in case future tests need to run. 772 // Restore the Mocha onerror handler in case future tests need to run.
748 window.onerror = mochaOnError; 773 window.onerror = mochaOnError;
749 this.enableTimeouts(true); 774 this.enableTimeouts(true);
750 775
751 var matches = output.match(/ERROR/g); 776 var matches = output.match(/ERROR/g);
(...skipping 12 matching lines...) Expand all
764 789
765 for (let action of unittest_tests) { 790 for (let action of unittest_tests) {
766 try { 791 try {
767 action(); 792 action();
768 } catch (e) { 793 } catch (e) {
769 console.error("Caught error tying to setup test:", e); 794 console.error("Caught error tying to setup test:", e);
770 } 795 }
771 } 796 }
772 }); 797 });
773 })(); 798 })();
OLDNEW
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | test/codegen/lib/convert/ascii_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698