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

Unified Diff: pkg/third_party/html5lib/test/dom_compat_test.dart

Issue 22375011: move html5lib code into dart svn repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: change location of html5lib to pkg/third_party/html5lib Created 7 years, 4 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
Index: pkg/third_party/html5lib/test/dom_compat_test.dart
diff --git a/pkg/third_party/html5lib/test/dom_compat_test.dart b/pkg/third_party/html5lib/test/dom_compat_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f95659bc0416e28db6c88f82a43ca7779ee23e38
--- /dev/null
+++ b/pkg/third_party/html5lib/test/dom_compat_test.dart
@@ -0,0 +1,31 @@
+library dom_compat_test;
+
+import 'dart:async';
+import 'dart:io';
+import 'package:unittest/unittest.dart';
+import 'package:unittest/compact_vm_config.dart';
+import 'package:html5lib/dom.dart';
+
+part 'dom_compat_test_definitions.dart';
+
+main() {
+ useCompactVMConfiguration();
+
+ registerDomCompatTests();
+
+ test('content_shell', () {
+ _runDrt('test/browser/browser_test.html');
+ });
+}
+
+void _runDrt(String htmlFile) {
+ final allPassedRegExp = new RegExp('All \\d+ tests passed');
+
+ final future = Process.run('content_shell', ['--dump-render-tree', htmlFile])
+ .then((ProcessResult pr) {
+ expect(pr.exitCode, 0);
+ expect(pr.stdout, matches(allPassedRegExp), reason: pr.stdout);
+ });
+
+ expect(future, completion(isNull));
+}

Powered by Google App Engine
This is Rietveld 408576698