Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class HtmlDecorator {
public static final String HIGHLIGHT_JS_CSS_PATH = "/highlightJs/styles/default.min.css"
public static final String BOOTSTRAP_CSS_PATH = "/META-INF/resources/webjars/bootstrap/5.3.8/css/bootstrap.css"

/**
* The external URL of the Bootstrap stylesheet.
*
* @deprecated Use {@link #BOOTSTRAP_CSS_PATH} when referring to the classpath resource.
*/
@Deprecated
public static final String BOOTSTRAP_CSS = resourceUrlExternalForm(BOOTSTRAP_CSS_PATH)

public static final String HTML5_DECLARATION = "<!DOCTYPE html>\n"
static final XHTML_MATHML_DOCTYPE = "<!DOCTYPE html PUBLIC\n \"-//OPENHTMLTOPDF//MATH XHTML Character Entities With MathML 1.0//EN\" \"\">\n"
public static final String OPENHTMLTOPDF_DECLARATION = "<!DOCTYPE html PUBLIC\n\"-//OPENHTMLTOPDF//MATH XHTML Character Entities With MathML 1.0//EN\" \"\">\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ class GmdTest extends AbstractGmdTest {
assertTrue(present.contains('bootstrap'), present)
}

@Test
void retainsDeprecatedBootstrapCssCompatibilityConstant() {
def resourceUrl = se.alipsa.gmd.core.HtmlDecorator.class
.getResource(se.alipsa.gmd.core.HtmlDecorator.BOOTSTRAP_CSS_PATH)
.toExternalForm()

assertEquals(resourceUrl, se.alipsa.gmd.core.HtmlDecorator.BOOTSTRAP_CSS)
}

@Test
void nullInputIsRejectedClearly() {
def gmd = new Gmd()
Expand Down
Loading