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

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

Issue 1840203002: More analyzer updates, and handle negative_tests (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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
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 _isolate_helper = dart_library.import('dart/_isolate_helper'); 8 let _isolate_helper = dart_library.import('dart/_isolate_helper');
9 _isolate_helper.startRootIsolate(function() {}, []); 9 _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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 'deferred_load_library_wrong_args_test_01_multi', 310 'deferred_load_library_wrong_args_test_01_multi',
311 'deferred_load_library_wrong_args_test_none_multi', 311 'deferred_load_library_wrong_args_test_none_multi',
312 'external_test_21_multi', 312 'external_test_21_multi',
313 'external_test_24_multi', 313 'external_test_24_multi',
314 'main_not_a_function_test_01_multi', 314 'main_not_a_function_test_01_multi',
315 'multiline_newline_test_04_multi', 315 'multiline_newline_test_04_multi',
316 'multiline_newline_test_05_multi', 316 'multiline_newline_test_05_multi',
317 'multiline_newline_test_06_multi', 317 'multiline_newline_test_06_multi',
318 'multiline_newline_test_none_multi', 318 'multiline_newline_test_none_multi',
319 'no_main_test_01_multi', 319 'no_main_test_01_multi',
320
321 // https://github.com/dart-lang/sdk/issues/26123
322 'bad_raw_string_negative_test',
323
324 // https://github.com/dart-lang/sdk/issues/26124
325 'prefix10_negative_test'
320 ]), 326 ]),
321 helpers: new Set([ 327 helpers: new Set([
322 'library_prefixes_test1', 328 'library_prefixes_test1',
323 'library_prefixes_test2', 329 'library_prefixes_test2',
324 'top_level_prefixed_library_test', 330 'top_level_prefixed_library_test',
325 ]) 331 ])
326 }, 332 },
327 'lib/typed_data': { 333 'lib/typed_data': {
328 expectedFailures: new Set([ 334 expectedFailures: new Set([
329 // TODO(vsm): Right shift should not propagate sign 335 // TODO(vsm): Right shift should not propagate sign
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // For now we skip tests that expect failure. 391 // For now we skip tests that expect failure.
386 if (status[s].expectedFailures.has(name)) { 392 if (status[s].expectedFailures.has(name)) {
387 console.debug('Skipping known failure: ' + name); 393 console.debug('Skipping known failure: ' + name);
388 continue; 394 continue;
389 } 395 }
390 396
391 test(name, (done) => { 397 test(name, (done) => {
392 async_helper.asyncTestInitialize(done); 398 async_helper.asyncTestInitialize(done);
393 console.debug('Running ' + s + ' test: ' + name); 399 console.debug('Running ' + s + ' test: ' + name);
394 400
395 dart_library.import(s + '/' + name).main(); 401 let mainLibrary = dart_library.import(s + '/' + name);
402 if (/negative_test/.test(name)) {
403 assert.throws(mainLibrary.main);
404 } else {
405 mainLibrary.main();
406 }
396 407
397 if (!async_helper.asyncTestStarted) done(); 408 if (!async_helper.asyncTestStarted) done();
398 }); 409 });
399 } 410 }
400 } 411 }
401 }); 412 });
402 } 413 }
403 414
404 dart_library.import('language/async_await_test_none_multi').main(); 415 dart_library.import('language/async_await_test_none_multi').main();
405 // TODO(vsm): Re-enable. 416 // TODO(vsm): Re-enable.
406 // See https://github.com/dart-lang/dev_compiler/issues/456 417 // See https://github.com/dart-lang/dev_compiler/issues/456
407 // dart_library.import('language/async_star_test_none_multi').main(); 418 // dart_library.import('language/async_star_test_none_multi').main();
408 419
409 })(); 420 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698