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

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 9368008: Additional flakiness reducing changes. Also rerun DRT on false positive tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 if (new Platform().operatingSystem() == 'windows') { 488 if (new Platform().operatingSystem() == 'windows') {
489 // Firefox on Windows does not like absolute file path names that start 489 // Firefox on Windows does not like absolute file path names that start
490 // with 'C:' adding 'file:///' solves the problem. 490 // with 'C:' adding 'file:///' solves the problem.
491 filePrefix = 'file:///'; 491 filePrefix = 'file:///';
492 } 492 }
493 htmlTest.writeStringSync(GetHtmlContents( 493 htmlTest.writeStringSync(GetHtmlContents(
494 filename, 494 filename,
495 '$filePrefix$dartDir/client/testing/unittest/test_controller.js', 495 '$filePrefix$dartDir/client/testing/unittest/test_controller.js',
496 scriptType, 496 scriptType,
497 filePrefix + scriptPath)); 497 filePrefix + scriptPath));
498 htmlTest.flushSync();
499 htmlTest.closeSync(); 498 htmlTest.closeSync();
500 499
501 List<String> compilerArgs = TestUtils.standardOptions(configuration); 500 List<String> compilerArgs = TestUtils.standardOptions(configuration);
502 String compilerExecutable = TestUtils.compilerPath(configuration); 501 String compilerExecutable = TestUtils.compilerPath(configuration);
503 switch (component) { 502 switch (component) {
504 case 'chromium': 503 case 'chromium':
505 compilerArgs.addAll(['--work', tempDir.path]); 504 compilerArgs.addAll(['--work', tempDir.path]);
506 compilerArgs.addAll(vmOptions); 505 compilerArgs.addAll(vmOptions);
507 compilerArgs.add('--ignore-unrecognized-flags'); 506 compilerArgs.add('--ignore-unrecognized-flags');
508 // TODO(zundel): remove assumption of generated code from dartc 507 // TODO(zundel): remove assumption of generated code from dartc
(...skipping 19 matching lines...) Expand all
528 compilerExecutable = null; 527 compilerExecutable = null;
529 compilerArgs = null; 528 compilerArgs = null;
530 break; 529 break;
531 default: 530 default:
532 Expect.fail('unimplemented component $component'); 531 Expect.fail('unimplemented component $component');
533 } 532 }
534 533
535 List<String> args; 534 List<String> args;
536 if (component == 'webdriver') { 535 if (component == 'webdriver') {
537 args = ['$dartDir/tools/testing/run_selenium.py', '--out=$htmlPath', 536 args = ['$dartDir/tools/testing/run_selenium.py', '--out=$htmlPath',
537 '--timeout=${configuration["timeout"] - 2}',
538 '--browser=${configuration["browser"]}']; 538 '--browser=${configuration["browser"]}'];
539 } else { 539 } else {
540 args = [ 540 args = [
541 '$dartDir/tools/testing/drt-trampoline.py', 541 '$dartDir/tools/testing/drt-trampoline.py',
542 dumpRenderTreeFilename, 542 dumpRenderTreeFilename,
543 '--no-timeout' 543 '--no-timeout'
544 ]; 544 ];
545 if (component == 'dartium') { 545 if (component == 'dartium') {
546 var dartFlags = ['--ignore-unrecognized-flags']; 546 var dartFlags = ['--ignore-unrecognized-flags'];
547 if (configuration["checked"]) { 547 if (configuration["checked"]) {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 * $noCrash tests are expected to be flaky but not crash 1124 * $noCrash tests are expected to be flaky but not crash
1125 * $pass tests are expected to pass 1125 * $pass tests are expected to pass
1126 * $failOk tests are expected to fail that we won't fix 1126 * $failOk tests are expected to fail that we won't fix
1127 * $fail tests are expected to fail that we should fix 1127 * $fail tests are expected to fail that we should fix
1128 * $crash tests are expected to crash that we should fix 1128 * $crash tests are expected to crash that we should fix
1129 * $timeout tests are allowed to timeout 1129 * $timeout tests are allowed to timeout
1130 """; 1130 """;
1131 print(report); 1131 print(report);
1132 } 1132 }
1133 } 1133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698