diff --git a/.eslintignore b/.eslintignore index ba399023e..433176838 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ -Gruntfile.js \ No newline at end of file +Gruntfile.js +test/browser/vendor/* \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 22f8e25b2..8ab941890 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -292,7 +292,12 @@ module.exports = function (grunt) { options: { keepRunner: true, host: 'http://localhost:8081/', - vendor: ['test/browser/jasmine-jsreporter.js', 'test/browser/common.js', 'test/browser/less.js'], + vendor: [ + 'test/browser/vendor/promise.js', + 'test/browser/jasmine-jsreporter.js', + 'test/browser/common.js', + 'test/browser/less.js' + ], template: 'test/browser/test-runner-template.tmpl' }, main: { diff --git a/test/browser/vendor/promise.js b/test/browser/vendor/promise.js new file mode 100644 index 000000000..9ba768264 --- /dev/null +++ b/test/browser/vendor/promise.js @@ -0,0 +1,2 @@ +!function n(t,e,r){function o(u,f){if(!e[u]){if(!t[u]){var c="function"==typeof require&&require;if(!f&&c)return c(u,!0);if(i)return i(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var l=e[u]={exports:{}};t[u][0].call(l.exports,function(n){var e=t[u][1][n];return o(e?e:n)},l,l.exports,n,t,e,r)}return e[u].exports}for(var i="function"==typeof require&&require,u=0;ul){for(var t=0,e=f.length-s;e>t;t++)f[t]=f[t+s];f.length-=s,s=0}}f.length=0,s=0,c=!1}function o(n){var t=1,e=new a(n),r=document.createTextNode("");return e.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}function i(n){return function(){function t(){clearTimeout(e),clearInterval(r),n()}var e=setTimeout(t,0),r=setInterval(t,50)}}t.exports=e;var u,f=[],c=!1,s=0,l=1024,a=n.MutationObserver||n.WebKitMutationObserver;u="function"==typeof a?o(r):i(r),e.requestFlush=u,e.makeRequestCallFromTimer=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(n,t,e){"function"!=typeof Promise.prototype.done&&(Promise.prototype.done=function(n,t){var e=arguments.length?this.then.apply(this,arguments):this;e.then(null,function(n){setTimeout(function(){throw n},0)})})},{}],6:[function(n,t,e){n("asap");"undefined"==typeof Promise&&(Promise=n("./lib/core.js"),n("./lib/es6-extensions.js")),n("./polyfill-done.js")},{"./lib/core.js":1,"./lib/es6-extensions.js":2,"./polyfill-done.js":5,asap:3}]},{},[6]); +//# sourceMappingURL=/polyfills/promise-7.0.4.min.js.map \ No newline at end of file