web-apps/vendor/requirejs/tests/text/textOnly.html

36 lines
971 B
HTML
Raw Normal View History

2016-03-11 00:48:53 +00:00
<!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>