1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/passwordmgr/test/subtst_notifications_11.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 + <title>Subtest for Login Manager notifications</title> 1.8 +</head> 1.9 +<body> 1.10 +<h2>Subtest 11 (popup windows)</h2> 1.11 +<script> 1.12 + 1.13 +// Ignore the '?' and split on | 1.14 +[username, password, features, autoClose] = window.location.search.substring(1).split('|'); 1.15 + 1.16 +var url = "subtst_notifications_11_popup.html?" + username + "|" + password; 1.17 +var popupWin = window.open(url, "subtst_11", features); 1.18 + 1.19 +// Popup window will call this function on form submission. 1.20 +function formSubmitted() { 1.21 + if (autoClose) 1.22 + popupWin.close(); 1.23 +} 1.24 + 1.25 +</script> 1.26 +</body> 1.27 +</html>