ReactOS 0.4.16-dev-188-g678aa63
|
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <winnls.h>
#include <ole2.h>
#include <richedit.h>
#include <richole.h>
#include <commdlg.h>
#include <time.h>
#include <wine/test.h>
Go to the source code of this file.
Classes | |
struct | find_s |
struct | getline_s |
struct | exsetsel_s |
struct | StringWithLength |
struct | dialog_mode_messages |
Macros | |
#define | COBJMACROS |
#define | ID_RICHEDITTESTDBUTTON 0x123 |
#define | ok_w3(format, szString1, szString2, szString3) |
#define | ENABLE_WS_VSCROLL(hwnd) SetWindowLongA(hwnd, GWL_STYLE, GetWindowLongA(hwnd, GWL_STYLE) | WS_VSCROLL) |
#define | DISABLE_WS_VSCROLL(hwnd) SetWindowLongA(hwnd, GWL_STYLE, GetWindowLongA(hwnd, GWL_STYLE) & ~WS_VSCROLL) |
#define | TEST_SETTEXT(a, b) |
#define | TEST_SETTEXTW(a, b) |
#define | MAX_BUF_LEN 1024 |
#define | set_textA(hwnd, wm_set_text, txt) |
#define | expect_textA(hwnd, wm_get_text, txt) |
#define | set_textW(hwnd, wm_set_text, txt) |
#define | expect_textW(hwnd, wm_get_text, txt) |
#define | expect_empty(hwnd, wm_get_text) |
#define | CURSOR_CLIENT_X 5 |
#define | CURSOR_CLIENT_Y 5 |
#define | WP_PARENT 1 |
#define | WP_CHILD 2 |
#define | test_dm_messages(wmclose, wmgetdefid, wmnextdlgctl) |
#define | TEST_EM_SETFONTSIZE(hwnd, size, expected_size, expected_res, expected_undo) _test_font_size(__LINE__,hwnd,size,expected_size,expected_res,expected_undo) |
Variables | |
static CHAR | string1 [MAX_PATH] |
static CHAR | string2 [MAX_PATH] |
static CHAR | string3 [MAX_PATH] |
static HMODULE | hmoduleRichEdit |
static BOOL | is_lang_japanese |
static const char | haystack [] = "WINEWine wineWine wine WineWine" |
static struct find_s | find_tests [] |
static struct find_s | find_tests2 [] |
static const struct getline_s | gl [] |
static unsigned int | recursionLevel = 0 |
static unsigned int | WM_SIZE_recursionLevel = 0 |
static BOOL | bailedOutOfRecursion = FALSE |
static UINT | message |
static UINT WPARAM | wParam |
static UINT WPARAM LPARAM | lParam |
LONG | streamout_written = 0 |
static const struct exsetsel_s | exsetsel_tests [] |
static int | nCallbackCount = 0 |
static HWND | eventMaskEditHwnd = 0 |
static int | queriedEventMask |
static int | watchForEventMask = 0 |
static int | received_WM_NOTIFY = 0 |
static int | modify_at_WM_NOTIFY = 0 |
static BOOL | filter_on_WM_NOTIFY = FALSE |
static HWND | hwndRichedit_WM_NOTIFY |
static ENLINK | enlink |
static struct dialog_mode_messages | dm_messages |
#define DISABLE_WS_VSCROLL | ( | hwnd | ) | SetWindowLongA(hwnd, GWL_STYLE, GetWindowLongA(hwnd, GWL_STYLE) & ~WS_VSCROLL) |
#define ENABLE_WS_VSCROLL | ( | hwnd | ) | SetWindowLongA(hwnd, GWL_STYLE, GetWindowLongA(hwnd, GWL_STYLE) | WS_VSCROLL) |
#define MAX_BUF_LEN 1024 |
#define test_dm_messages | ( | wmclose, | |
wmgetdefid, | |||
wmnextdlgctl | |||
) |
|
static |
Definition at line 8507 of file editor.c.
Definition at line 229 of file editor.c.
Referenced by check_EM_FINDTEXT(), and check_EM_FINDTEXTEX().
Definition at line 1921 of file editor.c.
Referenced by test_EM_AUTOURLDETECT().
Definition at line 1912 of file editor.c.
Referenced by check_CFE_LINK_rcvd(), and test_EM_AUTOURLDETECT().
Definition at line 4930 of file editor.c.
Referenced by test_EM_EXSETSEL().
|
static |
Definition at line 239 of file editor.c.
Referenced by run_tests_EM_FINDTEXT().
|
static |
Definition at line 275 of file editor.c.
Referenced by run_tests_EM_FINDTEXT().
Definition at line 4987 of file editor.c.
Referenced by test_EM_SETSEL().
Definition at line 3808 of file editor.c.
Referenced by test_EM_STREAMOUT().
Definition at line 7061 of file editor.c.
Referenced by customWordBreakProc(), and test_word_movement().
|
static |
Definition at line 7896 of file editor.c.
Referenced by test_dialogmode().
|
static |
Definition at line 5712 of file editor.c.
Referenced by test_EM_StreamIn_Undo().
|
static |
Definition at line 6748 of file editor.c.
Referenced by test_EN_LINK().
|
static |
Definition at line 8282 of file editor.c.
Referenced by test_enter().
Definition at line 518 of file editor.c.
Referenced by test_EM_SCROLLCARET().
Definition at line 117 of file editor.c.
Referenced by send_ctrl_key(), test_WM_GETDLGCODE(), test_WM_PASTE(), and test_zoom().
Definition at line 86 of file editor.c.
Referenced by START_TEST().
|
static |
Definition at line 6757 of file editor.c.
Referenced by test_EN_LINK().
Definition at line 72 of file editor.c.
Referenced by test_autoscroll(), test_background(), test_EM_AUTOURLDETECT(), test_EM_CHARFROMPOS(), test_EM_EXLIMITTEXT(), test_EM_EXSETSEL(), test_EM_FINDTEXT(), test_EM_FINDWORDBREAK_A(), test_EM_FORMATRANGE(), test_EM_GETLIMITTEXT(), test_EM_GETLINE(), test_EM_GETMODIFY(), test_EM_GETSELTEXT(), test_EM_GETTEXTRANGE(), test_EM_LIMITTEXT(), test_EM_LINELENGTH(), test_EM_POSFROMCHAR(), test_EM_REPLACESEL(), test_EM_SCROLL(), test_EM_SELECTIONTYPE(), test_EM_SETCHARFORMAT(), test_EM_SETFONTSIZE(), test_EM_SETSEL(), test_EM_SETTEXTEX(), test_EM_SETTEXTMODE(), test_EM_SETUNDOLIMIT(), test_EM_STREAMIN(), test_EM_StreamIn_Undo(), test_EM_STREAMOUT(), test_EM_STREAMOUT_empty_para(), test_EM_STREAMOUT_FONTTBL(), test_EN_LINK(), test_enter(), test_eop_char_fmt(), test_ES_PASSWORD(), test_eventMask(), test_scrollbar_visibility(), test_SETPARAFORMAT(), test_TM_PLAINTEXT(), test_WM_GETTEXT(), test_WM_GETTEXTLENGTH(), test_WM_NOTIFY(), test_WM_PASTE(), test_WM_SETFONT(), test_WM_SETTEXT(), test_word_movement(), and test_zoom().
Definition at line 76 of file editor.c.
Referenced by test_EM_REPLACESEL(), test_EM_SETTEXTEX(), test_EM_STREAMIN(), test_WM_PASTE(), and test_WM_SETTEXT().
Definition at line 80 of file editor.c.
Referenced by test_EM_FINDTEXT(), test_EM_FINDWORDBREAK_W(), test_EM_SETREADONLY(), test_para_numbering(), test_reset_default_para_fmt(), and test_rtf().
Definition at line 1936 of file editor.c.
Referenced by test_EM_AUTOURLDETECT().
Definition at line 54 of file editor.c.
Referenced by MDIMainFrame::go_to(), navigate_new_window(), new_richedit(), new_richedit_with_style(), new_static_wnd(), MainFrameBase::Notify(), test_dialogmode(), test_open_window(), and test_scrollbar_visibility().
Definition at line 63 of file editor.c.
Referenced by new_richeditW(), and test_alignment_style().
|
static |
Definition at line 131 of file editor.c.
Referenced by send_ctrl_key(), test_WM_GETDLGCODE(), test_WM_PASTE(), and test_zoom().
|
static |
Definition at line 2869 of file editor.c.
Referenced by test_scrollbar_visibility().
|
static |
Definition at line 321 of file editor.c.
Referenced by test_EM_FINDTEXT().
Definition at line 5420 of file editor.c.
Referenced by test_WM_PASTE(), and test_word_movement().
Definition at line 104 of file editor.c.
Referenced by test_alignment_style(), test_EM_AUTOURLDETECT(), test_enter(), test_reset_default_para_fmt(), and test_undo_coalescing().
START_TEST | ( | editor | ) |
Definition at line 9022 of file editor.c.
Definition at line 8594 of file editor.c.
Referenced by START_TEST().
Definition at line 7336 of file editor.c.
Referenced by START_TEST().
Definition at line 8786 of file editor.c.
Referenced by START_TEST().
Definition at line 7914 of file editor.c.
Referenced by START_TEST().
Definition at line 1940 of file editor.c.
Referenced by START_TEST().
Definition at line 7187 of file editor.c.
Referenced by START_TEST().
Definition at line 4499 of file editor.c.
Referenced by START_TEST().
Definition at line 4948 of file editor.c.
Referenced by START_TEST().
Definition at line 332 of file editor.c.
Definition at line 8249 of file editor.c.
Referenced by START_TEST().
Definition at line 8205 of file editor.c.
Referenced by START_TEST().
Definition at line 5594 of file editor.c.
Referenced by START_TEST().
Definition at line 4630 of file editor.c.
Referenced by START_TEST().
Definition at line 390 of file editor.c.
Referenced by START_TEST().
Definition at line 4727 of file editor.c.
Referenced by START_TEST().
|
static |
Definition at line 1801 of file editor.c.
Referenced by START_TEST().
Definition at line 6388 of file editor.c.
Referenced by START_TEST().
Definition at line 1717 of file editor.c.
Referenced by START_TEST().
Definition at line 4459 of file editor.c.
Referenced by START_TEST().
Definition at line 462 of file editor.c.
Referenced by START_TEST().
Definition at line 597 of file editor.c.
Referenced by START_TEST().
Definition at line 5045 of file editor.c.
Referenced by START_TEST().
Definition at line 2730 of file editor.c.
Referenced by START_TEST().
Definition at line 539 of file editor.c.
Referenced by START_TEST().
Definition at line 8919 of file editor.c.
Referenced by START_TEST().
Definition at line 750 of file editor.c.
Referenced by START_TEST().
Definition at line 8527 of file editor.c.
Referenced by START_TEST().
Definition at line 1840 of file editor.c.
Referenced by START_TEST().
Definition at line 8481 of file editor.c.
Referenced by START_TEST().
Definition at line 5002 of file editor.c.
Referenced by START_TEST().
Definition at line 3996 of file editor.c.
Referenced by START_TEST().
Definition at line 1364 of file editor.c.
Referenced by START_TEST().
Definition at line 3586 of file editor.c.
Referenced by START_TEST().
Definition at line 5826 of file editor.c.
Referenced by START_TEST().
|
static |
Definition at line 5736 of file editor.c.
Referenced by test_alignment_style(), test_EM_STREAMIN(), test_eop_char_fmt(), test_para_numbering(), and test_rtf().
|
static |
|
static |
Definition at line 5754 of file editor.c.
Referenced by test_EM_STREAMIN().
|
static |
Definition at line 5777 of file editor.c.
Referenced by test_EM_STREAMIN().
Definition at line 6100 of file editor.c.
Referenced by START_TEST().
Definition at line 3821 of file editor.c.
Referenced by START_TEST().
Definition at line 3976 of file editor.c.
Referenced by START_TEST().
Definition at line 3923 of file editor.c.
Referenced by START_TEST().
Definition at line 6819 of file editor.c.
Referenced by START_TEST().
Definition at line 8298 of file editor.c.
Referenced by START_TEST().
Definition at line 8798 of file editor.c.
Referenced by START_TEST().
Definition at line 3650 of file editor.c.
Referenced by START_TEST().
|
static |
Definition at line 3792 of file editor.c.
Referenced by test_EM_STREAMOUT().
Definition at line 6554 of file editor.c.
Referenced by START_TEST().
Definition at line 7395 of file editor.c.
Referenced by START_TEST().
Definition at line 8834 of file editor.c.
Referenced by START_TEST().
Definition at line 8449 of file editor.c.
Referenced by START_TEST().
Definition at line 8724 of file editor.c.
Referenced by START_TEST().
Definition at line 2896 of file editor.c.
Referenced by START_TEST().
Definition at line 1506 of file editor.c.
Referenced by START_TEST().
Definition at line 1540 of file editor.c.
Referenced by START_TEST().
Definition at line 6944 of file editor.c.
Referenced by START_TEST().
Definition at line 6179 of file editor.c.
Referenced by START_TEST().
Definition at line 8990 of file editor.c.
Referenced by START_TEST().
Definition at line 6337 of file editor.c.
Referenced by START_TEST().
Definition at line 8408 of file editor.c.
Referenced by START_TEST().
Definition at line 7558 of file editor.c.
Referenced by START_TEST().
Definition at line 1650 of file editor.c.
Referenced by START_TEST().
Definition at line 8693 of file editor.c.
Referenced by START_TEST().
Definition at line 6648 of file editor.c.
Referenced by START_TEST().
Definition at line 5429 of file editor.c.
Referenced by START_TEST().
Definition at line 4645 of file editor.c.
Referenced by START_TEST().
Definition at line 3693 of file editor.c.
Referenced by START_TEST().
|
static |
Definition at line 3678 of file editor.c.
Referenced by test_EM_SETTEXTEX(), test_EM_STREAMOUT(), test_EM_STREAMOUT_empty_para(), and test_EM_STREAMOUT_FONTTBL().
Definition at line 7098 of file editor.c.
Referenced by START_TEST().
Definition at line 7240 of file editor.c.
Referenced by START_TEST().
Definition at line 7739 of file editor.c.
Referenced by START_TEST().
Definition at line 8500 of file editor.c.
Referenced by _test_font_size(), and test_EM_SETFONTSIZE().
|
static |
Definition at line 6637 of file editor.c.
Referenced by test_WM_NOTIFY().
Definition at line 2866 of file editor.c.
Referenced by RicheditStupidOverrideProcA(), and test_scrollbar_visibility().
|
static |
Definition at line 7886 of file editor.c.
Referenced by dialog_mode_wnd_proc(), and test_dialogmode().
|
static |
Definition at line 6742 of file editor.c.
Referenced by EN_LINK_ParentMsgCheckProcA(), and link_notify_test().
|
static |
Definition at line 6539 of file editor.c.
Referenced by ParentMsgCheckProcA(), and test_eventMask().
|
static |
Definition at line 4901 of file editor.c.
Referenced by test_EM_EXSETSEL(), and test_EM_SETSEL().
Definition at line 6634 of file editor.c.
Referenced by test_WM_NOTIFY(), and WM_NOTIFY_ParentMsgCheckProcA().
Definition at line 166 of file editor.c.
Referenced by test_EM_FINDTEXT().
Referenced by test_EM_GETLINE().
Definition at line 145 of file editor.c.
Referenced by my_strstriW(), START_TEST(), and test_EM_FINDTEXT().
|
static |
Definition at line 51 of file editor.c.
Referenced by new_window(), new_windowW(), START_TEST(), test_autoscroll(), test_EM_GETOPTIONS(), test_EM_SCROLLCARET(), test_EM_SETOPTIONS(), test_EM_SETTEXTEX(), test_format_rect(), test_WM_GETDLGCODE(), test_WM_SETTEXT(), test_word_movement(), and test_word_wrap().
|
static |
Definition at line 6635 of file editor.c.
Referenced by test_WM_NOTIFY(), and WM_NOTIFY_ParentMsgCheckProcA().
|
static |
Definition at line 52 of file editor.c.
Referenced by START_TEST(), test_EM_EXSETSEL(), test_EM_GETSELTEXT(), test_EM_GETTEXTRANGE(), test_EM_LINELENGTH(), test_EM_REPLACESEL(), test_EM_SETSEL(), test_EM_SETTEXTEX(), and test_WM_GETTEXTLENGTH().
|
static |
Definition at line 6633 of file editor.c.
Referenced by test_WM_NOTIFY(), and WM_NOTIFY_ParentMsgCheckProcA().
|
static |
Definition at line 5710 of file editor.c.
Referenced by EditStreamCallback(), and test_EM_StreamIn_Undo().
|
static |
Definition at line 6540 of file editor.c.
Referenced by ParentMsgCheckProcA(), and test_eventMask().
|
static |
Definition at line 6632 of file editor.c.
Referenced by test_WM_NOTIFY(), and WM_NOTIFY_ParentMsgCheckProcA().
Definition at line 2864 of file editor.c.
Referenced by RicheditStupidOverrideProcA(), and test_scrollbar_visibility().
LONG streamout_written = 0 |
Definition at line 3676 of file editor.c.
Referenced by test_EM_STREAMOUT(), and test_WM_SETTEXT_esCallback().
Definition at line 42 of file editor.c.
Referenced by InternetTimeToSystemTimeW_test().
|
static |
Definition at line 6541 of file editor.c.
Referenced by ParentMsgCheckProcA(), and test_eventMask().
Definition at line 2865 of file editor.c.
Referenced by RicheditStupidOverrideProcA(), and test_scrollbar_visibility().