mdctest

package
Version: v0.0.0-...-a8d3157 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MCW_MODULE = "material-components-web/dist/material-components-web"
)

Variables

View Source
var (
	Dom jsdom.JSDOM
)

Functions

func EmulateDOM

func EmulateDOM() (dom jsdom.JSDOM, err error)

EmulateDOM sets up a fake DOM in Node for "gopherjs test" We emulate a browser dom since tests run in Node, and MDC components need a dom element to attach to. This is not needed when running in a browser.

func HTML

func HTML(t string) string

func Init

func Init() error

func InitMenu

func InitMenu() (err error)

For some reason the material-components-web node module does not come with MDCMenu, it only comes with an undocumented MDCSimpleMenu.

func LoadMDCModule

func LoadMDCModule() (err error)

func ShimHyperform

func ShimHyperform() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL