<!DOCTYPE html>
<html>
  <head>
    <tal:block replace="resource_library:zeit.cms.javascript"/>
  </head>
  <body>
    <div id="testwidget" style="width: 20em; height:20em;">
      <input type="hidden" name="testwidget" value="" />
      <div class="object-reference landing-zone-candidate"></div>
      <input type="text" id="testwidget.url" name="testwidget.url" />
    </div>

    <div id="result">
    </div>

    <script type="text/javascript">
      var application_url = '../../../';
      zeit.cms.widget_under_test = new zeit.cms.DropObjectWidget(
          'testwidget', ['type-unknown'], '@@object-details');

      var d = zeit.cms.load_object_details(
        'http://xml.zeit.de/testcontent', '@@object-details');
      d.addCallback(function(result) {
        var container = document.getElementById('result');
        container.innerHTML = result;
        jQuery(container).trigger_fragment_ready();
      });
    </script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <tal:block replace="resource_library:zeit.cms.javascript"/>
  </head>
  <body>
    <div id="testwidget" style="width: 20em; height:20em;">
      <input type="hidden" name="testwidget" value="" />
      <div class="object-reference landing-zone-candidate"></div>
      <input type="text" id="testwidget.url" name="testwidget.url" />
    </div>

    <div id="result">
    </div>

    <script type="text/javascript">
      var application_url = '../../../';
      zeit.cms.widget_under_test = new zeit.cms.DropObjectWidget(
          'testwidget', ['type-testcontenttype'], '@@object-details');

      var d = zeit.cms.load_object_details(
        'http://xml.zeit.de/testcontent', '@@object-details');
      d.addCallback(function(result) {
        var container = document.getElementById('result');
        container.innerHTML = result;
        jQuery(container).trigger_fragment_ready();
      });
    </script>
  </body>
</html>

Fix test, testcontenttype declares its type now properly since commit:83845bca4b98
Fix test, testcontenttype declares its type now properly since commit:83845bca4b98
