This commit is contained in:
Éric Lemoine
2013-02-20 10:38:25 +01:00
parent 17c3936ab6
commit 5d14b9e2d4
1919 changed files with 559755 additions and 2588 deletions

View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<title>require.js: Text Test</title>
<script type="text/javascript">
requirejsArgs= {
dojoLocation:"../../../../.."
};
</script>
<script type="text/javascript" src="../requirejs-setup.js"></script>
<script type="text/javascript" src="../../../../../dojo.js"></script>
<script type="text/javascript">
// alias dojo's text module to text!
define("text", ["dojo/text"], function(text){ return text; });
require({
baseUrl: "./",
paths: {
text: "../../text"
}
},
["text!resources/sample.html!strip", "doh"],
function(sampleText, doh) {
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>