Skip to content

Instantly share code, notes, and snippets.

@darkowlzz
Last active December 16, 2015 20:19
Show Gist options
  • Save darkowlzz/5491797 to your computer and use it in GitHub Desktop.
Save darkowlzz/5491797 to your computer and use it in GitHub Desktop.
exports['test new top window with content URI'] = function(assert) {
let msg = 'only chrome, resource and data uris are allowed';
assert.throws(function () {
open('foo');
}, msg);
assert.throws(function () {
open('http://foo');
}, msg);
assert.throws(function () {
open('https://foo');
}, msg);
assert.throws(function () {
open('//');
}, msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment