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

Side by Side Diff: sdk/lib/_internal/dartdoc/test/dartdoc_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 | « no previous file | tools/dom/docs/test/docs_test.dart » ('j') | 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 /// Unit tests for doc. 5 /// Unit tests for doc.
6 library dartdocTests; 6 library dartdocTests;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 10
11 import 'package:path/path.dart' as path; 11 import 'package:path/path.dart' as path;
12 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 13
14 // TODO(rnystrom): Use "package:" URL (#4968). 14 // TODO(rnystrom): Use "package:" URL (#4968).
15 import '../lib/dartdoc.dart' as dd; 15 import '../lib/dartdoc.dart' as dd;
16 import '../lib/markdown.dart'; 16 import '../lib/markdown.dart';
17 import 'markdown_test.dart'; 17 import 'markdown_test.dart';
18 18
19 main() { 19 main() {
20 // Some tests take more than the default 20 second unittest timeout.
21 unittestConfiguration.timeout = null;
20 group('isAbsolute', () { 22 group('isAbsolute', () {
21 final doc = new dd.Dartdoc(); 23 final doc = new dd.Dartdoc();
22 24
23 test('returns false if there is no scheme', () { 25 test('returns false if there is no scheme', () {
24 expect(doc.isAbsolute('index.html'), isFalse); 26 expect(doc.isAbsolute('index.html'), isFalse);
25 expect(doc.isAbsolute('foo/index.html'), isFalse); 27 expect(doc.isAbsolute('foo/index.html'), isFalse);
26 expect(doc.isAbsolute('foo/bar/index.html'), isFalse); 28 expect(doc.isAbsolute('foo/bar/index.html'), isFalse);
27 }); 29 });
28 30
29 test('returns true if there is a scheme', () { 31 test('returns true if there is a scheme', () {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 } 275 }
274 } 276 }
275 277
276 278
277 validateDartdocMarkdown(String description, String markdown, 279 validateDartdocMarkdown(String description, String markdown,
278 String html) { 280 String html) {
279 var dartdoc = new dd.Dartdoc(); 281 var dartdoc = new dd.Dartdoc();
280 validate(description, markdown, html, linkResolver: dartdoc.dartdocResolver, 282 validate(description, markdown, html, linkResolver: dartdoc.dartdocResolver,
281 inlineSyntaxes: dartdoc.dartdocSyntaxes); 283 inlineSyntaxes: dartdoc.dartdocSyntaxes);
282 } 284 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/docs/test/docs_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698