diff --git a/tests/forms/RequirementsTest.php b/tests/forms/RequirementsTest.php
index f9f62a4f988..d39ece8f277 100644
--- a/tests/forms/RequirementsTest.php
+++ b/tests/forms/RequirementsTest.php
@@ -141,6 +141,28 @@ protected function setupCombinedRequirementsJavascriptAsyncDefer($backend, $asyn
);
}
+ public function testCustomType() {
+ /** @var Requirements_Backend $backend */
+ $backend = Injector::inst()->create('Requirements_Backend');
+ $basePath = $this->getCurrentRelativePath();
+ $this->setupRequirements($backend);
+
+ // require files normally (e.g. called from a FormField instance)
+ $backend->javascript($basePath . '/RequirementsTest_a.js', [
+ 'type' => 'application/json'
+ ]);
+ $backend->javascript($basePath . '/RequirementsTest_b.js');
+ $result = $backend->includeInHTML(self::$html_template);
+ $this->assertContains(
+ '";
+ $jsRequirements .= "";
}
}