diff --git a/modules/core/history.js b/modules/core/history.js index e32cdf8bd..0f330b2a7 100644 --- a/modules/core/history.js +++ b/modules/core/history.js @@ -321,15 +321,7 @@ export function coreHistory(context) { } }); }); - if (window.mocha) { - var arr = []; - s.forEach(function(v) { arr.push(v); }); - return arr; - } else { - return Array.from(s); - } - // var arr = _map(_stack.slice(1, _index + 1), 'imageryUsed'); - // return _without(_uniq(_flatten(arr)), 'Custom'); + return Array.from(s); } }, diff --git a/package.json b/package.json index 602aeb18c..deee233bc 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "imagery": "node data/update_imagery", "lint": "eslint *.js test/spec modules", "start": "node development_server.js develop", + "phantom": "phantomjs --web-security=no node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/phantom.html spec", "test": "npm-run-all -s lint build test:**", "test:phantom": "phantomjs --web-security=no node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html spec", "translations": "node data/update_locales" diff --git a/test/phantom.html b/test/phantom.html new file mode 100644 index 000000000..162d87283 --- /dev/null +++ b/test/phantom.html @@ -0,0 +1,39 @@ + + + +
+ +