3.0 source code
This commit is contained in:
5
OfficeWeb/vendor/requirejs/tests/trailingComma/a.js
vendored
Normal file
5
OfficeWeb/vendor/requirejs/tests/trailingComma/a.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
define(function (require) {
|
||||
return {
|
||||
name: 'a'
|
||||
};
|
||||
});
|
||||
15
OfficeWeb/vendor/requirejs/tests/trailingComma/trailingComma.html
vendored
Normal file
15
OfficeWeb/vendor/requirejs/tests/trailingComma/trailingComma.html
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>require.js: Trailing Comma Test</title>
|
||||
<script src="../doh/runner.js"></script>
|
||||
<script src="../doh/_browserRunner.js"></script>
|
||||
<script data-main="trailingComma" src="../../require.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>require.js: Trailing Comma Test</h1>
|
||||
<p>Make sure a trailing comma in IE does not cause an error in the loader.
|
||||
Info in <a href="https://github.com/jrburke/requirejs/issues/299">Issue 299</a>.</p>
|
||||
<p>Check console for messages</p>
|
||||
</body>
|
||||
</html>
|
||||
13
OfficeWeb/vendor/requirejs/tests/trailingComma/trailingComma.js
vendored
Normal file
13
OfficeWeb/vendor/requirejs/tests/trailingComma/trailingComma.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
//Trailing comma is there ON PURPOSE
|
||||
require(['a',], function(a) {
|
||||
doh.register(
|
||||
"trailingComma",
|
||||
[
|
||||
function trailingComma(t){
|
||||
t.is('a', a.name, 'a.name is a');
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
});
|
||||
Reference in New Issue
Block a user