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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library dom_compat_test;
2
3 import 'dart:async';
4 import 'dart:io';
5 import 'package:unittest/unittest.dart';
6 import 'package:unittest/compact_vm_config.dart';
7 import 'package:html5lib/dom.dart';
8
9 part 'dom_compat_test_definitions.dart';
10
11 main() {
12 useCompactVMConfiguration();
13
14 registerDomCompatTests();
15
16 test('content_shell', () {
17 _runDrt('test/browser/browser_test.html');
18 });
19 }
20
21 void _runDrt(String htmlFile) {
22 final allPassedRegExp = new RegExp('All \\d+ tests passed');
23
24 final future = Process.run('content_shell', ['--dump-render-tree', htmlFile])
25 .then((ProcessResult pr) {
26 expect(pr.exitCode, 0);
27 expect(pr.stdout, matches(allPassedRegExp), reason: pr.stdout);
28 });
29
30 expect(future, completion(isNull));
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698