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

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

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 String optionsName = ''; 445 String optionsName = '';
446 if (optionsFromFile['vmOptions'].length > 1) { 446 if (optionsFromFile['vmOptions'].length > 1) {
447 optionsName = Strings.join(vmOptions, '-').replaceAll('-','') 447 optionsName = Strings.join(vmOptions, '-').replaceAll('-','')
448 .replaceAll('=','') 448 .replaceAll('=','')
449 .replaceAll('/',''); 449 .replaceAll('/','');
450 } 450 }
451 Directory tempDir = createOutputDirectory(testPath, optionsName); 451 Directory tempDir = createOutputDirectory(testPath, optionsName);
452 452
453 String dartWrapperFilename = '${tempDir.path}/test.dart'; 453 String dartWrapperFilename = '${tempDir.path}/test.dart';
454 String compiledDartWrapperFilename = '${tempDir.path}/test.js'; 454 String compiledDartWrapperFilename = '${tempDir.path}/test.js';
455 String domLibraryImport = (component == 'chromium') ? 455 String domLibraryImport = 'dart:dom';
Siggi Cherem (dart-lang) 2012/03/01 16:21:24 this is just used to replace it in a template. fee
456 '$dartDir/client/testing/unittest/dom_for_unittest.dart' : 'dart:dom';
457 456
458 String htmlPath = '${tempDir.path}/test.html'; 457 String htmlPath = '${tempDir.path}/test.html';
459 if (!isWebTest) { 458 if (!isWebTest) {
460 // test.dart will import the dart test directly, if it is a library, 459 // test.dart will import the dart test directly, if it is a library,
461 // or indirectly through test_as_library.dart, if it is not. 460 // or indirectly through test_as_library.dart, if it is not.
462 String dartLibraryFilename; 461 String dartLibraryFilename;
463 if (isLibraryDefinition) { 462 if (isLibraryDefinition) {
464 dartLibraryFilename = testPath; 463 dartLibraryFilename = testPath;
465 } else { 464 } else {
466 dartLibraryFilename = 'test_as_library.dart'; 465 dartLibraryFilename = 'test_as_library.dart';
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 * $noCrash tests are expected to be flaky but not crash 1170 * $noCrash tests are expected to be flaky but not crash
1172 * $pass tests are expected to pass 1171 * $pass tests are expected to pass
1173 * $failOk tests are expected to fail that we won't fix 1172 * $failOk tests are expected to fail that we won't fix
1174 * $fail tests are expected to fail that we should fix 1173 * $fail tests are expected to fail that we should fix
1175 * $crash tests are expected to crash that we should fix 1174 * $crash tests are expected to crash that we should fix
1176 * $timeout tests are allowed to timeout 1175 * $timeout tests are allowed to timeout
1177 """; 1176 """;
1178 print(report); 1177 print(report);
1179 } 1178 }
1180 } 1179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698