From 8b3fbe9c3a42efcbdfd6e4c54820f246c543124d Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Sat, 29 Dec 2001 23:04:41 +0000 Subject: [PATCH] Tester plugin -- updating default URL for sample API calls, not part of the build --- modules/plugin/tools/tester/windows/guihlp.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/plugin/tools/tester/windows/guihlp.cpp b/modules/plugin/tools/tester/windows/guihlp.cpp index 4a82a4a347a..e368407958e 100644 --- a/modules/plugin/tools/tester/windows/guihlp.cpp +++ b/modules/plugin/tools/tester/windows/guihlp.cpp @@ -163,6 +163,8 @@ static void replaceEditWithCombo(HWND hWnd, BOOL b1, BOOL b2, BOOL b3, BOOL b6) } } +#define NS_SAMPLE_URL "http://mozilla.org" + void updateUI(HWND hWnd) { CPlugin * pPlugin = (CPlugin *)GetWindowLong(hWnd, DWL_USER); @@ -205,21 +207,21 @@ void updateUI(HWND hWnd) showArgControls7(hWnd, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE); enableEdits7(hWnd, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE); setStaticTexts7(hWnd, "instance:", "URL:", "target (or 'NULL'):", "", "", "", ""); - setEditTexts7(hWnd, szNPInstance,"http://w3","_npapi_Display","","","",""); + setEditTexts7(hWnd, szNPInstance,NS_SAMPLE_URL,"_npapi_Display","","","",""); } else if(strcmp(szString, STRING_NPN_GETURLNOTIFY) == 0) { showArgControls7(hWnd, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE); enableEdits7(hWnd, FALSE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE); setStaticTexts7(hWnd, "instance:", "URL:", "target (or 'NULL'):", "notifyData:", "", "", ""); - setEditTexts7(hWnd, szNPInstance,"http://w3","_npapi_Display","0","","",""); + setEditTexts7(hWnd, szNPInstance,NS_SAMPLE_URL,"_npapi_Display","0","","",""); } else if(strcmp(szString, STRING_NPN_POSTURL) == 0) { showArgControls7(hWnd, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE); enableEdits7(hWnd, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE); setStaticTexts7(hWnd, "instance:", "URL:", "target (or 'NULL'):", "len:", "buf:", "file:", ""); - setEditTexts7(hWnd, szNPInstance,"http://w3","_npapi_Display","0","","",""); + setEditTexts7(hWnd, szNPInstance,NS_SAMPLE_URL,"_npapi_Display","0","","",""); replaceEditWithCombo(hWnd, FALSE, FALSE, FALSE, TRUE); HWND hWndCombo = GetDlgItem(hWnd, IDC_COMBO_ARG6); ComboBox_AddString(hWndCombo, "FALSE"); @@ -231,7 +233,7 @@ void updateUI(HWND hWnd) showArgControls7(hWnd, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE); enableEdits7(hWnd, FALSE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE); setStaticTexts7(hWnd, "instance:", "URL:", "target (or 'NULL'):", "len:", "buf:", "file:", "notifyData:"); - setEditTexts7(hWnd, szNPInstance,"http://w3","_npapi_Display","0","","","0"); + setEditTexts7(hWnd, szNPInstance,NS_SAMPLE_URL,"_npapi_Display","0","","","0"); replaceEditWithCombo(hWnd, FALSE, FALSE, FALSE, TRUE); HWND hWndCombo = GetDlgItem(hWnd, IDC_COMBO_ARG6); ComboBox_AddString(hWndCombo, "FALSE");