// some work on style sheets

This commit is contained in:
Kevin Granger
2013-07-18 18:51:24 +02:00
parent 02921dc9d0
commit 0b4512dbcb
1654 changed files with 171753 additions and 294 deletions
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>require.js: Bug 379 Test</title>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script type="text/javascript" data-main="issue379.js" src="../../require.js"></script>
</head>
<body>
<h1>require.js: Bug 379 Test</h1>
<p><a href="https://github.com/jrburke/requirejs/issues/379">More info</a>.</p>
<p>Check console for messages</p>
</body>
</html>
@@ -0,0 +1,31 @@
define('a',[], {});
define('text!template.html',[],function () { return 'TEXT';});
define('b',['text!template.html'], function(tmpl) {
return 'b ' + tmpl;
});
define('c',['text!template.html'], function(tmpl) {
return 'c ' + tmpl;
});
require(['a'], function (a) {
require({
paths: {
'text': '../../../text/text'
}
}, ['b', 'c'], function(b, c) {
doh.register(
"issue379",
[
function issue379(t){
t.is('b TEXT', b);
t.is('c TEXT', c);
}
]
);
doh.run();
});
});