All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bkahlert.kommons.test.fixtures.HtmlDocumentFixture.kt Maven / Gradle / Ivy

package com.bkahlert.kommons.test.fixtures

import io.ktor.http.ContentType
import io.ktor.http.withCharset
import io.ktor.utils.io.charsets.Charsets

/**
 * An [TextResourceFixture] consisting of HTML code that
 * renders the headline "Hello Headline!", and
 * the paragraph "Hello World!"
 * on a background of horizontal red and white stripes.
 */
public val HtmlDocumentFixture: TextResourceFixture = TextResourceFixture(
    "hello-world.html",
    ContentType.Text.Html.withCharset(Charsets.UTF_8),
    """
        
          Hello Title!
        
        
          

Hello World!

${EmojiTextDocumentFixture.contents}

""".trimIndent() )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy