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

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

Issue 9314047: Get Firefox on Windows running. (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
« no previous file with comments | « tests/language/language.status ('k') | no next file » | 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) 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 #library("test_suite"); 5 #library("test_suite");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("status_file_parser.dart"); 8 #import("status_file_parser.dart");
9 #import("test_runner.dart"); 9 #import("test_runner.dart");
10 #import("multitest.dart"); 10 #import("multitest.dart");
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 String htmlFilename = getHtmlName(filename); 421 String htmlFilename = getHtmlName(filename);
422 while ('${tempDir.path}/../../$htmlFilename'.length >= 260) { 422 while ('${tempDir.path}/../../$htmlFilename'.length >= 260) {
423 htmlFilename = htmlFilename.substring(htmlFilename.length~/2); 423 htmlFilename = htmlFilename.substring(htmlFilename.length~/2);
424 } 424 }
425 htmlPath = '${tempDir.path}/../../$htmlFilename'; 425 htmlPath = '${tempDir.path}/../../$htmlFilename';
426 } 426 }
427 final String scriptPath = (component == 'dartium') ? 427 final String scriptPath = (component == 'dartium') ?
428 dartWrapperFilename : compiledDartWrapperFilename; 428 dartWrapperFilename : compiledDartWrapperFilename;
429 // Create the HTML file for the test. 429 // Create the HTML file for the test.
430 RandomAccessFile htmlTest = new File(htmlPath).openSync(FileMode.WRITE); 430 RandomAccessFile htmlTest = new File(htmlPath).openSync(FileMode.WRITE);
431 String filePrefix = '';
432 if (new Platform().operatingSystem() == 'windows') {
433 // Firefox on Windows does not like absolute file path names that start
434 // with 'C:' adding 'file:///' solves the problem.
435 filePrefix = 'file:///';
436 }
431 htmlTest.writeStringSync(GetHtmlContents( 437 htmlTest.writeStringSync(GetHtmlContents(
432 filename, 438 filename,
433 '$dartDir/client/testing/unittest/test_controller.js', 439 '$filePrefix$dartDir/client/testing/unittest/test_controller.js',
434 scriptType, 440 scriptType,
435 scriptPath)); 441 filePrefix + scriptPath));
436 htmlTest.closeSync(); 442 htmlTest.closeSync();
437 443
438 List<String> compilerArgs = TestUtils.standardOptions(configuration); 444 List<String> compilerArgs = TestUtils.standardOptions(configuration);
439 String compilerExecutable = TestUtils.compilerPath(configuration); 445 String compilerExecutable = TestUtils.compilerPath(configuration);
440 switch (component) { 446 switch (component) {
441 case 'chromium': 447 case 'chromium':
442 compilerArgs.addAll(['--work', tempDir.path]); 448 compilerArgs.addAll(['--work', tempDir.path]);
443 if (configuration['mode'] == 'release') { 449 if (configuration['mode'] == 'release') {
444 compilerArgs.add('--optimize'); 450 compilerArgs.add('--optimize');
445 } 451 }
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 * $noCrash tests are expected to be flaky but not crash 1066 * $noCrash tests are expected to be flaky but not crash
1061 * $pass tests are expected to pass 1067 * $pass tests are expected to pass
1062 * $failOk tests are expected to fail that we won't fix 1068 * $failOk tests are expected to fail that we won't fix
1063 * $fail tests are expected to fail that we should fix 1069 * $fail tests are expected to fail that we should fix
1064 * $crash tests are expected to crash that we should fix 1070 * $crash tests are expected to crash that we should fix
1065 * $timeout tests are allowed to timeout 1071 * $timeout tests are allowed to timeout
1066 """; 1072 """;
1067 print(report); 1073 print(report);
1068 } 1074 }
1069 } 1075 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698