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

Side by Side Diff: tools/dom/docs/test/docs_test.dart

Issue 23465028: Disable 20s unittest timeout for docs_test and dartdoc_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « sdk/lib/_internal/dartdoc/test/dartdoc_test.dart ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 docs_test; 5 library docs_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
11 11
12 import '../bin/docs.dart'; 12 import '../bin/docs.dart';
13 import '../lib/docs.dart'; 13 import '../lib/docs.dart';
14 14
15 final testJsonPath = path.normalize(path.join(scriptDir, 'test.json')); 15 final testJsonPath = path.normalize(path.join(scriptDir, 'test.json'));
16 16
17 main() { 17 main() {
18 // Some tests take more than the default 20 second unittest timeout.
19 unittestConfiguration.timeout = null;
18 group('docs', () { 20 group('docs', () {
19 var oldJson = new File(json_path); 21 var oldJson = new File(json_path);
20 var testJson = new File(testJsonPath); 22 var testJson = new File(testJsonPath);
21 23
22 tearDown(() { 24 tearDown(() {
23 // Clean up. 25 // Clean up.
24 if (testJson.existsSync()) { 26 if (testJson.existsSync()) {
25 testJson.deleteSync(); 27 testJson.deleteSync();
26 } 28 }
27 assert(!testJson.existsSync()); 29 assert(!testJson.existsSync());
(...skipping 19 matching lines...) Expand all
47 49
48 // Ensure that there's nothing different between the new JSON and old. 50 // Ensure that there's nothing different between the new JSON and old.
49 expect(testJson.readAsStringSync(), equals(oldJson.readAsStringSync())); 51 expect(testJson.readAsStringSync(), equals(oldJson.readAsStringSync()));
50 52
51 // Ensure that the old JSON file didn't actually change. 53 // Ensure that the old JSON file didn't actually change.
52 expect(oldJsonModified, equals(oldJson.lastModifiedSync())); 54 expect(oldJsonModified, equals(oldJson.lastModifiedSync()));
53 }), completes); 55 }), completes);
54 }); 56 });
55 }); 57 });
56 } 58 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/dartdoc/test/dartdoc_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698