web-apps/vendor/requirejs/tests/text/textOnly.html
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

36 lines
971 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>require.js: Text Test</title>
<script type="text/javascript" src="../../require.js"></script>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script type="text/javascript">
require({
baseUrl: "./",
paths: {
text: "../../../text/text"
}
},
["text!resources/sample.html!strip"],
function(sampleText) {
doh.register(
"textOnly",
[
function textOnly(t){
t.is("<span>Hello World!</span>", sampleText);
}
]
);
doh.run();
}
);
</script>
</head>
<body>
<h1>require.js: Text Test</h1>
<p>Test for usage of text! require plugin.
<p>Check console for messages</p>
</body>
</html>