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