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

Unified Diff: test/runner/browser/runner_test.dart

Issue 1085353004: Ignore irrelevant link tags in custom HTML. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/browser/runner_test.dart
diff --git a/test/runner/browser/runner_test.dart b/test/runner/browser/runner_test.dart
index 5bad1c55db9965e99c69ec01e7dd49fc888937b3..f2d3c6381201d95aead5a72ddcc54db26cbe8add 100644
--- a/test/runner/browser/runner_test.dart
+++ b/test/runner/browser/runner_test.dart
@@ -343,6 +343,26 @@ void main() {
var result = _runUnittest(["-p", "chrome", "test.dart"]);
expect(result.exitCode, equals(0));
});
+
+ // Regression test for https://github.com/dart-lang/test/issues/82.
+ test("ignores irrelevant link tags", () {
+ new File(p.join(_sandbox, "test.html")).writeAsStringSync("""
+<html>
+<head>
+ <link rel='x-dart-test-not'>
+ <link rel='other' href='test.dart'>
+ <link rel='x-dart-test' href='test.dart'>
+ <script src="packages/test/dart.js"></script>
+</head>
+<body>
+ <div id="foo"></div>
+</body>
+</html>
+""");
+
+ var result = _runUnittest(["-p", "content-shell", "test.dart"]);
+ expect(result.exitCode, equals(0));
+ });
});
});
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698