This document contains a simple preliminary descritption of testcases on EventRegistration interface of Webclient API.

- Tests on addDocumentLoadListener method
- Tests on addMouseListener method
- Tests on removeDocumentLoadListener method
- Tests on removeMouseListener method

## 1. Tests on addDocumentLoadListener method.

Test ID | Action | Expected Result
basic/api/EventRegistration_addDocumentLoadListener_1:0 | This test registers listener and loads document | START_DOCUMENT_LOAD_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:1 | This test registers listener and loads document | END_DOCUMENT_LOAD_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:2 | This test registers listener and loads document | START_URL_LOAD_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:3 | This test registers listener and loads document | END_URL_LOAD_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:4 | This test registers listener and loads document | PROGRESS_URL_LOAD_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:5 | This test registers listener and loads document | STATUS_URL_LOAD_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:6 | This test registers listener and loads document | UNKNOWN_CONTENT_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_1:7 | This test registers listener and loads document | FETCH_INTERRUPT_EVENT_MASK event dispatched
basic/api/EventRegistration_addDocumentLoadListener_2:0 | This test registers null listener | Browser doesn't crashed
basic/api/EventRegistration_addDocumentLoadListener_2:1 | This test registers several same correct listeners | Events dispatched in one listener
basic/api/EventRegistration_addDocumentLoadListener_2:2 | This test registers several different correct listeners | Events dispatched in last registered listener

## 2. Tests on addMouseListener method.

Test ID | Action | Expected Result
basic/mixed/EventRegistration_addMouseListener_1:0 | This test registers listener and waits for mouse events | MOUSE_DOWN_EVENT_MASK event dispatched
basic/mixed/EventRegistration_addMouseListener_1:1 | This test registers listener and waits for mouse events | MOUSE_UP_EVENT_MASK event dispatched
basic/mixed/EventRegistration_addMouseListener_1:2 | This test registers listener and waits for mouse events | MOUSE_CLICK_EVENT_MASK event dispatched
basic/mixed/EventRegistration_addMouseListener_1:3 | This test registers listener and waits for mouse events | MOUSE_DOUBLE_CLICK_EVENT_MASK event dispatched
basic/mixed/EventRegistration_addMouseListener_1:4 | This test registers listener and waits for mouse events | MOUSE_OVER_EVENT_MASK event dispatched
basic/mixed/EventRegistration_addMouseListener_1:5 | This test registers listener and waits for mouse events | MOUSE_OUT_EVENT_MASK event dispatched
basic/mixed/EventRegistration_addMouseListener_2:0 | This test registers null listener | Browser doesn't crashed
basic/mixed/EventRegistration_addMouseListener_2:1 | This test registers several same correct listeners | Events dispatched in one listener
basic/mixed/EventRegistration_addMouseListener_2:2 | This test registers several different correct listeners | Events dispatched in last registered listener

## 3. Tests on removeDocumentLoadListener method.

Test ID | Action | Expected Result
basic/api/EventRegistration_removeDocumentLoadListener:0 | This test removes null listener | Browser doesn't crashed
basic/api/EventRegistration_removeDocumentLoadListener:1 | This test removes unregistered listener | Browser doesn't crashed
basic/api/EventRegistration_removeDocumentLoadListener:2 | This test removes registered listener | Listener is removed

## 4. Tests on removeMouseListener method.

Test ID | Action | Expected Result
basic/api/EventRegistration_removeMouseListener_1:0 | This test removes null listener | Browser doesn't crashed
basic/api/EventRegistration_removeMouseListener_1:1 | This test removes unregistered listener | Browser doesn't crashed
basic/mixed/EventRegistration_removeMouseListener_2:0 | This test removes registered listener | Listener is removed