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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/validator/compiled_dartdoc_test.dart

Issue 937243002: Revert "Revert "Use native async/await support in pub."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:scheduled_test/scheduled_test.dart';
6
7 import '../../lib/src/entrypoint.dart';
8 import '../../lib/src/validator.dart';
9 import '../../lib/src/validator/compiled_dartdoc.dart';
10 import '../descriptor.dart' as d;
11 import '../test_pub.dart';
12 import 'utils.dart';
13
14 Validator compiledDartdoc(Entrypoint entrypoint) =>
15 new CompiledDartdocValidator(entrypoint);
16
17 main() {
18 initConfig();
19
20 group('should consider a package valid if it', () {
21 setUp(d.validPackage.create);
22
23 integration('looks normal', () => expectNoValidationError(compiledDartdoc));
24
25 integration('has most but not all files from compiling dartdoc', () {
26 d.dir(
27 appPath,
28 [
29 d.dir(
30 "doc-out",
31 [
32 d.file("nav.json", ""),
33 d.file("index.html", ""),
34 d.file("styles.css", ""),
35 d.file("dart-logo-small.png", "")])]).create();
36 expectNoValidationError(compiledDartdoc);
37 });
38
39 integration('contains compiled dartdoc in a hidden directory', () {
40 ensureGit();
41
42 d.dir(
43 appPath,
44 [
45 d.dir(
46 ".doc-out",
47 [
48 d.file('nav.json', ''),
49 d.file('index.html', ''),
50 d.file('styles.css', ''),
51 d.file('dart-logo-small.png', ''),
52 d.file('client-live-nav.js', '')])]).create();
53 expectNoValidationError(compiledDartdoc);
54 });
55
56 integration('contains compiled dartdoc in a gitignored directory', () {
57 ensureGit();
58
59 d.git(
60 appPath,
61 [
62 d.dir(
63 "doc-out",
64 [
65 d.file('nav.json', ''),
66 d.file('index.html', ''),
67 d.file('styles.css', ''),
68 d.file('dart-logo-small.png', ''),
69 d.file('client-live-nav.js', '')]),
70 d.file(".gitignore", "/doc-out")]).create();
71 expectNoValidationError(compiledDartdoc);
72 });
73 });
74
75 group("should consider a package invalid if it", () {
76 integration('contains compiled dartdoc', () {
77 d.validPackage.create();
78
79 d.dir(
80 appPath,
81 [
82 d.dir(
83 'doc-out',
84 [
85 d.file('nav.json', ''),
86 d.file('index.html', ''),
87 d.file('styles.css', ''),
88 d.file('dart-logo-small.png', ''),
89 d.file('client-live-nav.js', '')])]).create();
90
91 expectValidationWarning(compiledDartdoc);
92 });
93
94 integration(
95 'contains compiled dartdoc in a non-gitignored hidden ' 'directory',
96 () {
97 ensureGit();
98
99 d.validPackage.create();
100
101 d.git(
102 appPath,
103 [
104 d.dir(
105 '.doc-out',
106 [
107 d.file('nav.json', ''),
108 d.file('index.html', ''),
109 d.file('styles.css', ''),
110 d.file('dart-logo-small.png', ''),
111 d.file('client-live-nav.js', '')])]).create();
112
113 expectValidationWarning(compiledDartdoc);
114 });
115 });
116 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698