[Framework] Include Promise polyfill in tests
Provide Promise polyfill in test runner. This allows tests of objects which use Promise directly to be run in environments which don't yet implement Promise (including command line test environment.) Completing test suite for framework layer, WTD-518.
This commit is contained in:
@@ -4,12 +4,16 @@
|
|||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="platform/framework/test/lib/css/jasmine.css">
|
href="platform/framework/test/lib/css/jasmine.css">
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="platform/framework/lib/es6-promise-2.0.0.min.js">
|
||||||
|
</script>
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="platform/framework/lib/require.js">
|
src="platform/framework/lib/require.js">
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
|
window.Promise = window.Promise || ES6Promise.Promise;
|
||||||
require(
|
require(
|
||||||
{
|
{
|
||||||
paths: {
|
paths: {
|
||||||
|
|||||||
Reference in New Issue
Block a user