Index: core/modules/filter/tests/src/FunctionalJavascript/FilterIntegrationTest.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>windows-1252 =================================================================== --- core/modules/filter/tests/src/FunctionalJavascript/FilterIntegrationTest.php (revision ) +++ core/modules/filter/tests/src/FunctionalJavascript/FilterIntegrationTest.php (revision ) @@ -0,0 +1,48 @@ +drupalCreateUser([ + 'access toolbar', + 'administer site configuration', + 'access content overview', + ]); + $this->drupalLogin($admin_user); + + $this->drupalGet('admin/config/content/formats/manage/restricted_html'); + $page = $this->getSession()->getPage(); + + // Test that javascript is run when adding an img tag with 'onerror'. + $allowed_html_field = $page->findById('edit-filters-filter-html-settings-allowed-html'); + $allowed_html_field->focus(); + $allowed_html_field->setValue($allowed_html_field->getValue() . ' '); + $allowed_html_field->blur(); + + // TODO: assert something here. But, what exactly to assert? + $javascript = <<assertJsCondition($javascript); + } + +}