Skip to content

Commit

Permalink
tests: allow testing in Edge (#1271)
Browse files Browse the repository at this point in the history
We use "about-blank.html" to simulate "about:blank", because Edge won't let you access IndexedDB in about: URLs 🤷‍♂️.
  • Loading branch information
Marcos Cáceres committed Jun 13, 2017
1 parent b7a66e1 commit ef22eef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions karma.conf.js
Expand Up @@ -48,6 +48,11 @@ module.exports = function(config) {
included: false,
served: true,
},
{
pattern: "tests/*.html",
included: false,
served: true,
},
{
pattern: "tests/**/*.html",
included: false,
Expand All @@ -66,6 +71,7 @@ module.exports = function(config) {
exclude: ["**/*.swp", "*.swp", ".DS_Store"],

proxies: {
"/about-blank.html": "/base/tests/about-blank.html",
"/js/": "/base/js/",
"/tests/": "/base/tests/",
"/spec/": "/base/tests/spec/",
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/SpecHelper.js
Expand Up @@ -3,7 +3,7 @@
"use strict";
var iframes = [];

function makeRSDoc(opts = {}, cb = () => {}, src = "about:blank", style = "") {
function makeRSDoc(opts = {}, cb = () => {}, src = "about-blank.html", style = "") {
return new Promise(function(resove, reject) {
var ifr = document.createElement("iframe");
opts = opts || {};
Expand Down

0 comments on commit ef22eef

Please sign in to comment.