 var dp = new ForeignDOMParserSubclass();
      assert_equals(Object.getPrototypeOf(dp), ForeignDOMParserSubclass.prototype);
      assert_equals(object_realm(dp), "child window");
    }, "Subclass constructor in parent window with parent class in child window");

    test(function() {
      var dp = new child.ForeignDOMParserSubclass();
      assert_equals(Object.getPrototypeOf(dp), child.ForeignDOMParserSubclass.prototype);
      assert_equals(object_realm(dp), "parent window");
    }, "Subclass construct