-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
91 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
var O = 'object'; | ||
var check = function (it) { | ||
return it && it.Math == Math && it; | ||
}; | ||
|
||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | ||
module.exports = | ||
// eslint-disable-next-line no-undef | ||
check(typeof globalThis == O && globalThis) || | ||
check(typeof window == O && window) || | ||
check(typeof self == O && self) || | ||
check(typeof global == O && global) || | ||
check(typeof globalThis == 'object' && globalThis) || | ||
check(typeof window == 'object' && window) || | ||
check(typeof self == 'object' && self) || | ||
check(typeof global == 'object' && global) || | ||
// eslint-disable-next-line no-new-func | ||
Function('return this')(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Promises/A+ Tests, Against Your Browser!</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.css" /> | ||
<meta charset="utf-8" /> | ||
<title>Promises/A+ Tests, Against Your Browser!</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.css" /> | ||
</head> | ||
<body> | ||
<div id="mocha"></div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script> | ||
<script> | ||
mocha.setup({ ui: "bdd", timeout: 1e3, slow: Infinity }); | ||
<div id="mocha"></div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script> | ||
<script> | ||
mocha.setup({ ui: "bdd", timeout: 1e3, slow: Infinity }); | ||
|
||
window.adapter = { | ||
deferred: function () { | ||
var deferred = {}; | ||
deferred.promise = new Promise(function (resolve, reject) { | ||
deferred.resolve = resolve; | ||
deferred.reject = reject; | ||
}); | ||
return deferred; | ||
}, | ||
resolved: Promise.resolve.bind(Promise), | ||
rejected: Promise.reject.bind(Promise) | ||
}; | ||
</script> | ||
<script src="bundles/promises-aplus.js"></script> | ||
<script> | ||
mocha.run(); | ||
</script> | ||
window.adapter = { | ||
deferred: function () { | ||
var deferred = {}; | ||
deferred.promise = new Promise(function (resolve, reject) { | ||
deferred.resolve = resolve; | ||
deferred.reject = reject; | ||
}); | ||
return deferred; | ||
}, | ||
resolved: Promise.resolve.bind(Promise), | ||
rejected: Promise.reject.bind(Promise) | ||
}; | ||
</script> | ||
<script src="bundles/promises-aplus.js"></script> | ||
<script> | ||
mocha.run(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Promises/A+ Tests, Against Your Browser!</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.css" /> | ||
<meta charset="utf-8" /> | ||
<title>Promises/A+ Tests, Against Your Browser!</title> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.css" /> | ||
</head> | ||
<body> | ||
<div id="mocha"></div> | ||
<script src="../packages/core-js-bundle/index.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script> | ||
<script> | ||
mocha.setup({ ui: "bdd", timeout: 1e3, slow: Infinity }); | ||
<div id="mocha"></div> | ||
<script src="../packages/core-js-bundle/index.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script> | ||
<script> | ||
mocha.setup({ ui: "bdd", timeout: 1e3, slow: Infinity }); | ||
|
||
window.adapter = { | ||
deferred: function () { | ||
var deferred = {}; | ||
deferred.promise = new Promise(function (resolve, reject) { | ||
deferred.resolve = resolve; | ||
deferred.reject = reject; | ||
}); | ||
return deferred; | ||
}, | ||
resolved: Promise.resolve.bind(Promise), | ||
rejected: Promise.reject.bind(Promise) | ||
}; | ||
</script> | ||
<script src="bundles/promises-aplus.js"></script> | ||
<script> | ||
mocha.run(); | ||
</script> | ||
window.adapter = { | ||
deferred: function () { | ||
var deferred = {}; | ||
deferred.promise = new Promise(function (resolve, reject) { | ||
deferred.resolve = resolve; | ||
deferred.reject = reject; | ||
}); | ||
return deferred; | ||
}, | ||
resolved: Promise.resolve.bind(Promise), | ||
rejected: Promise.reject.bind(Promise) | ||
}; | ||
</script> | ||
<script src="bundles/promises-aplus.js"></script> | ||
<script> | ||
mocha.run(); | ||
</script> | ||
</body> | ||
</html> |