Skip to content

Instantly share code, notes, and snippets.

@darkowlzz
Created May 2, 2013 05:00
Show Gist options
  • Save darkowlzz/5500224 to your computer and use it in GitHub Desktop.
Save darkowlzz/5500224 to your computer and use it in GitHub Desktop.
let chromeWindow = open('chrome://foo/content/');
assert.ok(~windows().indexOf(chromeWindow), 'chrome URI works');
let resourceWindow = open('resource://foo');
assert.ok(~windows().indexOf(resourceWindow), 'resource URI works');
// Wait for the window unload before ending test
close(chromeWindow).close(resourceWindow).then(done);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment