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

Unified Diff: pkg/docgen/test/util.dart

Issue 1364553002: remove docgen source and targets from build (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: remove scripts Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/docgen/test/typedef_test.dart ('k') | sdk/bin/dartdocgen » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/test/util.dart
diff --git a/pkg/docgen/test/util.dart b/pkg/docgen/test/util.dart
deleted file mode 100644
index 3f7f2ed8f08c3e9c42de02252989c539850892a1..0000000000000000000000000000000000000000
--- a/pkg/docgen/test/util.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library docgen.test.util;
-
-import 'dart:convert';
-import 'dart:io';
-import 'package:path/path.dart' as p;
-import 'package:scheduled_test/descriptor.dart' as d;
-import 'package:scheduled_test/scheduled_test.dart';
-
-void scheduleTempDir() {
- var tempDir;
- schedule(() {
- return Directory.systemTemp
- .createTemp('docgen_test-')
- .then((dir) {
- tempDir = dir;
- d.defaultRoot = tempDir.path;
- });
- });
-
- currentSchedule.onComplete.schedule(() {
- d.defaultRoot = null;
- return tempDir.delete(recursive: true);
- });
-}
-
-String getMultiLibraryCodePath() {
- var currentScript = p.fromUri(Platform.script);
- var codeDir = p.join(p.dirname(currentScript), 'multi_library_code');
-
- assert(FileSystemEntity.isDirectorySync(codeDir));
-
- return codeDir;
-}
-
-final Matcher hasSortedLines = predicate((String input) {
- var lines = new LineSplitter().convert(input);
-
- var sortedLines = new List.from(lines)..sort();
-
- var orderedMatcher = orderedEquals(sortedLines);
- return orderedMatcher.matches(lines, {});
-}, 'String has sorted lines');
-
-final Matcher isJsonMap = predicate((input) {
- try {
- return JSON.decode(input) is Map;
- } catch (e) {
- return false;
- }
-}, 'Output is JSON encoded Map');
« no previous file with comments | « pkg/docgen/test/typedef_test.dart ('k') | sdk/bin/dartdocgen » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698