mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 23:33:36 +02:00
Genericize "Contact Us" page
Parameterize integration, support and announcement email addresses and contact phone number, make static parameters flow through the system in a consistent manner. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136183813
This commit is contained in:
parent
6a4088a8b6
commit
84bbb9a7c0
16 changed files with 177 additions and 65 deletions
|
@ -59,8 +59,8 @@ registry.registrar.ConsoleTestUtil.visit = function(
|
|||
test, opt_args, opt_moar) {
|
||||
opt_args = opt_args || {};
|
||||
opt_args.path = opt_args.path || '';
|
||||
opt_args.testClientId = opt_args.testClientId || 'dummyRegistrarId';
|
||||
opt_args.testXsrfToken = opt_args.testXsrfToken || 'dummyXsrfToken';
|
||||
opt_args.clientId = opt_args.clientId || 'dummyRegistrarId';
|
||||
opt_args.xsrfToken = opt_args.xsrfToken || 'dummyXsrfToken';
|
||||
if (opt_args.isEppLoggedIn === undefined) {
|
||||
opt_args.isEppLoggedIn = true;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ registry.registrar.ConsoleTestUtil.visit = function(
|
|||
test.historyMock.getToken().$returns(opt_args.path).$anyTimes();
|
||||
test.sessionMock.isEppLoggedIn().$returns(opt_args.isEppLoggedIn).$anyTimes();
|
||||
test.sessionMock.getClientId().$returns(opt_args.isEppLoggedIn ?
|
||||
opt_args.testClientId : null).$anyTimes();
|
||||
opt_args.clientId : null).$anyTimes();
|
||||
if (opt_args.rspXml) {
|
||||
test.sessionMock
|
||||
.send(goog.testing.mockmatchers.isString,
|
||||
|
@ -86,10 +86,7 @@ registry.registrar.ConsoleTestUtil.visit = function(
|
|||
}
|
||||
test.mockControl.$replayAll();
|
||||
/** @type {!registry.registrar.Console} */
|
||||
test.console = new registry.registrar.Console(
|
||||
opt_args.testXsrfToken,
|
||||
opt_args.testClientId,
|
||||
opt_args.productName);
|
||||
test.console = new registry.registrar.Console(opt_args);
|
||||
// XXX: Should be triggered via event passing.
|
||||
test.console.handleHashChange();
|
||||
test.mockControl.$verifyAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue