ignore .pub directory, unignore out directory
diff --git a/pkgs/markdown/pubspec.lock b/pkgs/markdown/pubspec.lock index b8a4fd6..ad5b554 100644 --- a/pkgs/markdown/pubspec.lock +++ b/pkgs/markdown/pubspec.lock
@@ -104,15 +104,15 @@ source_span: description: source_span source: hosted - version: "1.1.4" + version: "1.2.0" stack_trace: description: stack_trace source: hosted - version: "1.4.1" + version: "1.4.2" string_scanner: description: string_scanner source: hosted - version: "0.1.3+1" + version: "0.1.4" test: description: test source: hosted @@ -128,4 +128,4 @@ yaml: description: yaml source: hosted - version: "2.1.3" + version: "2.1.5"
diff --git a/pkgs/markdown/test/markdown_test.dart b/pkgs/markdown/test/markdown_test.dart index 736488b..c2804c4 100644 --- a/pkgs/markdown/test/markdown_test.dart +++ b/pkgs/markdown/test/markdown_test.dart
@@ -33,7 +33,7 @@ validateCore('can resolve link containing inline tags', ''' resolve [*star* _underline_] thing ''', ''' -<p>resolve ~=[,,_*star* _underline__,,]:3 thing</p>\n +<p>resolve ~=[,,_*star* _underline__,,]:3 thing</p> ''', linkResolver: nyanResolver); });
diff --git a/pkgs/markdown/test/util.dart b/pkgs/markdown/test/util.dart index 309bfaf..414bdf0 100644 --- a/pkgs/markdown/test/util.dart +++ b/pkgs/markdown/test/util.dart
@@ -5,6 +5,7 @@ library markdown.test.util; import 'dart:io'; +import 'dart:mirrors'; import 'package:markdown/markdown.dart'; import 'package:path/path.dart' as p; @@ -14,7 +15,15 @@ /// Run tests defined in "*.unit" files inside directory [name]. void testDirectory(String name) { - var dir = p.join(p.dirname(p.fromUri(Platform.script)), name); + + // Locate the "test" directory. Use mirrors so that this works with the test + // package, which loads this suite into an isolate. + var testDir = p.dirname(currentMirrorSystem() + .findLibrary(#markdown.test.util) + .uri + .path); + + var dir = p.join(testDir, name); var entries = new Directory(dir).listSync().where((e) => e.path.endsWith('.unit'));