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

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

Issue 10696092: Initial tests for JS interop (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 if (new File.fromPath(pngPath).existsSync()) { 587 if (new File.fromPath(pngPath).existsSync()) {
588 expectedOutput = pngPath; 588 expectedOutput = pngPath;
589 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); 589 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
590 } else if (new File.fromPath(txtPath).existsSync()) { 590 } else if (new File.fromPath(txtPath).existsSync()) {
591 expectedOutput = txtPath; 591 expectedOutput = txtPath;
592 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); 592 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
593 } else { 593 } else {
594 content = getHtmlContents( 594 content = getHtmlContents(
595 filename, 595 filename,
596 '$filePrefix${dartDir.append("lib/unittest/test_controller.js")}', 596 '$filePrefix${dartDir.append("lib/unittest/test_controller.js")}',
597 '$filePrefix${dartDir.append("client/dart.js")}',
597 scriptType, 598 scriptType,
598 '$filePrefix$scriptPath'); 599 '$filePrefix$scriptPath');
599 } 600 }
600 htmlTest.writeStringSync(content); 601 htmlTest.writeStringSync(content);
601 htmlTest.closeSync(); 602 htmlTest.closeSync();
602 603
603 // Construct the command(s) that compile all the inputs needed by the 604 // Construct the command(s) that compile all the inputs needed by the
604 // browser test. For running Dart in DRT, this will be noop commands. 605 // browser test. For running Dart in DRT, this will be noop commands.
605 List<Command> commands = []; 606 List<Command> commands = [];
606 if (compiler != 'none') { 607 if (compiler != 'none') {
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 * $noCrash tests are expected to be flaky but not crash 1395 * $noCrash tests are expected to be flaky but not crash
1395 * $pass tests are expected to pass 1396 * $pass tests are expected to pass
1396 * $failOk tests are expected to fail that we won't fix 1397 * $failOk tests are expected to fail that we won't fix
1397 * $fail tests are expected to fail that we should fix 1398 * $fail tests are expected to fail that we should fix
1398 * $crash tests are expected to crash that we should fix 1399 * $crash tests are expected to crash that we should fix
1399 * $timeout tests are allowed to timeout 1400 * $timeout tests are allowed to timeout
1400 """; 1401 """;
1401 print(report); 1402 print(report);
1402 } 1403 }
1403 } 1404 }
OLDNEW
« tests/html/js_interop_2_test.dart ('K') | « tools/testing/dart/browser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698