anchor.diff:    });
   }
   
  -dummy() => print("Bad invocation of top-level function");
  +dummy() => print('Bad invocation of top-level function');
   
   main() {
     useHtmlConfiguration();
   
     test('Simple DOM isolate test', () {
  -    spawnDomFunction(isolateMain).then((sendPort) {
  -      sendPort.call('check').then(
  -        expectAsync1((msg) {
  -          expect(msg, equals('${window.location}'));
  -        }));
  +    spawnDomFunction(childDomIsolate).then((sendPort) {
  +      expect(sendPort.call('check'), completion('${window.location}'));
       });
     });
   
     test('Nested DOM isolates test', () {
  -    spawnDomFunction(isolateMainTrampoline).then((sendPort) {
  -      sendPort.call('check').then(
  -        expectAsync1((msg) {
  -          expect(msg, equals('${window.location}'));
  -        }));
  +    spawnDomFunction(trampolineIsolate).then((sendPort) {
  +      expect(sendPort.call('check'), completion('${window.location}'));
       });
  +  });
  +
  +  test('Spawn DOM isolate from pure', () {
  +    expect(spawnFunction(trampolineIsolate).call('check'),
  +           completion('${window.location}'));
     });
   
     test('Not function', () {
  
positive.code: import 'dart:html';
  import 'dart:isolate';
  
  isolateMain() {
    port.receive((msg, replyTo) {
      if (msg != 'check') {
        replyTo.send('wrong msg: $msg');
  
negative.code: 
    test('Masked local function', () {
      var local = 42;
      dummy() => print('Bad invocation of local function: $local');
      expect(() => spawnDomFunction(dummy), throws);
    });
  }
  