Skip to content
Snippets Groups Projects
Commit ab6adf9a authored by Ben Adida's avatar Ben Adida
Browse files

fixed tests for new relay frame name-passing by tweaking mocks and making sure...

fixed tests for new relay frame name-passing by tweaking mocks and making sure channel uses 'win' instead of 'window' so that mocks can be substituted in properly
parent 06efa1b1
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@
onCompleteCallback;
function getRelayName() {
return window.localStorage.RELAYFRAME_NAME;
return win.localStorage.RELAYFRAME_NAME;
}
function getRelayWindow() {
......
......@@ -44,7 +44,10 @@ steal.plugins("jquery", "funcunit/qunit").then("/dialog/resources/channel", func
// Mock in the window object as well as the frame relay
var winMock = {
location: {
href: "browserid.org/sign_in#1234"
href: "browserid.org/sign_in"
},
localStorage: {
RELAYFRAME_NAME : "browserid_relay_1234"
},
opener: {
frames: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment