GT2/GT2-Android/node_modules/winchan/test/cases/use-existing-popup/run.js

18 lines
424 B
JavaScript
Raw Normal View History

$(document).ready(function(){
asyncTest("pass as argument a popup window", function() {
var existingPopup = window.open('about:blank');
var argString = (new Date()).toString();
WinChan.open({
url: "cases/nav-away/child.html",
relay_url: "/relay.html",
popup: existingPopup,
params: argString
}, function(err, resp) {
equal(resp, argString);
start();
});
});
});