3.0 source code
This commit is contained in:
5
OfficeWeb/vendor/requirejs/tests/isBrowser/a.js
vendored
Normal file
5
OfficeWeb/vendor/requirejs/tests/isBrowser/a.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
define(function (require) {
|
||||
return {
|
||||
isBrowser: require.isBrowser
|
||||
};
|
||||
});
|
||||
17
OfficeWeb/vendor/requirejs/tests/isBrowser/isBrowser-tests.js
vendored
Normal file
17
OfficeWeb/vendor/requirejs/tests/isBrowser/isBrowser-tests.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
require({
|
||||
baseUrl: "./"
|
||||
},
|
||||
["a"],
|
||||
function(a) {
|
||||
doh.register(
|
||||
"isBrowser",
|
||||
[
|
||||
function isBrowser(t){
|
||||
t.is(true, a.isBrowser);
|
||||
t.is(true, requirejs.isBrowser);
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
}
|
||||
);
|
||||
16
OfficeWeb/vendor/requirejs/tests/isBrowser/isBrowser.html
vendored
Normal file
16
OfficeWeb/vendor/requirejs/tests/isBrowser/isBrowser.html
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>require.js: isBrowser 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="isBrowser-tests.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>require.js: isBrowser Test</h1>
|
||||
<p>Confirm isBrowser is available since it is used by others now.
|
||||
Info in <a href="https://github.com/jrburke/requirejs/issues/293">Issue 293</a>.</p>
|
||||
<p>Check console for messages</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user