3.0 source code
This commit is contained in:
3
OfficeWeb/vendor/requirejs/tests/plugins/pluginBundlesSeparateText/main.js
vendored
Normal file
3
OfficeWeb/vendor/requirejs/tests/plugins/pluginBundlesSeparateText/main.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
define('text!template.html', [], function () {
|
||||
return 'main template';
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
require({
|
||||
paths: {
|
||||
'text': '../../../../text/text'
|
||||
},
|
||||
bundles: {
|
||||
'main': ['text!template.html']
|
||||
}
|
||||
}, ['text!template.html', 'text!second.html'], function (template, secondTemplate) {
|
||||
|
||||
doh.register(
|
||||
'pluginBundlesSeparateText',
|
||||
[
|
||||
function pluginBundlesSeparateText(t){
|
||||
t.is('main template', template);
|
||||
t.is('second template', secondTemplate);
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>require.js: Plugin Bundles: Separate 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" src="pluginBundlesSeparateText-tests.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>require.js: Plugin Bundles: Separate Text Test</h1>
|
||||
<p>Test using the bundles config with plugins. More info:
|
||||
<a href="https://github.com/jrburke/requirejs/issues/497">497</a></p>
|
||||
<p>Check console for messages</p>
|
||||
</body>
|
||||
</html>
|
||||
1
OfficeWeb/vendor/requirejs/tests/plugins/pluginBundlesSeparateText/second.html
vendored
Normal file
1
OfficeWeb/vendor/requirejs/tests/plugins/pluginBundlesSeparateText/second.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
second template
|
||||
Reference in New Issue
Block a user